法规清单为选数据时关联平台件
This commit is contained in:
+1
-1
@@ -11677,7 +11677,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
return pageList;
|
return pageList;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void platformDispose(ProjectLawsInventoryEO projectLawsInventoryEO, List<ProjectLawsInventoryEO> result) {
|
public void platformDispose(ProjectLawsInventoryEO projectLawsInventoryEO, List<ProjectLawsInventoryEO> result) {
|
||||||
List<String> valueList = FlowStateEnum.getValueInfo();
|
List<String> valueList = FlowStateEnum.getValueInfo();
|
||||||
List<LawsInventoryPlatformEO> lawsInventoryPlatformEOList = new ArrayList<>();
|
List<LawsInventoryPlatformEO> lawsInventoryPlatformEOList = new ArrayList<>();
|
||||||
List<ProjectLawsInventoryEO> projectLawsInventoryEOS = new ArrayList<>();
|
List<ProjectLawsInventoryEO> projectLawsInventoryEOS = new ArrayList<>();
|
||||||
|
|||||||
+5
-3
@@ -1449,11 +1449,14 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
String cut = (String) params.get("cut");//
|
String cut = (String) params.get("cut");//
|
||||||
String projectLibraryIds = (String) params.get("projectLibraryIds");//法规清单id
|
String projectLibraryIds = (String) params.get("projectLibraryIds");//法规清单id
|
||||||
String platformProjectLibraryIds = (String) params.get("platformProjectLibraryIds");//平台件法规id
|
String platformProjectLibraryIds = (String) params.get("platformProjectLibraryIds");//平台件法规id
|
||||||
|
|
||||||
//法规清单数据
|
//法规清单数据
|
||||||
LambdaQueryWrapper<ProjectLawsInventoryEO> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<ProjectLawsInventoryEO> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.in(ProjectLawsInventoryEO::getId,Arrays.asList(projectLibraryIds.split(",")));
|
wrapper.in(ProjectLawsInventoryEO::getId,Arrays.asList(projectLibraryIds.split(",")));
|
||||||
List<ProjectLawsInventoryEO> lawsInventoryEOList = projectLawsInventoryEOService.list(wrapper);
|
List<ProjectLawsInventoryEO> lawsInventoryEOList = projectLawsInventoryEOService.list(wrapper);
|
||||||
|
|
||||||
|
ProjectLawsInventoryEO projectLawsInventoryEOTemp = new ProjectLawsInventoryEO();
|
||||||
|
projectLawsInventoryEOTemp.setCut(cut);
|
||||||
|
projectLawsInventoryEOService.platformDispose(projectLawsInventoryEOTemp,lawsInventoryEOList);
|
||||||
//只有法规的设计符合性确认和验证符合性确认中的流程状态均为清单待发布的时候,才能关联平台件数据
|
//只有法规的设计符合性确认和验证符合性确认中的流程状态均为清单待发布的时候,才能关联平台件数据
|
||||||
lawsInventoryEOList = lawsInventoryEOList.stream()
|
lawsInventoryEOList = lawsInventoryEOList.stream()
|
||||||
.filter(e->ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue().equals(e.getDesignFlowStatus())
|
.filter(e->ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue().equals(e.getDesignFlowStatus())
|
||||||
@@ -1484,8 +1487,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
//serialNumber dutyTerritory
|
//serialNumber dutyTerritory
|
||||||
String serialNumber = projectLawsInventoryEO.getSerialNumber();
|
String serialNumber = projectLawsInventoryEO.getSerialNumber();
|
||||||
String dutyTerritory = projectLawsInventoryEO.getDutyTerritory();
|
String dutyTerritory = projectLawsInventoryEO.getDutyTerritory();
|
||||||
String subtitle = projectLawsInventoryEO.getSubtitle();
|
String subtitle = StringUtils.isNotEmpty(projectLawsInventoryEO.getSubtitle()) ? projectLawsInventoryEO.getSubtitle() : "";;
|
||||||
|
|
||||||
//责任领域
|
//责任领域
|
||||||
List<String> list = new LinkedList<>();
|
List<String> list = new LinkedList<>();
|
||||||
if(StringUtils.isNotBlank(dutyTerritory)){
|
if(StringUtils.isNotBlank(dutyTerritory)){
|
||||||
|
|||||||
Reference in New Issue
Block a user