|
@@ -7,6 +7,8 @@ import com.jeeplus.common.utils.StringUtils;
|
|
import com.jeeplus.common.web.BaseController;
|
|
import com.jeeplus.common.web.BaseController;
|
|
import com.jeeplus.modules.historical.entity.HistoricalData;
|
|
import com.jeeplus.modules.historical.entity.HistoricalData;
|
|
import com.jeeplus.modules.projectAccessory.entity.ProjectAccessoryRelationInfo;
|
|
import com.jeeplus.modules.projectAccessory.entity.ProjectAccessoryRelationInfo;
|
|
|
|
+import com.jeeplus.modules.projectEngineering.entity.ProjectEngineeringInfo;
|
|
|
|
+import com.jeeplus.modules.projectEngineering.service.ProjectEngineeringService;
|
|
import com.jeeplus.modules.projectcontentinfo.entity.ProjectReportData;
|
|
import com.jeeplus.modules.projectcontentinfo.entity.ProjectReportData;
|
|
import com.jeeplus.modules.projectcontentinfo.entity.Projectcontentinfo;
|
|
import com.jeeplus.modules.projectcontentinfo.entity.Projectcontentinfo;
|
|
import com.jeeplus.modules.projectcontentinfo.service.ProjectReportDataService;
|
|
import com.jeeplus.modules.projectcontentinfo.service.ProjectReportDataService;
|
|
@@ -65,6 +67,8 @@ public class RuralProjectMessageAllController extends BaseController {
|
|
private ProjectReportDataService projectReportDataService;
|
|
private ProjectReportDataService projectReportDataService;
|
|
@Autowired
|
|
@Autowired
|
|
private RuralProjectMessageService ruralProjectMessageService;
|
|
private RuralProjectMessageService ruralProjectMessageService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ProjectEngineeringService engineeringService;
|
|
|
|
|
|
@ModelAttribute
|
|
@ModelAttribute
|
|
public RuralProjectRecords get(@RequestParam(required=false) String id) {
|
|
public RuralProjectRecords get(@RequestParam(required=false) String id) {
|
|
@@ -320,6 +324,42 @@ public class RuralProjectMessageAllController extends BaseController {
|
|
consultants.add(bzshbConsultant);
|
|
consultants.add(bzshbConsultant);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //查询上报信息表中是否含有数据,没有则进行获取基础数据
|
|
|
|
+ RuralProjectRecordsReported reported = ruralProjectMessageService.getRuralProjectRecordsReported(projectRecords.getId());
|
|
|
|
+ if(reported == null){
|
|
|
|
+ model.addAttribute("reportedFalg", false);
|
|
|
|
+
|
|
|
|
+ }else{
|
|
|
|
+ //根据上报id查询上报咨询员的信息
|
|
|
|
+ List<RuralReportConsultant> reportedConsultants=ruralProjectMessageService.getReportedConsultantsList(reported.getId());
|
|
|
|
+ //查询报告咨询员的信息
|
|
|
|
+ List<RuralReportConsultant> reportConsultants=ruralProjectMessageService.getConsultantsList(projectRecords.getId());
|
|
|
|
+ List<RuralReportConsultant> consultantLista = com.google.common.collect.Lists.newArrayList();
|
|
|
|
+ if(reportedConsultants.size() == 0){
|
|
|
|
+ //如果上报的咨询员信息为空 则处理报告咨询员信息
|
|
|
|
+ consultantLista = ruralProjectMessageService.disposeConsultant(reportConsultants, projectRecords);
|
|
|
|
+ }else{
|
|
|
|
+ //对上报的咨询员进行处理
|
|
|
|
+ consultantLista = ruralProjectMessageService.disposereportedConsultant(reportedConsultants);
|
|
|
|
+ }
|
|
|
|
+ RuralProjectRecords records = projectRecordsService.getQueryProjectUsers(reported.getProjectId());
|
|
|
|
+ if(StringUtils.isBlank(reported.getProjectRecordId())){
|
|
|
|
+ reported.setProjectRecordId(records.getProjectId());
|
|
|
|
+ }
|
|
|
|
+ model.addAttribute("ruralProjectRecordsReported", reported);
|
|
|
|
+ projectcontent.setRecordsReported(reported);
|
|
|
|
+ //查询项目信息
|
|
|
|
+ model.addAttribute("ruralProjectRecords", records);
|
|
|
|
+ model.addAttribute("consultantInfo1", consultantLista);
|
|
|
|
+ if(StringUtils.isBlank(reported.getS1())){
|
|
|
|
+ reported.setS1("10");
|
|
|
|
+ }
|
|
|
|
+ //获取工程类型
|
|
|
|
+ ProjectEngineeringInfo engineeringInfos=engineeringService.getProjectReportedType(reported.getPorjectUse());
|
|
|
|
+ model.addAttribute("engineeringInfo", engineeringInfos);
|
|
|
|
+ }
|
|
|
|
+
|
|
//查询总审人员信息
|
|
//查询总审人员信息
|
|
List<User> auditUserList = userService.getAuditUserList();
|
|
List<User> auditUserList = userService.getAuditUserList();
|
|
ruralProjectRecords.setBzshbUserList(auditUserList);
|
|
ruralProjectRecords.setBzshbUserList(auditUserList);
|
|
@@ -332,11 +372,7 @@ public class RuralProjectMessageAllController extends BaseController {
|
|
model.addAttribute("id", projectcontentinfo.getId());
|
|
model.addAttribute("id", projectcontentinfo.getId());
|
|
model.addAttribute("projectcontentinfo", projectcontent);
|
|
model.addAttribute("projectcontentinfo", projectcontent);
|
|
model.addAttribute("consultantinfo", consultants);
|
|
model.addAttribute("consultantinfo", consultants);
|
|
- //获取是否含有上报信息
|
|
|
|
- RuralProjectRecordsReported reported = ruralProjectMessageService.getRuralProjectRecordsReportedById(projectcontentinfo.getReportedId());
|
|
|
|
- if(null != reported){
|
|
|
|
- model.addAttribute("reportedView", 1);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
List<MainDictDetail> achievementTypes = DictUtils.getMainDictList("achievement_type");
|
|
List<MainDictDetail> achievementTypes = DictUtils.getMainDictList("achievement_type");
|
|
if(null != achievementTypes){
|
|
if(null != achievementTypes){
|
|
for (MainDictDetail achievementType:achievementTypes) {
|
|
for (MainDictDetail achievementType:achievementTypes) {
|