Browse Source

feat:修改规格长度

master
郑贵龙 1 year ago
parent
commit
b57ba4194b
3 changed files with 7 additions and 2 deletions
  1. +1
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java
  2. +5
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesTaskGetEAIService.java
  3. +1
    -0
      doc/sql/app-20230912-ddl.sql

+ 1
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java View File

@ -133,7 +133,7 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService {
receivablesDetailEntity.setSkuName(sku.getSkuName());
receivablesDetailEntity.setSkuSpec(sku.getSkuSpec());
receivablesDetailEntity.setReceivableNo("RE-"+DateUtils.currentTimeString());
receivablesDetailEntity.setReceivableNo("SEQ-"+DateUtils.currentTimeString());
receivablesDetailEntity.setReceivableNon("SEQ-"+DateUtils.currentTimeString());
receivablesDetailEntity.setStatus("1");
receivablesDetailEntity.setSalesOrder("SO-"+DateUtils.currentTimeString());
receivablesDetailEntity.setSalesOrderNumber("SON-"+DateUtils.currentTimeString());


+ 5
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesTaskGetEAIService.java View File

@ -40,6 +40,8 @@ public class ReceivablesTaskGetEAIService extends AbsEAIService {
EAIRequest eaiRequest = EAIRequest.build(messageBody);
List<CollectionDetailEntity> collectionDetailEntities = eaiRequest.getObject("get_data", new TypeReference<List<CollectionDetailEntity>>() {});
String status = eaiRequest.getString("receivables_status");
for (CollectionDetailEntity collectionDetailEntity : collectionDetailEntities) {
if (StringUtils.isEmpty(collectionDetailEntity.getSalesOrder())
||StringUtils.isEmpty(collectionDetailEntity.getSalesOrderNumber())){
@ -47,8 +49,10 @@ public class ReceivablesTaskGetEAIService extends AbsEAIService {
}
}
LambdaQueryWrapper<CollectionDetailEntity> lmq = new LambdaQueryWrapper<>();
lmq.eq(CollectionDetailEntity::getStatus, TabStatusEnums.PENDING.getValue());
lmq.eq(CollectionDetailEntity::getStatus, status);
lmq.eq(CollectionDetailEntity::getTenantSid, SecurityUtil.getUserProfile().getTenantSid());
lmq.and(queryWrapperInner -> {
for (CollectionDetailEntity collectionDetailEntity : collectionDetailEntities) {


+ 1
- 0
doc/sql/app-20230912-ddl.sql View File

@ -134,3 +134,4 @@ alter table cim_receivables_detail Add column email varchar(50) null default ''
--
ALTER TABLE `cim_receivables_detail` MODIFY COLUMN `sku_spec` varchar (255);
ALTER TABLE `cim_collection_detail` MODIFY COLUMN `sku_spec` varchar (255);

Loading…
Cancel
Save