|
@@ -578,6 +578,11 @@ public class WorkFullManageService extends CrudService<WorkFullManageDao, WorkFu
|
|
|
}
|
|
|
//根据项目id查找报告咨询员信息
|
|
|
List<RuralReportConsultant> consultantList = ruralProjectMessageNewService.getConsultantsList(ruralProjectRecords.getId());
|
|
|
+
|
|
|
+ for (RuralReportConsultant ruralReportConsultant : consultantList) {
|
|
|
+ ruralReportConsultant.setSignatureStampUrl("");
|
|
|
+ }
|
|
|
+
|
|
|
Iterator<RuralReportConsultant> it = consultantList.iterator();
|
|
|
while(it.hasNext()){
|
|
|
RuralReportConsultant consultant = it.next();
|
|
@@ -797,15 +802,29 @@ public class WorkFullManageService extends CrudService<WorkFullManageDao, WorkFu
|
|
|
|
|
|
Integer zxyFlag = 0;
|
|
|
//根据咨询员id查询咨询员信息以及咨询员的专业和资格
|
|
|
- for (RuralReportConsultant consultant : consultants) {
|
|
|
- if("咨询员".equals(consultant.getRole()) && 0 == zxyFlag){
|
|
|
- zxyFlag ++;
|
|
|
+ for (int i = 0;i<consultants.size(); i ++ ){
|
|
|
+ RuralReportConsultant consultant = consultants.get(i);
|
|
|
+ if("咨询员".equals(consultant.getRole())){
|
|
|
User consultantUser = UserUtils.get(consultant.getZixunyuan());
|
|
|
data.put("consultantName1",consultantUser.getName());
|
|
|
if(StringUtils.isNotBlank(consultant.getMajor())){
|
|
|
data.put("consultantMajor1",consultant.getMajor());
|
|
|
}
|
|
|
|
|
|
+ for (RuralReportConsultant ruralReportConsultant : consultantList) {
|
|
|
+ if(consultants.get(i).getZixunyuanName().equals(ruralReportConsultant.getZixunyuanName())){
|
|
|
+ //如果咨询员不为空,则对项咨询员进行获取签字章并存储
|
|
|
+ if(org.apache.commons.lang3.StringUtils.isNotBlank(consultantUser.getId())){
|
|
|
+ String base64String = base64String(consultantUser.getId());
|
|
|
+ data.put("handSignature4",base64String);
|
|
|
+ ruralReportConsultant.setSignatureStampUrl(base64String);
|
|
|
+ }else{
|
|
|
+ data.put("handSignature4","");
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//如果咨询员不为空,则对项咨询员进行获取签字章并存储
|
|
|
if(org.apache.commons.lang3.StringUtils.isNotBlank(consultantUser.getId())){
|
|
|
String base64String = base64String(consultantUser.getId());
|
|
@@ -841,6 +860,7 @@ public class WorkFullManageService extends CrudService<WorkFullManageDao, WorkFu
|
|
|
}
|
|
|
|
|
|
|
|
|
+ data.put("list",consultantList);
|
|
|
//咨询报告日期
|
|
|
if(null != projectReportSignatureInfo && null != projectReportSignatureInfo.getStampDate()){
|
|
|
data.put("projectReportDate",dateStr(projectReportSignatureInfo.getStampDate()));
|