From 52e5f187cf01e8a687872dfa21f8f22e41fe9fe5 Mon Sep 17 00:00:00 2001 From: clong <1584238099@qq.com> Date: Tue, 9 May 2023 08:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E5=BD=92=E4=B9=8B=E5=89=8D=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/service/order/SalesOrderDetailCreateEAIService.java | 1 + .../app/service/order/SalesOrderDetailUpdateEAIService.java | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailCreateEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailCreateEAIService.java index e9c33b5..5798834 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailCreateEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailCreateEAIService.java @@ -45,6 +45,7 @@ public class SalesOrderDetailCreateEAIService extends AbsEAIService { List 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; diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailUpdateEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailUpdateEAIService.java index 9e58616..dbde614 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailUpdateEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailUpdateEAIService.java @@ -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<>()); }