|
@@ -2091,17 +2091,40 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
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();
|
|
|
+ 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();
|
|
|
}
|
|
|
- itView.remove();
|
|
|
}
|
|
|
}
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
+
|
|
|
+ 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()));
|
|
@@ -2131,17 +2154,40 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
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();
|
|
|
+ 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();
|
|
|
}
|
|
|
- itView.remove();
|
|
|
}
|
|
|
}
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
+
|
|
|
+ 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()));
|
|
@@ -2182,17 +2228,40 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
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();
|
|
|
+ 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();
|
|
|
}
|
|
|
- itView.remove();
|
|
|
}
|
|
|
}
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
+
|
|
|
+ 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()));
|
|
@@ -2395,17 +2464,40 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
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();
|
|
|
+ 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();
|
|
|
}
|
|
|
- itView.remove();
|
|
|
}
|
|
|
}
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
+
|
|
|
+ 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()));
|
|
@@ -2435,17 +2527,40 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
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();
|
|
|
+ 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();
|
|
|
}
|
|
|
- itView.remove();
|
|
|
}
|
|
|
}
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
+
|
|
|
+ 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()));
|
|
@@ -2486,17 +2601,40 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
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();
|
|
|
+ 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();
|
|
|
}
|
|
|
- itView.remove();
|
|
|
}
|
|
|
}
|
|
|
- consultants.add(bzshbConsultant);
|
|
|
+
|
|
|
+ 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()));
|