|
@@ -3737,7 +3737,6 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //根据项目id查找咨询员信息
|
|
|
List<RuralReportConsultant> consultants = Lists.newArrayList();
|
|
|
//将自己添加到咨询员数据中
|
|
|
//根据用户查询技能信息
|
|
@@ -3751,9 +3750,9 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
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());
|
|
|
+ for (MainDictDetail detailType : certificateMajor) {
|
|
|
+ if(certificateInfo.getMajor().equals(detailType.getValue())){
|
|
|
+ currentConsultant.setMajor(detailType.getLabel());
|
|
|
}
|
|
|
}
|
|
|
User currentUser=userService.get(ruralProjectRecords.getProjectMasterId());
|
|
@@ -3762,8 +3761,12 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
currentConsultant.setRole("负责人");
|
|
|
consultants.add(currentConsultant);
|
|
|
}
|
|
|
+ //获取总审人员
|
|
|
+ User user=new User();
|
|
|
+ //查询总审人员信息
|
|
|
+ RuralReportConsultant bzshbConsultant = new RuralReportConsultant();
|
|
|
//根据项目id查找报告咨询员信息
|
|
|
- List<RuralReportConsultant> consultantList = ruralProjectMessageService.getConsultantsList(projectReportData.getProject().getId());
|
|
|
+ List<RuralReportConsultant> consultantList = ruralProjectMessageService.getConsultantsList(ruralProjectRecords.getId());
|
|
|
//使用迭代器去除重复信息
|
|
|
//排除 重新申请|撤销
|
|
|
Iterator<RuralReportConsultant> it = consultantList.iterator();
|
|
@@ -3783,17 +3786,121 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
if(certificateInfo.getName().equals(consultant.getZhucezigezhKey())){
|
|
|
consultant.setZhucezigezhID(certificateInfo.getNum());
|
|
|
}
|
|
|
- for (MainDictDetail type : certificateMajor) {
|
|
|
- if(certificateInfo.getMajor().equals(type.getValue())){
|
|
|
- consultant.setMajor(type.getLabel());
|
|
|
+ for (MainDictDetail detailType : certificateMajor) {
|
|
|
+ if(certificateInfo.getMajor().equals(detailType.getValue())){
|
|
|
+ consultant.setMajor(detailType.getLabel());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- User user=userService.get(consultant.getZixunyuan());
|
|
|
- consultant.setZixunyuanName(user.getName());
|
|
|
+ user=userService.get(consultant.getZixunyuan());
|
|
|
consultant.setRole("咨询员");
|
|
|
+ consultant.setZixunyuanName(user.getName());
|
|
|
+ if(consultant.getZixunyuan().equals(projectReportData.getBzshbUserId())){
|
|
|
+ User chenHongXing=UserUtils.getByLoginName("陈红星");
|
|
|
+ List<WorkStaffCertificate> chenHongXingCertificateList = ruralProjectMessageService.getCertificateByUser(chenHongXing.getId());
|
|
|
+ //获取陈红星的造价师信息
|
|
|
+ WorkStaffCertificate chenHongXingStaffCertificate = chenHongXingCertificateList.get(0);
|
|
|
+
|
|
|
+ //根据用户查询技能信息
|
|
|
+ List<WorkStaffCertificate> certificateBList = ruralProjectMessageService.getCertificateByUser(consultant.getZixunyuan());
|
|
|
+ for (WorkStaffCertificate certificateInfo: certificateBList) {
|
|
|
+ for (MainDictDetail type1 : certificateMajor) {
|
|
|
+ if(certificateInfo.getMajor().equals(type1.getValue())){
|
|
|
+ bzshbConsultant.setMajor(type1.getLabel());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ bzshbConsultant = consultant;
|
|
|
+ bzshbConsultant.setZhucezigezhID(chenHongXingStaffCertificate.getNum());
|
|
|
+ bzshbConsultant.setZixunyuanName("陈红星("+consultant.getZixunyuanName()+"代)");
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
+ it.remove();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if(StringUtils.isNotBlank(bzshbConsultant.getZixunyuan())){
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
+ }else{
|
|
|
+ //查询总审人员信息
|
|
|
+ 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(bzshbCertificateList.size()>0){
|
|
|
+ if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
+ try {
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
+ bzshbConsultant.setZixunyuanName("陈红星("+bzshbConsultant.getZixunyuanName()+"代)");
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ itView.remove();
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(consultant.getZixunyuan().equals(projectReportData.getBzshbUserId())){
|
|
|
+ try {
|
|
|
+ MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
+ bzshbConsultant.setZixunyuanName("陈红星("+bzshbConsultant.getZixunyuanName()+"代)");
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ itView.remove();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(bzshbConsultant.getZixunyuan())){
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
+ }else{
|
|
|
+ if(StringUtils.isNotBlank(projectReportData.getBzshbUserId())){
|
|
|
+ user=userService.get(projectReportData.getBzshbUserId());
|
|
|
+
|
|
|
+ User chenHongXing=UserUtils.getByLoginName("陈红星");
|
|
|
+ List<WorkStaffCertificate> chenHongXingCertificateList = ruralProjectMessageService.getCertificateByUser(chenHongXing.getId());
|
|
|
+ //获取陈红星的造价师信息
|
|
|
+ WorkStaffCertificate chenHongXingStaffCertificate = chenHongXingCertificateList.get(0);
|
|
|
+
|
|
|
+ //根据用户查询技能信息
|
|
|
+ List<WorkStaffCertificate> certificateBList = ruralProjectMessageService.getCertificateByUser(chenHongXing.getId());
|
|
|
+ for (WorkStaffCertificate certificateInfo: certificateBList) {
|
|
|
+ for (MainDictDetail type1 : certificateMajor) {
|
|
|
+ if(certificateInfo.getMajor().equals(type1.getValue())){
|
|
|
+ bzshbConsultant.setMajor(type1.getLabel());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ bzshbConsultant.setZhucezigezhID(chenHongXingStaffCertificate.getNum());
|
|
|
+
|
|
|
+ bzshbConsultant.setZixunyuanName("陈红星("+user.getName()+"代)");
|
|
|
+ bzshbConsultant.setZixunyuan(user.getId());
|
|
|
+ bzshbConsultant.setRole("技术负责人");
|
|
|
+ consultants.add(bzshbConsultant);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
consultants.addAll(consultantList);
|
|
|
|
|
|
//根据条件查询附件必填项
|
|
@@ -3929,6 +4036,7 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
model.addAttribute("consultantCount", consultants.size());
|
|
|
model.addAttribute("subProjectInfos", subProjectInfos);
|
|
|
model.addAttribute("workContractInfo", workContractInfo);
|
|
|
+ model.addAttribute("projectGrade", ruralProjectRecords.getSubmitMoney());
|
|
|
//tap页
|
|
|
//查询所有的工程类型
|
|
|
List<ProjectEngineeringInfo> projectEngineeringInfo=engineeringService.findList(new ProjectEngineeringInfo());
|
|
@@ -3956,6 +4064,9 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
projectReportData.setProjectReviewList(workReviewAudits);
|
|
|
}
|
|
|
model.addAttribute("projectReportData", projectReportData);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if (workProjectNotify.getRemarks().contains("待通知") || "view".equals(workProjectNotify.getView())) {
|
|
|
//展示
|
|
|
WorkReviewAudit workReviewAudit = new WorkReviewAudit();
|
|
@@ -3973,62 +4084,7 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
model.addAttribute("lists", workReviewAudits);
|
|
|
- //查询总审人员信息
|
|
|
- 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());
|
|
|
- }
|
|
|
|
|
|
- Iterator<RuralReportConsultant> itView = consultants.iterator();
|
|
|
- while(itView.hasNext()){
|
|
|
- RuralReportConsultant consultant = itView.next();
|
|
|
- if(bzshbCertificateList.size()>0){
|
|
|
- if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
- try {
|
|
|
- MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+bzshbConsultant.getZixunyuanName()+"代)");
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- itView.remove();
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(consultant.getZixunyuan().equals(projectReportData.getBzshbUserId())){
|
|
|
- try {
|
|
|
- MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+bzshbConsultant.getZixunyuanName()+"代)");
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- itView.remove();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if(StringUtils.isNotBlank(bzshbConsultant.getZixunyuan())){
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
- }else{
|
|
|
- User user=userService.get(projectReportData.getBzshbUserId());
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+user.getName()+"代)");
|
|
|
- bzshbConsultant.setZixunyuan(user.getId());
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
- }
|
|
|
model.addAttribute("consultantinfo", consultants);
|
|
|
model.addAttribute("consultantCount", consultants.size());
|
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
@@ -4036,62 +4092,7 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
projectcontentinfo.setFileOtherList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileOtherList()));
|
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/projectRecordsMessageView";
|
|
|
}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(bzshbCertificateList.size()>0){
|
|
|
- if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
- try {
|
|
|
- MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+bzshbConsultant.getZixunyuanName()+"代)");
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- itView.remove();
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(consultant.getZixunyuan().equals(projectReportData.getBzshbUserId())){
|
|
|
- try {
|
|
|
- MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+bzshbConsultant.getZixunyuanName()+"代)");
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- itView.remove();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- if(StringUtils.isNotBlank(bzshbConsultant.getZixunyuan())){
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
- }else{
|
|
|
- User user=userService.get(projectReportData.getBzshbUserId());
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+user.getName()+"代)");
|
|
|
- bzshbConsultant.setZixunyuan(user.getId());
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
- }
|
|
|
model.addAttribute("consultantinfo", consultants);
|
|
|
model.addAttribute("consultantCount", consultants.size());
|
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|
|
@@ -4114,13 +4115,7 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
model.addAttribute("identificationName","报告审核意见");
|
|
|
return "modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/projectRecordsMessageAudit";
|
|
|
} 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("info", consultants);
|
|
|
model.addAttribute("consultantCount", consultants.size());
|
|
|
|
|
@@ -4140,62 +4135,7 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
model.addAttribute("lists", workReviewAudits);
|
|
|
- //查询总审人员信息
|
|
|
- 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(bzshbCertificateList.size()>0){
|
|
|
- if(consultant.getZixunyuan().equals(bzshbConsultant.getZixunyuan())){
|
|
|
- try {
|
|
|
- MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+bzshbConsultant.getZixunyuanName()+"代)");
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- itView.remove();
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(consultant.getZixunyuan().equals(projectReportData.getBzshbUserId())){
|
|
|
- try {
|
|
|
- MyBeanUtils.copyBeanNotNull2Bean(consultant, bzshbConsultant);
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+bzshbConsultant.getZixunyuanName()+"代)");
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- itView.remove();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- if(StringUtils.isNotBlank(bzshbConsultant.getZixunyuan())){
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
- }else{
|
|
|
- User user=userService.get(projectReportData.getBzshbUserId());
|
|
|
- bzshbConsultant.setZixunyuanName("陈红星("+user.getName()+"代)");
|
|
|
- bzshbConsultant.setZixunyuan(user.getId());
|
|
|
- bzshbConsultant.setRole("技术负责人");
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
- }
|
|
|
model.addAttribute("consultantinfo", consultants);
|
|
|
model.addAttribute("consultantCount", consultants.size());
|
|
|
projectcontentinfo.setFileAttachmentList(ruralProjectRecordsService.disposeDataAttachment(projectcontentinfo.getFileAttachmentList()));
|