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->{
SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity();
BeanUtils.copyProperties(assemble,salesOrderDetailEntity);
salesOrderDetailEntity.setId(SnowflakeWorker.nextId());
salesOrderDetailEntity.setTenantSid(1L);
salesOrderDetailEntity.setStatus(1);
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 {
@Resource
SalesOrderDetailRepository salesOrderDetailRepository;
SalesOrderDetailService salesOrderDetailService;
@Override
public String getServiceName() {
@ -46,10 +47,11 @@ public class SalesOrderDetailUpdateEAIService extends AbsEAIService {
SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity();
salesOrderDetailEntity.setId(assemble.getId());
salesOrderDetailEntity.setTenantSid(1L);
salesOrderDetailEntity.setStatus(2);
return salesOrderDetailEntity;
}).collect(Collectors.toList());
salesOrderDetailRepository.updateStatus(salesOrderDetailEntityList);
salesOrderDetailService.updateBatchById(salesOrderDetailEntityList);
return EAIUtil.buildEAIResult(new HashMap<>());
}


Loading…
Cancel
Save