项目未符合项-列表
This commit is contained in:
+5
-1
@@ -113,9 +113,13 @@
|
||||
and
|
||||
</if>
|
||||
(
|
||||
design_flow_status =#{ncrTrackVO.inconformity}
|
||||
or verify_flow_status =#{ncrTrackVO.inconformity}
|
||||
)
|
||||
<!--(
|
||||
design_flow_status =#{ncrTrackVO.inconformity} or design_flow_status =#{ncrTrackVO.track}
|
||||
or verify_flow_status =#{ncrTrackVO.inconformity} or verify_flow_status =#{ncrTrackVO.track}
|
||||
)
|
||||
)-->
|
||||
<!--如果当前操作人不是系统管理员角色,查询跟自己相关的数据,如果是系统管理员,查询所有的-->
|
||||
<if test="ncrTrackVO.administrator == 'false'">
|
||||
<if test="ncrTrackVO.userId != null and ncrTrackVO.userId != ''">
|
||||
|
||||
+175
@@ -58,6 +58,8 @@ import com.jero.modules.project.mapper.*;
|
||||
import com.jero.modules.project.service.*;
|
||||
import com.jero.modules.project.service.editImpl.ProjectLawsInventoryEOEditServiceImpl;
|
||||
import com.jero.modules.project.util.WordUtil;
|
||||
import com.jero.modules.project.vo.NcrTrackVO;
|
||||
import com.jero.modules.project.vo.ProblemManagementVO;
|
||||
import com.jero.modules.project.vo.ProjectTaskUrgVo;
|
||||
import com.jero.modules.split.common.FileUnZip;
|
||||
import com.jero.modules.system.entity.SysAnnouncement;
|
||||
@@ -73,6 +75,7 @@ import com.jero.modules.system.mapper.SysUserMapper;
|
||||
import com.jero.modules.system.service.IProjectUserDutyTerritoryService;
|
||||
import com.jero.modules.system.service.ISysAnnouncementService;
|
||||
import com.jero.modules.system.service.ISysDictItemService;
|
||||
import com.jero.modules.system.service.ISysDictService;
|
||||
import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.modules.system.service.impl.SysCategoryServiceImpl;
|
||||
import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
|
||||
@@ -272,6 +275,12 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
private IProjectLibraryRoleRelEOService projectLibraryRoleRelEOService;
|
||||
@Autowired
|
||||
private ProjectLawsInventoryEOEditServiceImpl editService;
|
||||
@Autowired
|
||||
private ProblemManagementEOServiceImpl problemManagementEOService;
|
||||
@Autowired
|
||||
private ProblemManagementEOMapper problemManagementEOMapper;
|
||||
@Autowired
|
||||
private ISysDictService sysDictService;
|
||||
|
||||
/**
|
||||
* 保存
|
||||
@@ -10276,6 +10285,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
|
||||
@Override
|
||||
public List<Map<String,Object>> queryNotComplianList(Map<String, Object> params) {
|
||||
//problemManagementEOService
|
||||
String cut = (String) params.get("cut");
|
||||
|
||||
List<String> complianceFlowStatusList = new ArrayList<>();
|
||||
@@ -10348,6 +10358,171 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
}
|
||||
}
|
||||
}
|
||||
//新数据
|
||||
LambdaQueryWrapper<ProblemManagementEO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.like(ProblemManagementEO::getProjectId,params.get("projectLibraryId"));
|
||||
List<ProblemManagementEO> managementEOList = problemManagementEOService.list(wrapper);
|
||||
//法规
|
||||
List<String> lawsIdList = managementEOList.stream()
|
||||
.filter(e->StringUtils.isNotBlank(e.getLawsId())).map(ProblemManagementEO::getLawsId).collect(Collectors.toList());
|
||||
//项目
|
||||
List<String> projectIdList = managementEOList.stream()
|
||||
.filter(e->StringUtils.isNotBlank(e.getProjectId())).map(ProblemManagementEO::getProjectId).collect(Collectors.toList());
|
||||
//相关文件
|
||||
List<String> fileList = managementEOList.stream()
|
||||
.filter(e -> StringUtils.isNotBlank(e.getFile())).map(ProblemManagementEO::getFile).collect(Collectors.toList());
|
||||
//审批证据
|
||||
List<String> approvalEvidenceList = managementEOList.stream()
|
||||
.filter(e -> StringUtils.isNotBlank(e.getApprovalEvidence())).map(ProblemManagementEO::getApprovalEvidence).collect(Collectors.toList());
|
||||
List<String> connectList = new ArrayList<>();
|
||||
if(!fileList.isEmpty()){
|
||||
connectList.addAll(fileList);
|
||||
}
|
||||
if(!approvalEvidenceList.isEmpty()){
|
||||
connectList.addAll(approvalEvidenceList);
|
||||
}
|
||||
List<OSSFile> fileInfoList = new ArrayList<>();
|
||||
if(!connectList.isEmpty()){
|
||||
fileInfoList = iOSSFileService.getFileInfosByConnectId(StringUtils.join(connectList,","));
|
||||
}
|
||||
|
||||
List<BussDocumentLibraryEO> documentLibraryEOList = new ArrayList<>();
|
||||
if(!lawsIdList.isEmpty()){
|
||||
Set<String> lawIdSet = new HashSet<>();
|
||||
for (String lawIds : lawsIdList) {
|
||||
lawIdSet.addAll(Arrays.asList(lawIds.split(",")));
|
||||
}
|
||||
if(!lawIdSet.isEmpty()){
|
||||
LambdaQueryWrapper<BussDocumentLibraryEO> wrapperDocument = new LambdaQueryWrapper<>();
|
||||
wrapperDocument.in(BussDocumentLibraryEO::getId, lawIdSet);
|
||||
documentLibraryEOList = bussDocumentLibraryEOService.list(wrapperDocument);
|
||||
}
|
||||
}
|
||||
|
||||
List<ProjectLibraryBase> projectLibraryBaseList = new ArrayList<>();
|
||||
if(!projectIdList.isEmpty()){
|
||||
Set<String> projectIdSet = new HashSet<>();
|
||||
for (String projectIds : projectIdList) {
|
||||
projectIdSet.addAll(Arrays.asList(projectIds.split(",")));
|
||||
}
|
||||
if(!projectIdSet.isEmpty()){
|
||||
projectLibraryBaseList = problemManagementEOMapper.queryByIds(StringUtils.join(projectIdSet,","));
|
||||
}
|
||||
}
|
||||
List<NcrTrackVO> ncrTrackVOList = new ArrayList<>();
|
||||
List<Map<String,Object>> mapList = new ArrayList<>();
|
||||
for (ProblemManagementEO problemManagementEO : managementEOList) {
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("title",problemManagementEO.getTitle());
|
||||
map.put("psIssue",problemManagementEO.getPsIssue());
|
||||
map.put("dutyTerritory",problemManagementEO.getDutyTerritory());
|
||||
map.put("problemState",problemManagementEO.getProblemState());
|
||||
map.put("description",problemManagementEO.getDescription());
|
||||
map.put("conclusion",problemManagementEO.getConclusion());
|
||||
//相关法规
|
||||
if(StringUtils.isNotBlank(problemManagementEO.getLawsId())){
|
||||
if(!documentLibraryEOList.isEmpty()){
|
||||
List<BussDocumentLibraryEO> documentLibraryEOListTemp = documentLibraryEOList.stream()
|
||||
.filter(e->StringUtils.isNotBlank(problemManagementEO.getLawsId())
|
||||
&& problemManagementEO.getLawsId().contains(e.getId())).collect(Collectors.toList());
|
||||
List<String> serialNumberList = documentLibraryEOListTemp.stream().map(BussDocumentLibraryEO::getSerialNumber).collect(Collectors.toList());
|
||||
problemManagementEO.setLawsName(StringUtils.join(serialNumberList,","));
|
||||
map.put("lawsName",StringUtils.join(serialNumberList,","));
|
||||
map.put("lawsId",problemManagementEO.getLawsId());
|
||||
}
|
||||
}
|
||||
//相关项目
|
||||
if(StringUtils.isNotBlank(problemManagementEO.getProjectId())){
|
||||
List<ProjectLibraryBase> projectLibraryBaseListTemp = projectLibraryBaseList.stream()
|
||||
.filter(e->StringUtils.isNotBlank(problemManagementEO.getProjectId())
|
||||
&& problemManagementEO.getProjectId().contains(e.getId())).collect(Collectors.toList());
|
||||
//目标市场数据字典
|
||||
List<DictModel> targetMarketList = sysDictService.queryDictItemsByCode(DicCodeEnum.REGION.getCode());
|
||||
List<String> projectNameList = new ArrayList<>();
|
||||
for (ProjectLibraryBase projectLibraryBase : projectLibraryBaseListTemp) {
|
||||
//目标市场
|
||||
String targetMarket = problemManagementEOService.getMarket(cut, targetMarketList, projectLibraryBase);
|
||||
//主项目的版本号
|
||||
String projectVersion = "";
|
||||
if(com.jero.modules.system.util.StringUtils.isBlank(projectLibraryBase.getParentId())){
|
||||
projectVersion = "00";
|
||||
}else{
|
||||
projectVersion = projectLibraryBase.getProjectVersion();
|
||||
}
|
||||
projectNameList.add(projectLibraryBase.getProjectName()
|
||||
+ "-" + projectLibraryBase.getYearName()
|
||||
+ "-" + targetMarket
|
||||
+"-"+projectVersion);
|
||||
}
|
||||
if(!projectNameList.isEmpty()){
|
||||
problemManagementEO.setProjectName(StringUtils.join(projectNameList,","));
|
||||
map.put("projectName",StringUtils.join(projectNameList,","));
|
||||
map.put("projectId",problemManagementEO.getProjectId());
|
||||
}
|
||||
}
|
||||
|
||||
//相关文件连接
|
||||
if(StringUtils.isNotBlank(problemManagementEO.getFileLink())){
|
||||
List<ProblemManagementVO> list = new ArrayList<>();
|
||||
for (String fileLink : problemManagementEO.getFileLink().split(",")) {
|
||||
ProblemManagementVO problemManagementVO = new ProblemManagementVO();
|
||||
problemManagementVO.setFileLink(fileLink);
|
||||
list.add(problemManagementVO);
|
||||
}
|
||||
problemManagementEO.setFileLinkList(list);
|
||||
map.put("fileLinkList",list);
|
||||
}
|
||||
|
||||
//审批证据连接
|
||||
if(StringUtils.isNotBlank(problemManagementEO.getApprovalEvidenceLink())){
|
||||
List<ProblemManagementVO> list = new ArrayList<>();
|
||||
for (String approvalEvidenceLink : problemManagementEO.getApprovalEvidenceLink().split(",")) {
|
||||
ProblemManagementVO problemManagementVO = new ProblemManagementVO();
|
||||
problemManagementVO.setApprovalEvidenceLink(approvalEvidenceLink);
|
||||
list.add(problemManagementVO);
|
||||
}
|
||||
problemManagementEO.setApprovalEvidenceLinkList(list);
|
||||
map.put("approvalEvidenceLinkList",list);
|
||||
}
|
||||
//进度追踪
|
||||
if(StringUtils.isNotBlank(problemManagementEO.getProgressTracking())){
|
||||
List<ProblemManagementVO> list = new ArrayList<>();
|
||||
for (String progressTracking : problemManagementEO.getProgressTracking().split(",")) {
|
||||
ProblemManagementVO problemManagementVO = new ProblemManagementVO();
|
||||
problemManagementVO.setProgressTracking(progressTracking);
|
||||
list.add(problemManagementVO);
|
||||
}
|
||||
problemManagementEO.setProgressTrackingList(list);
|
||||
map.put("progressTrackingList",list);
|
||||
}
|
||||
//相关文件
|
||||
if(StringUtils.isNotBlank(problemManagementEO.getFile())){
|
||||
List<OSSFile> collect = fileInfoList.stream()
|
||||
.filter(e -> e.getConnectId().equals(problemManagementEO.getFile())).collect(Collectors.toList());
|
||||
problemManagementEO.setFileList(collect);
|
||||
map.put("fileList",collect);
|
||||
}
|
||||
//审批证据
|
||||
if(StringUtils.isNotBlank(problemManagementEO.getApprovalEvidence())){
|
||||
List<OSSFile> collect = fileInfoList.stream()
|
||||
.filter(e -> e.getConnectId().equals(problemManagementEO.getApprovalEvidence())).collect(Collectors.toList());
|
||||
problemManagementEO.setApprovalEvidenceFileList(collect);
|
||||
map.put("approvalEvidenceFileList",collect);
|
||||
|
||||
}
|
||||
map.put("uuid",problemManagementEO.getId());
|
||||
map.put("flag",DataEnum.NEW.getValue());
|
||||
mapList.add(map);
|
||||
NcrTrackVO ncrTrackVOTemp = new NcrTrackVO();
|
||||
BeanUtils.copyProperties(problemManagementEO,ncrTrackVOTemp);
|
||||
ncrTrackVOTemp.setUuid(ncrTrackVOTemp.getId());
|
||||
ncrTrackVOTemp.setFlag(DataEnum.NEW.getValue());
|
||||
ncrTrackVOList.add(ncrTrackVOTemp);
|
||||
}
|
||||
if(ObjectUtils.isNotEmpty(mapList)){
|
||||
result.addAll(mapList);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user