Merge remote-tracking branch 'origin/dev_20230912_Platform' into dev_20230912_Platform

This commit is contained in:
zyx.net
2023-09-28 14:00:24 +08:00
3 changed files with 21 additions and 5 deletions
@@ -760,7 +760,7 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
String contentLog = username + "删除了清单中的“" + serialNumber + "";
String enContentLog = username + " deleted “" + serialNumber + "” from the list";
projectLawsInventoryLogEOService.updateLog(contentLog, projectLibraryId, CutEnum.CN.getValue());
projectLawsInventoryLogEOService.updateLog(contentLog, projectLibraryId, CutEnum.EN.getValue());
projectLawsInventoryLogEOService.updateLog(enContentLog, projectLibraryId, CutEnum.EN.getValue());
removeByIds(ids);
this.projectTaskInventoryEOService.deleteByProjectLawsInventoryIds(ids);
@@ -11619,8 +11619,12 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
dutyTerritoryStr = dutyTerritorys.stream().map(SysDictItem::getItemValue).distinct().collect(Collectors.joining(","));
}
}
String serialNumber = projectLawsInventoryEO.getSerialNumber();
projectLawsInventoryEO.setSerialNumber(null);
QueryWrapper<ProjectLawsInventoryEO> queryWrapper = QueryGenerator.initQueryWrapper(projectLawsInventoryEO, req.getParameterMap());
if(StringUtils.isNotBlank(serialNumber)){
queryWrapper.lambda().like(ProjectLawsInventoryEO::getSerialNumber,serialNumber);
}
queryWrapper.orderByDesc("create_time","serial_number");
if (StringUtils.isNotEmpty(dutyTerritoryStr)) {
@@ -708,7 +708,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
String contentLog = username + "删除了清单中的“" + serialNumber + "";
String enContentLog = username + " deleted “" + serialNumber + "” from the list";
projectLawsInventoryLogEOService.updateLog(contentLog, projectLibraryId, CutEnum.CN.getValue());
projectLawsInventoryLogEOService.updateLog(contentLog, projectLibraryId, CutEnum.EN.getValue());
projectLawsInventoryLogEOService.updateLog(enContentLog, projectLibraryId, CutEnum.EN.getValue());
removeByIds(ids);
this.projectTaskInventoryEOService.deleteByProjectLawsInventoryIds(ids);
@@ -1367,10 +1367,16 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
if(ObjectUtils.isEmpty(projectLawsInventoryEOS)){
emptyList.add(projectLawsInventoryEO);
}
String msg = "";
if(CutEnum.CN.getValue().equals(cut)){
msg = "在平台件项目中包含多条匹配内容,请选择关联";
}else{
msg = " multiple matching contents are included in the platform component project, please select association";
}
if(!projectLawsInventoryEOS.isEmpty() && projectLawsInventoryEOS.size() > 1){
map.put("lawsInventoryId",projectLawsInventoryEO.getId());
map.put("title",serialNumber+" "+dutyTerritoryNew+" "+subtitle+"在平台件项目中包含多条匹配内容,请选择关联");
map.put("title",serialNumber+" "+dutyTerritoryNew+" "+subtitle+msg);
map.put("result",projectLawsInventoryEOS);
mapList.add(map);
}else if(!projectLawsInventoryEOS.isEmpty() && projectLawsInventoryEOS.size() == 1){
@@ -1526,10 +1532,16 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
emptyList.add(projectLawsInventoryEO);
}
String msg = "";
if(CutEnum.CN.getValue().equals(cut)){
msg = "在平台件项目中包含多条匹配内容,请选择关联";
}else{
msg = " multiple matching contents are included in the platform component project, please select association";
}
if(!projectLawsInventoryEOS.isEmpty() && projectLawsInventoryEOS.size() > 1){
map.put("lawsInventoryId",projectLawsInventoryEO.getId());
map.put("title",serialNumber+" "+dutyTerritoryNew+" "+subtitle+"在平台件项目中包含多条匹配内容,请选择关联");
map.put("title",serialNumber+" "+dutyTerritoryNew+" "+subtitle+msg);
map.put("result",projectLawsInventoryEOS);
mapList.add(map);
}else if(!projectLawsInventoryEOS.isEmpty() && projectLawsInventoryEOS.size() == 1){