|
@@ -39,6 +39,7 @@ import com.jeeplus.modules.sys.entity.Office;
|
|
|
import com.jeeplus.modules.sys.entity.Role;
|
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
|
import com.jeeplus.modules.sys.service.DictService;
|
|
|
+import com.jeeplus.modules.sys.service.UserService;
|
|
|
import com.jeeplus.modules.sys.service.WorkattachmentService;
|
|
|
import com.jeeplus.modules.sys.utils.DictUtils;
|
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
@@ -97,6 +98,8 @@ public class ContractController extends BaseController {
|
|
|
private ProjectControlTableService projectControlTableService;
|
|
|
@Autowired
|
|
|
private ActTaskService actTaskService;
|
|
|
+ @Autowired
|
|
|
+ private UserService userService;
|
|
|
|
|
|
/*@ModelAttribute
|
|
|
public ConstructionContract get(@RequestParam(required=false) String id) {
|
|
@@ -562,6 +565,11 @@ public class ContractController extends BaseController {
|
|
|
/**获取项目的附件信息*/
|
|
|
follow.setWorkAttachments(projectImplementEarlyService.getWorkattachment(projectFollowReport));
|
|
|
follow.setProjectContentData(projectContentData);
|
|
|
+
|
|
|
+ //查询真实总审人员信息
|
|
|
+ List<User> auditUserList = userService.getAuditUserListByType("2");
|
|
|
+ follow.setBzshbUserList(auditUserList);
|
|
|
+
|
|
|
/**获取项目的附件信息*/
|
|
|
model.addAttribute("projectFollowReport", follow);
|
|
|
if("view".equals(projectFollowReport.getView())){
|
|
@@ -570,6 +578,10 @@ public class ContractController extends BaseController {
|
|
|
return "modules/projectrecord/workContentFromAndView/workFollowForm";
|
|
|
}
|
|
|
|
|
|
+ //查询真实总审人员信息
|
|
|
+ List<User> auditUserList = userService.getAuditUserListByType("2");
|
|
|
+ projectFollowReport.setBzshbUserList(auditUserList);
|
|
|
+
|
|
|
//查询是否含有上传或者引用的依据性文件信息
|
|
|
if(StringUtils.isNotBlank(id)){
|
|
|
List<ProjectControlTable> controlData = projectControlTableService.getControlData(id,"");
|
|
@@ -646,7 +658,11 @@ public class ContractController extends BaseController {
|
|
|
if ("modifyApply".equals(taskDefKey)) {
|
|
|
projectFollowReport.getAct().setComment("重新申请");
|
|
|
}
|
|
|
- List<User> users = UserUtils.getByProssType(projectFollowReport.getProcessInstanceId(),1);
|
|
|
+ //List<User> users = UserUtils.getByProssType(projectFollowReport.getProcessInstanceId(),1);
|
|
|
+ List<User> users = Lists.newArrayList();
|
|
|
+ //添加总审人员
|
|
|
+ User auditUser = UserUtils.get(projectFollowReport.getBzshbUserId());
|
|
|
+ users.add(auditUser);
|
|
|
String flag = projectFollowReport.getAct().getFlag();
|
|
|
if ("yes".equals(flag) && (users==null || users.size()==0)){
|
|
|
addMessage(redirectAttributes, "审批失败,审批人为空,请联系管理员!");
|
|
@@ -700,6 +716,9 @@ public class ContractController extends BaseController {
|
|
|
projectFollowReport.setAct(act);
|
|
|
}
|
|
|
|
|
|
+ //查询真实总审人员信息
|
|
|
+ List<User> auditUserList = userService.getAuditUserListByType("2");
|
|
|
+ projectFollowReport.setBzshbUserList(auditUserList);
|
|
|
model.addAttribute("projectFollowReport", projectFollowReport);
|
|
|
return "modules/projectrecord/workContentFromAndView/workFollowModify";
|
|
|
}
|
|
@@ -768,4 +787,4 @@ public class ContractController extends BaseController {
|
|
|
}
|
|
|
return j;
|
|
|
}
|
|
|
-}
|
|
|
+}
|