From 683bf48101c28a389a6d7e5bb625c58ba12933ef Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Thu, 2 Jun 2022 10:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0studio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DummyInventoryBaseEOServiceImpl.java | 12 +++---- .../ProjectLawsInventoryEOServiceImpl.java | 32 +++++++++++++------ 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java index 1429cf77d..00fc4ec0d 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java @@ -1358,7 +1358,7 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl list = Arrays.asList(infoDiff.get("designInitiator").split(",")); String infoDiffOld = list.get(0); - String infoDiffNew = list.get(1); + String infoDiffNew = "list.get(1)"; if (StringUtils.isBlank(contentLog)) { contentInfo += "'"+DummyInventoryBaseFieldEnum.DESIGN_INITIATOR.getEnName() +"' has been changed from " + infoDiffOld + " to " + infoDiffNew + ","; @@ -1370,7 +1370,7 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl list = Arrays.asList(infoDiff.get("designDuty").split(",")); String infoDiffOld = list.get(0); - String infoDiffNew = list.get(1); + String infoDiffNew = "list.get(1)"; if (StringUtils.isBlank(contentLog)) { contentInfo += "'"+DummyInventoryBaseFieldEnum.DESIGN_DUTY.getEnName() +"' has been changed from " + infoDiffOld + " to " + infoDiffNew + ","; @@ -1406,7 +1406,7 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl list = Arrays.asList(infoDiff.get("prehomoInitiator").split(",")); String infoDiffOld = list.get(0); - String infoDiffNew = list.get(1); + String infoDiffNew = "list.get(1)"; if (StringUtils.isBlank(contentLog)) { contentInfo += "'"+DummyInventoryBaseFieldEnum.PREHOMO_INITIATOR.getEnName() +"' has been changed from " + infoDiffOld + " to " + infoDiffNew + ","; @@ -1418,7 +1418,7 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl list = Arrays.asList(infoDiff.get("prehomoDuty").split(",")); String infoDiffOld = list.get(0); - String infoDiffNew = list.get(1); + String infoDiffNew = "list.get(1)"; if (StringUtils.isBlank(contentLog)) { contentInfo += "'"+DummyInventoryBaseFieldEnum.PREHOMO_DUTY.getEnName() +"' has been changed from " + infoDiffOld + " to " + infoDiffNew + ","; @@ -1454,7 +1454,7 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl list = Arrays.asList(infoDiff.get("verifyInitiator").split(",")); String infoDiffOld = list.get(0); - String infoDiffNew = list.get(1); + String infoDiffNew = "list.get(1)"; if (StringUtils.isBlank(contentLog)) { contentInfo += "'"+DummyInventoryBaseFieldEnum.VERIFY_INITIATOR.getEnName() +"' has been changed from " + infoDiffOld + " to " + infoDiffNew + ","; @@ -1466,7 +1466,7 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl list = Arrays.asList(infoDiff.get("verifyDuty").split(",")); String infoDiffOld = list.get(0); - String infoDiffNew = list.get(1); + String infoDiffNew = "list.get(1)"; if (StringUtils.isBlank(contentLog)) { contentInfo += "'"+DummyInventoryBaseFieldEnum.VERIFY_DUTY.getEnName() +"' has been changed from " + infoDiffOld + " to " + infoDiffNew + ","; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 5f9cdb785..62900e426 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -1231,13 +1231,21 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl projectLawsInventoryEOS = this.baseMapper.selectList(queryWrapper); + //项目库信息(获取studio) + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + wrapper.in(ProjectLibraryBase::getId,projectLibraryId); + List projectLibraryBases = projectLibraryBaseMapper.selectList(wrapper); + String studioEngineer = ""; + if(projectLibraryBases.size() != 0){ + studioEngineer = projectLibraryBases.get(0).getStudioEngineer(); + } for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOS) { for (ProjectRelatedPersonnel projectRelatedPersonnel : projectRelatedPersonnels) { if(StringUtils.equals(projectRelatedPersonnel.getDutyTerritory(),projectLawsInventoryEO.getDutyTerritory())){ //法规工程师 if (StringUtils.isEmpty(projectLawsInventoryEO.getRegulationOwnerId())) { - String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnel); + String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnel,studioEngineer); if(StringUtils.isNotEmpty(userId)){ projectLawsInventoryEO.setRegulationOwnerId(userId); } @@ -1245,7 +1253,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl