Browse Source

回归之前版本

master
clong 1 year ago
parent
commit
52e5f187cf
2 changed files with 5 additions and 2 deletions
  1. +1
    -0
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailCreateEAIService.java
  2. +4
    -2
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailUpdateEAIService.java

+ 1
- 0
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailCreateEAIService.java View File

@ -45,6 +45,7 @@ public class SalesOrderDetailCreateEAIService extends AbsEAIService {
List<SalesOrderDetailEntity> salesOrderDetailEntityList = salesOrderDetailDTOList.stream().map(assemble->{ List<SalesOrderDetailEntity> salesOrderDetailEntityList = salesOrderDetailDTOList.stream().map(assemble->{
SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity(); SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity();
BeanUtils.copyProperties(assemble,salesOrderDetailEntity); BeanUtils.copyProperties(assemble,salesOrderDetailEntity);
salesOrderDetailEntity.setId(SnowflakeWorker.nextId());
salesOrderDetailEntity.setTenantSid(1L); salesOrderDetailEntity.setTenantSid(1L);
salesOrderDetailEntity.setStatus(1); salesOrderDetailEntity.setStatus(1);
return salesOrderDetailEntity; return salesOrderDetailEntity;


+ 4
- 2
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailUpdateEAIService.java View File

@ -28,7 +28,8 @@ import java.util.stream.Collectors;
public class SalesOrderDetailUpdateEAIService extends AbsEAIService { public class SalesOrderDetailUpdateEAIService extends AbsEAIService {
@Resource @Resource
SalesOrderDetailRepository salesOrderDetailRepository;
SalesOrderDetailService salesOrderDetailService;
@Override @Override
public String getServiceName() { public String getServiceName() {
@ -46,10 +47,11 @@ public class SalesOrderDetailUpdateEAIService extends AbsEAIService {
SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity(); SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity();
salesOrderDetailEntity.setId(assemble.getId()); salesOrderDetailEntity.setId(assemble.getId());
salesOrderDetailEntity.setTenantSid(1L); salesOrderDetailEntity.setTenantSid(1L);
salesOrderDetailEntity.setStatus(2);
return salesOrderDetailEntity; return salesOrderDetailEntity;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
salesOrderDetailRepository.updateStatus(salesOrderDetailEntityList);
salesOrderDetailService.updateBatchById(salesOrderDetailEntityList);
return EAIUtil.buildEAIResult(new HashMap<>()); return EAIUtil.buildEAIResult(new HashMap<>());
} }


Loading…
Cancel
Save