|
@@ -26,8 +26,10 @@ import com.jeeplus.modules.ruralprojectrecords.entity.RuralReportConsultant;
|
|
import com.jeeplus.modules.ruralprojectrecords.service.RuralProjectMessageNewService;
|
|
import com.jeeplus.modules.ruralprojectrecords.service.RuralProjectMessageNewService;
|
|
import com.jeeplus.modules.ruralprojectrecords.service.RuralProjectRecordsService;
|
|
import com.jeeplus.modules.ruralprojectrecords.service.RuralProjectRecordsService;
|
|
import com.jeeplus.modules.sys.entity.MainDictDetail;
|
|
import com.jeeplus.modules.sys.entity.MainDictDetail;
|
|
|
|
+import com.jeeplus.modules.sys.entity.Office;
|
|
import com.jeeplus.modules.sys.entity.Role;
|
|
import com.jeeplus.modules.sys.entity.Role;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
|
|
+import com.jeeplus.modules.sys.service.OfficeService;
|
|
import com.jeeplus.modules.sys.service.SystemService;
|
|
import com.jeeplus.modules.sys.service.SystemService;
|
|
import com.jeeplus.modules.sys.service.UserService;
|
|
import com.jeeplus.modules.sys.service.UserService;
|
|
import com.jeeplus.modules.sys.utils.DictUtils;
|
|
import com.jeeplus.modules.sys.utils.DictUtils;
|
|
@@ -118,6 +120,8 @@ public class WorkFullManageController extends BaseController {
|
|
private RuralProjectRecordsService ruralProjectRecordsService;
|
|
private RuralProjectRecordsService ruralProjectRecordsService;
|
|
@Autowired
|
|
@Autowired
|
|
private RuralProjectRecordsService projectRecordsService;
|
|
private RuralProjectRecordsService projectRecordsService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private OfficeService officeService;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private WorkFullDesignService workFullDesignService;
|
|
private WorkFullDesignService workFullDesignService;
|
|
@@ -1394,7 +1398,7 @@ public class WorkFullManageController extends BaseController {
|
|
Map<String,Object> data = new LinkedHashMap<>();
|
|
Map<String,Object> data = new LinkedHashMap<>();
|
|
//主送--委托单位
|
|
//主送--委托单位
|
|
if(null != workContractInfo){
|
|
if(null != workContractInfo){
|
|
- if (null != workContractInfo.getClient()) {
|
|
|
|
|
|
+ if (null != workContractInfo.getClient() && StringUtils.isNotBlank(workContractInfo.getClient().getName())) {
|
|
data.put("entrustOrganization",workContractInfo.getClient().getName());
|
|
data.put("entrustOrganization",workContractInfo.getClient().getName());
|
|
}else{
|
|
}else{
|
|
data.put("entrustOrganization","");
|
|
data.put("entrustOrganization","");
|
|
@@ -1420,12 +1424,16 @@ public class WorkFullManageController extends BaseController {
|
|
if(StringUtils.isBlank(projectReportData.getNumber())){
|
|
if(StringUtils.isBlank(projectReportData.getNumber())){
|
|
data.put("projectReportNumber","");
|
|
data.put("projectReportNumber","");
|
|
}else{
|
|
}else{
|
|
- data.put("projectReportNumber",projectReportData.getNumber()+" 号");
|
|
|
|
|
|
+ data.put("projectReportNumber",projectReportData.getNumber());
|
|
}
|
|
}
|
|
//承办部门
|
|
//承办部门
|
|
User user=UserUtils.get(ruralProjectRecords.getProjectMasterId());
|
|
User user=UserUtils.get(ruralProjectRecords.getProjectMasterId());
|
|
- if (StringUtils.isNotBlank(user.getOffice().getTopCompany())){
|
|
|
|
- data.put("officeName",user.getOffice().getTopCompany());
|
|
|
|
|
|
+ Office userOffice = user.getOffice();
|
|
|
|
+ while (!"ffe5af5b557e46f28b000c94716e228a".equals(userOffice.getParent().getId())){
|
|
|
|
+ userOffice = officeService.get(userOffice.getParent().getId());
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isNotBlank(userOffice.getName())){
|
|
|
|
+ data.put("officeName",userOffice.getName());
|
|
}else{
|
|
}else{
|
|
data.put("officeName","");
|
|
data.put("officeName","");
|
|
}
|
|
}
|
|
@@ -1435,34 +1443,6 @@ public class WorkFullManageController extends BaseController {
|
|
}else{
|
|
}else{
|
|
data.put("projectMaster","");
|
|
data.put("projectMaster","");
|
|
}
|
|
}
|
|
- //咨询员信息
|
|
|
|
- if(null != consultants){
|
|
|
|
- for (int i = 0; i<consultants.size(); i++){
|
|
|
|
- if (i >=6){
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- data.put("consultantName"+i,consultants.get(i).getZixunyuanName());
|
|
|
|
- if(StringUtils.isBlank(consultants.get(i).getMajor())){
|
|
|
|
- data.put("consultantProfession"+i,"");
|
|
|
|
- }else{
|
|
|
|
- data.put("consultantProfession"+i,consultants.get(i).getMajor());
|
|
|
|
- }
|
|
|
|
- data.put("consultantQualification"+i,consultants.get(i).getZhucezigezh());
|
|
|
|
- }
|
|
|
|
- if(consultants.size()<6){
|
|
|
|
- for (int i = consultants.size(); i<6; i++){
|
|
|
|
- data.put("consultantName"+i,"");
|
|
|
|
- data.put("consultantProfession"+i,"");
|
|
|
|
- data.put("consultantQualification"+i,"");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- for (int i = 0; i<6; i++){
|
|
|
|
- data.put("consultantName"+i,"");
|
|
|
|
- data.put("consultantProfession"+i,"");
|
|
|
|
- data.put("consultantQualification"+i,"");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
//专业咨询员处理(添加序号)
|
|
//专业咨询员处理(添加序号)
|
|
for(int i = 1; i <=consultantList.size();i++){
|
|
for(int i = 1; i <=consultantList.size();i++){
|
|
consultantList.get(i-1).setId(i+"");
|
|
consultantList.get(i-1).setId(i+"");
|
|
@@ -1534,8 +1514,8 @@ public class WorkFullManageController extends BaseController {
|
|
data.put("signRemarks","");
|
|
data.put("signRemarks","");
|
|
}
|
|
}
|
|
User user1=UserUtils.get(projectReportDataTwo.getBzshbUserId());
|
|
User user1=UserUtils.get(projectReportDataTwo.getBzshbUserId());
|
|
- if (StringUtils.isNotBlank(user1.getUserName())){
|
|
|
|
- data.put("signName",user1.getUserName());
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(user1.getName())){
|
|
|
|
+ data.put("signName",user1.getName());
|
|
}else{
|
|
}else{
|
|
data.put("signName","");
|
|
data.put("signName","");
|
|
}
|
|
}
|