From b57fbefe1999e857e2181125044386a17c3a8c31 Mon Sep 17 00:00:00 2001 From: zhenggl Date: Fri, 15 Sep 2023 18:29:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=94=9F=E4=BA=A7=E4=B8=BB=E7=AE=A1?= =?UTF-8?q?=E7=AD=89=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ptc/service/production/ProductionCreateEAIService.java | 3 ++- .../receivables/ReceivablesInitialCreateEAIService.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java index 2c4ddd8..c59e9e8 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java @@ -66,13 +66,14 @@ public class ProductionCreateEAIService extends AbsEAIService { Integer batchNo = 1; for (ProductionDetailsEntity productionDetailsEntity : productionDetailsEntities) { int randomNumber = random.nextInt(3); + int nature = random.nextInt(2)+1; productionDetailsEntity.setFactoryNo(this.list.get(randomNumber).getFactoryNo()); productionDetailsEntity.setFactoryName(this.list.get(randomNumber).getFactoryName()); productionDetailsEntity.setProductionManagementPerson(this.list.get(randomNumber).getProductionManagementPerson()); productionDetailsEntity.setProductionManagementDepartment("生管一部"); productionDetailsEntity.setProduceBoss("23467345221"); productionDetailsEntity.setProductionStatus(TabStatusEnums.PENDING.getValue().toString()); - productionDetailsEntity.setNature(String.valueOf(randomNumber)); + productionDetailsEntity.setNature(String.valueOf(nature)); productionDetailsEntity.setBatchNo("MMDD-000"+batchNo); productionDetailsEntity.setUnit("pcs"); batchNo = batchNo+1; diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java index b2fdc4e..fc202f2 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java @@ -141,8 +141,8 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService { receivablesDetailEntity.setSalesOrder("SO-"+SnowflakeWorker.nextId()); receivablesDetailEntity.setSalesOrderNumber("SON-000"+no); receivablesDetailEntity.setSalesmanAssistant("Sp0001"); - receivablesDetailEntity.setSalesmanBoss("qcsupplier001"); - receivablesDetailEntity.setSalesman("qcuser001"); + receivablesDetailEntity.setSalesmanBoss("qcuser004"); + receivablesDetailEntity.setSalesman("Sp0001"); receivablesDetailEntity.setProduceBoss("Sp0002"); receivablesDetailEntity.setEmail("ath_Sp0001@163.com"); receivablesDetailEntity.setWorkNo("work-"+SnowflakeWorker.nextId());