|
@@ -1898,18 +1898,64 @@ public class WorkProjectNotifyController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//根据项目id查找咨询员信息
|
|
//根据项目id查找咨询员信息
|
|
- List<RuralReportConsultant> consultants=ruralProjectMessageService.getConsultantsList(projectReportData.getProject().getId());
|
|
|
|
- for (RuralReportConsultant consultant:consultants){
|
|
|
|
- //根据用户查询技能信息
|
|
|
|
- List<WorkStaffCertificate> certificateList = ruralProjectMessageService.getCertificateByUser(consultant.getZixunyuan());
|
|
|
|
- for (WorkStaffCertificate certificateInfo: certificateList) {
|
|
|
|
- if(certificateInfo.getName().equals(consultant.getZhucezigezhKey())){
|
|
|
|
- consultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
|
|
+ List<RuralReportConsultant> consultants = Lists.newArrayList();
|
|
|
|
+ //将自己添加到咨询员数据中
|
|
|
|
+ //根据用户查询技能信息
|
|
|
|
+ RuralReportConsultant currentConsultant = new RuralReportConsultant();
|
|
|
|
+ List<WorkStaffCertificate> userCertificateList = Lists.newArrayList();
|
|
|
|
+ if(StringUtils.isNotBlank(ruralProjectRecords.getProjectMasterId())){
|
|
|
|
+ userCertificateList = ruralProjectMessageService.getCertificateByUser(ruralProjectRecords.getProjectMasterId());
|
|
|
|
+ }
|
|
|
|
+ //获取专业类型
|
|
|
|
+ List<MainDictDetail> certificateMajor = DictUtils.getMainDictList("certificate_major");
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: userCertificateList) {
|
|
|
|
+ currentConsultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ currentConsultant.setZhucezigezhKey(certificateInfo.getName());
|
|
|
|
+ for (MainDictDetail type : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(type.getValue())){
|
|
|
|
+ currentConsultant.setMajor(type.getLabel());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- User user=userService.get(consultant.getZixunyuan());
|
|
|
|
- consultant.setZixunyuanName(user.getName());
|
|
|
|
|
|
+ User currentUser=userService.get(ruralProjectRecords.getProjectMasterId());
|
|
|
|
+ currentConsultant.setZixunyuanName(currentUser.getName());
|
|
|
|
+ currentConsultant.setZixunyuan(currentUser.getId());
|
|
|
|
+ currentConsultant.setRole("负责人");
|
|
|
|
+ consultants.add(currentConsultant);
|
|
|
|
+ }
|
|
|
|
+ //根据项目id查找报告咨询员信息
|
|
|
|
+ List<RuralReportConsultant> consultantList = ruralProjectMessageService.getConsultantsList(projectReportData.getProject().getId());
|
|
|
|
+ //使用迭代器去除重复信息
|
|
|
|
+ //排除 重新申请|撤销
|
|
|
|
+ Iterator<RuralReportConsultant> it = consultantList.iterator();
|
|
|
|
+ while(it.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = it.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(currentConsultant.getZixunyuan())){
|
|
|
|
+ try {
|
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, currentConsultant);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ it.remove();
|
|
|
|
+ }else{
|
|
|
|
+ //根据用户查询技能信息
|
|
|
|
+ List<WorkStaffCertificate> certificateList = ruralProjectMessageService.getCertificateByUser(consultant.getZixunyuan());
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: certificateList) {
|
|
|
|
+ if(certificateInfo.getName().equals(consultant.getZhucezigezhKey())){
|
|
|
|
+ consultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ }
|
|
|
|
+ for (MainDictDetail type : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(type.getValue())){
|
|
|
|
+ consultant.setMajor(type.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ User user=userService.get(consultant.getZixunyuan());
|
|
|
|
+ consultant.setZixunyuanName(user.getName());
|
|
|
|
+ consultant.setRole("咨询员");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ consultants.addAll(consultantList);
|
|
|
|
+
|
|
|
|
|
|
//根据条件查询附件必填项
|
|
//根据条件查询附件必填项
|
|
//判断项目类别是否为打包项目(1:打包项目,0:非打包项目)
|
|
//判断项目类别是否为打包项目(1:打包项目,0:非打包项目)
|
|
@@ -2020,19 +2066,135 @@ public class WorkProjectNotifyController extends BaseController {
|
|
List<WorkReviewAudit> workReviewAudits = workReviewStandardService.findAuditList(workReviewAudit);
|
|
List<WorkReviewAudit> workReviewAudits = workReviewStandardService.findAuditList(workReviewAudit);
|
|
model.addAttribute("type", type);
|
|
model.addAttribute("type", type);
|
|
model.addAttribute("list", workReviewAudits);
|
|
model.addAttribute("list", workReviewAudits);
|
|
|
|
+
|
|
|
|
+
|
|
if (workProjectNotify.getRemarks().contains("待通知") || "view".equals(workProjectNotify.getView())) {
|
|
if (workProjectNotify.getRemarks().contains("待通知") || "view".equals(workProjectNotify.getView())) {
|
|
|
|
+ //查询总审人员信息
|
|
|
|
+ RuralReportConsultant bzshbConsultant = new RuralReportConsultant();
|
|
|
|
+ List<WorkStaffCertificate> bzshbCertificateList = Lists.newArrayList();
|
|
|
|
+ if(StringUtils.isNotBlank(ruralProjectRecords.getProjectMasterId())){
|
|
|
|
+ bzshbCertificateList = ruralProjectMessageService.getCertificateByUser(projectReportData.getBzshbUserId());
|
|
|
|
+ }
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: bzshbCertificateList) {
|
|
|
|
+ bzshbConsultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ bzshbConsultant.setZhucezigezhKey(certificateInfo.getName());
|
|
|
|
+ for (MainDictDetail dictType : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(dictType.getValue())){
|
|
|
|
+ bzshbConsultant.setMajor(dictType.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ User bzshbUser=userService.get(projectReportData.getBzshbUserId());
|
|
|
|
+ bzshbConsultant.setZixunyuanName(bzshbUser.getName());
|
|
|
|
+ bzshbConsultant.setZixunyuan(bzshbUser.getId());
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ }
|
|
|
|
+ Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
|
+ while(itView.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = itView.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
|
+ try {
|
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ itView.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageView";
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageView";
|
|
}else if (workProjectNotify.getRemarks().contains("待审批") && !"1".equals(workProjectNotify.getStatus())) {
|
|
}else if (workProjectNotify.getRemarks().contains("待审批") && !"1".equals(workProjectNotify.getStatus())) {
|
|
|
|
+ //查询总审人员信息
|
|
|
|
+ RuralReportConsultant bzshbConsultant = new RuralReportConsultant();
|
|
|
|
+ List<WorkStaffCertificate> bzshbCertificateList = Lists.newArrayList();
|
|
|
|
+ if(StringUtils.isNotBlank(ruralProjectRecords.getProjectMasterId())){
|
|
|
|
+ bzshbCertificateList = ruralProjectMessageService.getCertificateByUser(projectReportData.getBzshbUserId());
|
|
|
|
+ }
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: bzshbCertificateList) {
|
|
|
|
+ bzshbConsultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ bzshbConsultant.setZhucezigezhKey(certificateInfo.getName());
|
|
|
|
+ for (MainDictDetail dictType : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(dictType.getValue())){
|
|
|
|
+ bzshbConsultant.setMajor(dictType.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ User bzshbUser=userService.get(projectReportData.getBzshbUserId());
|
|
|
|
+ bzshbConsultant.setZixunyuanName(bzshbUser.getName());
|
|
|
|
+ bzshbConsultant.setZixunyuan(bzshbUser.getId());
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ }
|
|
|
|
+ Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
|
+ while(itView.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = itView.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
|
+ try {
|
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ itView.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageAudit";
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageAudit";
|
|
} else if (workProjectNotify.getRemarks().contains("重新申请") && !"1".equals(workProjectNotify.getStatus())) {
|
|
} else if (workProjectNotify.getRemarks().contains("重新申请") && !"1".equals(workProjectNotify.getStatus())) {
|
|
|
|
+ Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
|
+ while(itView.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = itView.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(projectReportData.getBzshbUserId())){
|
|
|
|
+ itView.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageModify";
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageModify";
|
|
} else {
|
|
} else {
|
|
|
|
+ //查询总审人员信息
|
|
|
|
+ RuralReportConsultant bzshbConsultant = new RuralReportConsultant();
|
|
|
|
+ List<WorkStaffCertificate> bzshbCertificateList = Lists.newArrayList();
|
|
|
|
+ if(StringUtils.isNotBlank(ruralProjectRecords.getProjectMasterId())){
|
|
|
|
+ bzshbCertificateList = ruralProjectMessageService.getCertificateByUser(projectReportData.getBzshbUserId());
|
|
|
|
+ }
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: bzshbCertificateList) {
|
|
|
|
+ bzshbConsultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ bzshbConsultant.setZhucezigezhKey(certificateInfo.getName());
|
|
|
|
+ for (MainDictDetail dictType : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(dictType.getValue())){
|
|
|
|
+ bzshbConsultant.setMajor(dictType.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ User bzshbUser=userService.get(projectReportData.getBzshbUserId());
|
|
|
|
+ bzshbConsultant.setZixunyuanName(bzshbUser.getName());
|
|
|
|
+ bzshbConsultant.setZixunyuan(bzshbUser.getId());
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ }
|
|
|
|
+ Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
|
+ while(itView.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = itView.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
|
+ try {
|
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ itView.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
@@ -2061,18 +2223,63 @@ public class WorkProjectNotifyController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//根据项目id查找咨询员信息
|
|
//根据项目id查找咨询员信息
|
|
- List<RuralReportConsultant> consultants=ruralProjectMessageService.getConsultantsList(projectReportData.getProject().getId());
|
|
|
|
- for (RuralReportConsultant consultant:consultants){
|
|
|
|
- //根据用户查询技能信息
|
|
|
|
- List<WorkStaffCertificate> certificateList = ruralProjectMessageService.getCertificateByUser(consultant.getZixunyuan());
|
|
|
|
- for (WorkStaffCertificate certificateInfo: certificateList) {
|
|
|
|
- if(certificateInfo.getName().equals(consultant.getZhucezigezhKey())){
|
|
|
|
- consultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
|
|
+ List<RuralReportConsultant> consultants = Lists.newArrayList();
|
|
|
|
+ //将自己添加到咨询员数据中
|
|
|
|
+ //根据用户查询技能信息
|
|
|
|
+ RuralReportConsultant currentConsultant = new RuralReportConsultant();
|
|
|
|
+ List<WorkStaffCertificate> userCertificateList = Lists.newArrayList();
|
|
|
|
+ if(StringUtils.isNotBlank(ruralProjectRecords.getProjectMasterId())){
|
|
|
|
+ userCertificateList = ruralProjectMessageService.getCertificateByUser(ruralProjectRecords.getProjectMasterId());
|
|
|
|
+ }
|
|
|
|
+ //获取专业类型
|
|
|
|
+ List<MainDictDetail> certificateMajor = DictUtils.getMainDictList("certificate_major");
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: userCertificateList) {
|
|
|
|
+ currentConsultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ currentConsultant.setZhucezigezhKey(certificateInfo.getName());
|
|
|
|
+ for (MainDictDetail type : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(type.getValue())){
|
|
|
|
+ currentConsultant.setMajor(type.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ User currentUser=userService.get(ruralProjectRecords.getProjectMasterId());
|
|
|
|
+ currentConsultant.setZixunyuanName(currentUser.getName());
|
|
|
|
+ currentConsultant.setZixunyuan(currentUser.getId());
|
|
|
|
+ currentConsultant.setRole("负责人");
|
|
|
|
+ consultants.add(currentConsultant);
|
|
|
|
+ }
|
|
|
|
+ //根据项目id查找报告咨询员信息
|
|
|
|
+ List<RuralReportConsultant> consultantList = ruralProjectMessageService.getConsultantsList(projectReportData.getProject().getId());
|
|
|
|
+ //使用迭代器去除重复信息
|
|
|
|
+ //排除 重新申请|撤销
|
|
|
|
+ Iterator<RuralReportConsultant> it = consultantList.iterator();
|
|
|
|
+ while(it.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = it.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(currentConsultant.getZixunyuan())){
|
|
|
|
+ try {
|
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, currentConsultant);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ it.remove();
|
|
|
|
+ }else{
|
|
|
|
+ //根据用户查询技能信息
|
|
|
|
+ List<WorkStaffCertificate> certificateList = ruralProjectMessageService.getCertificateByUser(consultant.getZixunyuan());
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: certificateList) {
|
|
|
|
+ if(certificateInfo.getName().equals(consultant.getZhucezigezhKey())){
|
|
|
|
+ consultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ }
|
|
|
|
+ for (MainDictDetail type : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(type.getValue())){
|
|
|
|
+ consultant.setMajor(type.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ User user=userService.get(consultant.getZixunyuan());
|
|
|
|
+ consultant.setZixunyuanName(user.getName());
|
|
|
|
+ consultant.setRole("咨询员");
|
|
}
|
|
}
|
|
- User user=userService.get(consultant.getZixunyuan());
|
|
|
|
- consultant.setZixunyuanName(user.getName());
|
|
|
|
}
|
|
}
|
|
|
|
+ consultants.addAll(consultantList);
|
|
|
|
|
|
//根据条件查询附件必填项
|
|
//根据条件查询附件必填项
|
|
//判断项目类别是否为打包项目(1:打包项目,0:非打包项目)
|
|
//判断项目类别是否为打包项目(1:打包项目,0:非打包项目)
|
|
@@ -2142,6 +2349,7 @@ public class WorkProjectNotifyController extends BaseController {
|
|
model.addAttribute("projectcontentinfo", projectcontentinfo);
|
|
model.addAttribute("projectcontentinfo", projectcontentinfo);
|
|
model.addAttribute("projectRecords", ruralProjectRecords);
|
|
model.addAttribute("projectRecords", ruralProjectRecords);
|
|
model.addAttribute("consultantinfo", consultants);
|
|
model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
model.addAttribute("subProjectInfos", subProjectInfos);
|
|
model.addAttribute("subProjectInfos", subProjectInfos);
|
|
model.addAttribute("workContractInfo", workContractInfo);
|
|
model.addAttribute("workContractInfo", workContractInfo);
|
|
WorkReviewAudit workReviewAudit = new WorkReviewAudit();
|
|
WorkReviewAudit workReviewAudit = new WorkReviewAudit();
|
|
@@ -2165,18 +2373,132 @@ public class WorkProjectNotifyController extends BaseController {
|
|
model.addAttribute("type", type);
|
|
model.addAttribute("type", type);
|
|
model.addAttribute("list", workReviewAudits);
|
|
model.addAttribute("list", workReviewAudits);
|
|
if (workProjectNotify.getRemarks().contains("待通知") || "view".equals(workProjectNotify.getView())) {
|
|
if (workProjectNotify.getRemarks().contains("待通知") || "view".equals(workProjectNotify.getView())) {
|
|
|
|
+ //查询总审人员信息
|
|
|
|
+ RuralReportConsultant bzshbConsultant = new RuralReportConsultant();
|
|
|
|
+ List<WorkStaffCertificate> bzshbCertificateList = Lists.newArrayList();
|
|
|
|
+ if(StringUtils.isNotBlank(ruralProjectRecords.getProjectMasterId())){
|
|
|
|
+ bzshbCertificateList = ruralProjectMessageService.getCertificateByUser(projectReportData.getBzshbUserId());
|
|
|
|
+ }
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: bzshbCertificateList) {
|
|
|
|
+ bzshbConsultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ bzshbConsultant.setZhucezigezhKey(certificateInfo.getName());
|
|
|
|
+ for (MainDictDetail dictType : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(dictType.getValue())){
|
|
|
|
+ bzshbConsultant.setMajor(dictType.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ User bzshbUser=userService.get(projectReportData.getBzshbUserId());
|
|
|
|
+ bzshbConsultant.setZixunyuanName(bzshbUser.getName());
|
|
|
|
+ bzshbConsultant.setZixunyuan(bzshbUser.getId());
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ }
|
|
|
|
+ Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
|
+ while(itView.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = itView.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
|
+ try {
|
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ itView.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageView";
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageView";
|
|
}else if (workProjectNotify.getRemarks().contains("待审批") && !"1".equals(workProjectNotify.getStatus())) {
|
|
}else if (workProjectNotify.getRemarks().contains("待审批") && !"1".equals(workProjectNotify.getStatus())) {
|
|
|
|
+ //查询总审人员信息
|
|
|
|
+ RuralReportConsultant bzshbConsultant = new RuralReportConsultant();
|
|
|
|
+ List<WorkStaffCertificate> bzshbCertificateList = Lists.newArrayList();
|
|
|
|
+ if(StringUtils.isNotBlank(ruralProjectRecords.getProjectMasterId())){
|
|
|
|
+ bzshbCertificateList = ruralProjectMessageService.getCertificateByUser(projectReportData.getBzshbUserId());
|
|
|
|
+ }
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: bzshbCertificateList) {
|
|
|
|
+ bzshbConsultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ bzshbConsultant.setZhucezigezhKey(certificateInfo.getName());
|
|
|
|
+ for (MainDictDetail dictType : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(dictType.getValue())){
|
|
|
|
+ bzshbConsultant.setMajor(dictType.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ User bzshbUser=userService.get(projectReportData.getBzshbUserId());
|
|
|
|
+ bzshbConsultant.setZixunyuanName(bzshbUser.getName());
|
|
|
|
+ bzshbConsultant.setZixunyuan(bzshbUser.getId());
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ }
|
|
|
|
+ Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
|
+ while(itView.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = itView.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
|
+ try {
|
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ itView.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/projectRecordsMessageAudit";
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/projectRecordsMessageAudit";
|
|
} else if (workProjectNotify.getRemarks().contains("重新申请") && !"1".equals(workProjectNotify.getStatus())) {
|
|
} else if (workProjectNotify.getRemarks().contains("重新申请") && !"1".equals(workProjectNotify.getStatus())) {
|
|
|
|
+ Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
|
+ while(itView.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = itView.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(projectReportData.getBzshbUserId())){
|
|
|
|
+ itView.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/projectRecordsMessageModify";
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/projectRecordsMessageModify";
|
|
} else {
|
|
} else {
|
|
|
|
+ //查询总审人员信息
|
|
|
|
+ RuralReportConsultant bzshbConsultant = new RuralReportConsultant();
|
|
|
|
+ List<WorkStaffCertificate> bzshbCertificateList = Lists.newArrayList();
|
|
|
|
+ if(StringUtils.isNotBlank(ruralProjectRecords.getProjectMasterId())){
|
|
|
|
+ bzshbCertificateList = ruralProjectMessageService.getCertificateByUser(projectReportData.getBzshbUserId());
|
|
|
|
+ }
|
|
|
|
+ for (WorkStaffCertificate certificateInfo: bzshbCertificateList) {
|
|
|
|
+ bzshbConsultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
|
+ bzshbConsultant.setZhucezigezhKey(certificateInfo.getName());
|
|
|
|
+ for (MainDictDetail dictType : certificateMajor) {
|
|
|
|
+ if(certificateInfo.getMajor().equals(dictType.getValue())){
|
|
|
|
+ bzshbConsultant.setMajor(dictType.getLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ User bzshbUser=userService.get(projectReportData.getBzshbUserId());
|
|
|
|
+ bzshbConsultant.setZixunyuanName(bzshbUser.getName());
|
|
|
|
+ bzshbConsultant.setZixunyuan(bzshbUser.getId());
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ }
|
|
|
|
+ Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
|
+ while(itView.hasNext()){
|
|
|
|
+ RuralReportConsultant consultant = itView.next();
|
|
|
|
+ if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
|
+ try {
|
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ itView.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
|
+ model.addAttribute("consultantinfo", consultants);
|
|
|
|
+ model.addAttribute("consultantCount", consultants.size());
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileGistdataList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileGistdataList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|