定版校验接口开发。
This commit is contained in:
+7
@@ -551,4 +551,11 @@ public class ProjectLawsInventoryEOController extends JeroController<ProjectLaws
|
||||
@RequestParam Map<String,Object> params) {
|
||||
this.projectLawsInventoryEOService.exportNotComplianList(response,request, params);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-法规清单表-定版校验")
|
||||
@ApiOperation(value="项目库-法规清单表-定版校验", notes="项目库-法规清单表-定版校验")
|
||||
@GetMapping(value = "/finalizationVerify")
|
||||
public Result<?> finalizationVerify(@RequestParam Map<String,Object> params){
|
||||
return this.projectLawsInventoryEOService.finalizationVerify(params);
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -304,4 +304,6 @@ public interface IProjectLawsInventoryEOService extends IService<ProjectLawsInve
|
||||
Map<String, Object> groupByVerifyStatus(List<ProjectLawsInventoryEO> pliEos);
|
||||
|
||||
IPage<ProjectLawsInventoryEO> queryPage(ProjectLawsInventoryEO projectLawsInventoryEO, Integer pageNo, Integer pageSize, HttpServletRequest req);
|
||||
|
||||
Result<?> finalizationVerify(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+41
@@ -13316,4 +13316,45 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
result = this.hearSort(projectLawsInventoryEO, result);
|
||||
return pageList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<?> finalizationVerify(Map<String, Object> params) {
|
||||
boolean result = false; // 返回true,可以定版,返回false 不能定版
|
||||
String projectLibraryId = (String) params.get("projectLibraryId");
|
||||
if(StringUtils.isEmpty(projectLibraryId)){
|
||||
throw new JeroBootException("项目库id不能为空,请检查!");
|
||||
}
|
||||
QueryWrapper<ProjectLawsInventoryEO> pliQueryWrap = new QueryWrapper<>();
|
||||
pliQueryWrap.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryId);
|
||||
List<ProjectLawsInventoryEO> pliEoList = this.list(pliQueryWrap);
|
||||
if(CollectionUtils.isNotEmpty(pliEoList)){
|
||||
for (ProjectLawsInventoryEO pliEo : pliEoList) {
|
||||
String designFlowStatus = pliEo.getDesignFlowStatus();
|
||||
String verifyFlowStatus = pliEo.getVerifyFlowStatus();
|
||||
boolean designFlowStatusFlag = (
|
||||
StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue())
|
||||
|| StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue())
|
||||
|| StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.CONFORMITY.getValue())
|
||||
|| StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.INCONFORMITY.getValue())
|
||||
|| StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.TO_TRACK.getValue())
|
||||
|| StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.UNINVOLVED.getValue())
|
||||
);
|
||||
boolean verifyFlowStatusFlag = (
|
||||
StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue())
|
||||
|| StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue())
|
||||
|| StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.CONFORMITY.getValue())
|
||||
|| StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.INCONFORMITY.getValue())
|
||||
|| StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.TO_TRACK.getValue())
|
||||
|| StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.UNINVOLVED.getValue())
|
||||
);
|
||||
if(designFlowStatusFlag && verifyFlowStatusFlag){
|
||||
result = true;
|
||||
}else {
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return Result.OK(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user