|
@@ -128,7 +128,7 @@ public class WorkFullManageController extends BaseController {
|
|
|
}
|
|
|
return entity;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 项目登记列表页面
|
|
|
*/
|
|
@@ -334,7 +334,7 @@ public class WorkFullManageController extends BaseController {
|
|
|
}*/
|
|
|
return "redirect:"+Global.getAdminPath()+"/workfullmanage/workFullManage/?repage";
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 批量删除项目登记
|
|
|
*/
|
|
@@ -350,7 +350,7 @@ public class WorkFullManageController extends BaseController {
|
|
|
addMessage(redirectAttributes, "删除项目登记成功");
|
|
|
return "redirect:"+Global.getAdminPath()+"/workfullmanage/workFullManage/?repage";
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 导出excel文件
|
|
|
*/
|
|
@@ -400,7 +400,7 @@ public class WorkFullManageController extends BaseController {
|
|
|
}
|
|
|
return "redirect:"+Global.getAdminPath()+"/workfullmanage/workFullManage/?repage";
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 下载导入项目登记数据模板
|
|
|
*/
|
|
@@ -409,7 +409,7 @@ public class WorkFullManageController extends BaseController {
|
|
|
public String importFileTemplate(HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
|
|
try {
|
|
|
String fileName = "项目登记数据导入模板.xlsx";
|
|
|
- List<WorkFullManage> list = Lists.newArrayList();
|
|
|
+ List<WorkFullManage> list = Lists.newArrayList();
|
|
|
new ExportExcel("项目登记数据", WorkFullManage.class, 1).setDataList(list).write(response, fileName).dispose();
|
|
|
return null;
|
|
|
} catch (Exception e) {
|
|
@@ -879,12 +879,24 @@ public class WorkFullManageController extends BaseController {
|
|
|
List<RuralReportConsultant> consultantList = projectReportDataService.getConsultantList(ruralProjectRecords.getId());
|
|
|
//根据 职业资格名称查询字典表并比对当前人员是否已添加该职业资格信息
|
|
|
List<MainDictDetail> certificateType = DictUtils.getMainDictList("certificate_type");
|
|
|
+ //获取专业类型
|
|
|
+ List<MainDictDetail> certificateMajor = DictUtils.getMainDictList("certificate_major");
|
|
|
for (RuralReportConsultant entity: consultantList) {
|
|
|
for (MainDictDetail type : certificateType) {
|
|
|
if(entity.getZhucezigezhID().equals(type.getValue())){
|
|
|
entity.setZhucezigezh(type.getLabel());
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
+ for (MainDictDetail type : certificateMajor) {
|
|
|
+ if(entity.getMajor().equals(type.getValue())){
|
|
|
+ entity.setMajor(type.getLabel());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(StringUtils.isBlank(entity.getZhucezigezh())){
|
|
|
+ entity.setZhucezigezh("");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
List<MainDictDetail> mainDictList = Lists.newArrayList();
|
|
@@ -963,30 +975,57 @@ public class WorkFullManageController extends BaseController {
|
|
|
data.put("consultantQualification"+i,"");
|
|
|
}
|
|
|
}
|
|
|
+ if(null != projectReportData.getPrincipalDate()){
|
|
|
+ Map consultantMap = dateCalendar(projectReportData.getConsultantDate());
|
|
|
+ //专业咨询员
|
|
|
+ data.put("consultantName",projectReportData.getConsultant().getName());
|
|
|
+ data.put("consultantRemarks",projectReportData.getConsultantRemarks());
|
|
|
+ data.put("consultantYear",consultantMap.get("year"));
|
|
|
+ data.put("consultantMonth",consultantMap.get("month"));
|
|
|
+ data.put("consultantDay",consultantMap.get("day"));
|
|
|
+ }else{
|
|
|
+ //专业咨询员
|
|
|
+ data.put("consultantName","");
|
|
|
+ data.put("consultantRemarks","");
|
|
|
+ data.put("consultantYear","");
|
|
|
+ data.put("consultantMonth","");
|
|
|
+ data.put("consultantDay","");
|
|
|
+ }
|
|
|
+
|
|
|
+ if(null != projectReportData.getPrincipalDate()){
|
|
|
+ Map principalMap = dateCalendar(projectReportData.getPrincipalDate());
|
|
|
+ //项目负责人
|
|
|
+ data.put("projectMaster",projectReportData.getPrincipal().getName());
|
|
|
+ data.put("projectMasterRemarks",projectReportData.getPrincipalRemarks());
|
|
|
+ data.put("projectYear",principalMap.get("year"));
|
|
|
+ data.put("projectMonth",principalMap.get("month"));
|
|
|
+ data.put("projectDay",principalMap.get("day"));
|
|
|
+ }else{
|
|
|
+ //项目负责人
|
|
|
+ data.put("projectMaster","");
|
|
|
+ data.put("projectMasterRemarks","");
|
|
|
+ data.put("projectYear","");
|
|
|
+ data.put("projectMonth","");
|
|
|
+ data.put("projectDay","");
|
|
|
+ }
|
|
|
+
|
|
|
+ if(null != projectReportData.getTechnicistDate()){
|
|
|
+ Map technicistMap = dateCalendar(projectReportData.getTechnicistDate());
|
|
|
+ //技术负责人
|
|
|
+ data.put("technicistName",projectReportData.getTechnicist().getName());
|
|
|
+ data.put("technicistRemarks",projectReportData.getTechnicistRemarks());
|
|
|
+ data.put("technicistYear",technicistMap.get("year"));
|
|
|
+ data.put("technicistMonth",technicistMap.get("month"));
|
|
|
+ data.put("technicistDay",technicistMap.get("day"));
|
|
|
+ }else{
|
|
|
+ //技术负责人
|
|
|
+ data.put("technicistName","");
|
|
|
+ data.put("technicistRemarks","");
|
|
|
+ data.put("technicistYear","");
|
|
|
+ data.put("technicistMonth","");
|
|
|
+ data.put("technicistDay","");
|
|
|
+ }
|
|
|
|
|
|
- Map consultantMap = dateCalendar(projectReportData.getConsultantDate());
|
|
|
- //专业咨询员
|
|
|
- data.put("consultantName",projectReportData.getConsultant().getName());
|
|
|
- data.put("consultantRemarks",projectReportData.getConsultantRemarks());
|
|
|
- data.put("consultantYear",consultantMap.get("year"));
|
|
|
- data.put("consultantMonth",consultantMap.get("month"));
|
|
|
- data.put("consultantDay",consultantMap.get("day"));
|
|
|
-
|
|
|
- Map principalMap = dateCalendar(projectReportData.getPrincipalDate());
|
|
|
- //项目负责人
|
|
|
- data.put("projectMaster",projectReportData.getPrincipal().getName());
|
|
|
- data.put("projectMasterRemarks",projectReportData.getPrincipalRemarks());
|
|
|
- data.put("projectYear",principalMap.get("year"));
|
|
|
- data.put("projectMonth",principalMap.get("month"));
|
|
|
- data.put("projectDay",principalMap.get("day"));
|
|
|
-
|
|
|
- Map technicistMap = dateCalendar(projectReportData.getTechnicistDate());
|
|
|
- //技术负责人
|
|
|
- data.put("technicistName",projectReportData.getTechnicist().getName());
|
|
|
- data.put("technicistRemarks",projectReportData.getTechnicistRemarks());
|
|
|
- data.put("technicistYear",technicistMap.get("year"));
|
|
|
- data.put("technicistMonth",technicistMap.get("month"));
|
|
|
- data.put("technicistDay",technicistMap.get("day"));
|
|
|
|
|
|
//模板对象
|
|
|
Template template=null;
|
|
@@ -1036,4 +1075,4 @@ public class WorkFullManageController extends BaseController {
|
|
|
map.put("day",day.toString());
|
|
|
return map;
|
|
|
}
|
|
|
-}
|
|
|
+}
|