|
@@ -132,59 +132,6 @@ public class StatementCompanyComprehensiveController extends BaseController {
|
|
|
//获取项目信息
|
|
|
Page<RuralProjectRecords> page = projectRecordsService.findReportPage(new Page<RuralProjectRecords>(request, response), projectRecords,officeId,grade,bigDateType,smallDateType,recordState,reportedState);
|
|
|
|
|
|
- //查询所有和当前登陆人有关的项目的审核
|
|
|
- WorkProjectNotify workProjectNotify = new WorkProjectNotify();
|
|
|
- workProjectNotify.setUser(UserUtils.getUser());
|
|
|
- workProjectNotify.setCompanyId(UserUtils.getSelectCompany().getId());
|
|
|
- workProjectNotify.setRemarks("待审批");
|
|
|
- //添加项目对应编号
|
|
|
- workProjectNotify.setType("39");
|
|
|
- //查询所有需要当前登录人进行处理的项目信息
|
|
|
- List<WorkProjectNotify> notifyList = workProjectNotifyService.findList(workProjectNotify);
|
|
|
-
|
|
|
- //无合同状态下,获取委托方的名称
|
|
|
- List<RuralProjectRecords> list = page.getList();
|
|
|
- for (int i = 0; i < list.size(); i++) {
|
|
|
- RuralProjectRecords records1 = list.get(i);
|
|
|
- if (records1.getWorkContractInfo() == null) {
|
|
|
- projectRecordsService.queryLinkmanInfos(records1);
|
|
|
- if (records1.getWorkClientLinkmanList() != null && records1.getWorkClientLinkmanList().size() > 0) {
|
|
|
- WorkClientLinkman linkman = records1.getWorkClientLinkmanList().get(0);
|
|
|
- WorkContractInfo contractInfo = new WorkContractInfo();
|
|
|
- contractInfo.setClient(linkman.getClientId());
|
|
|
- records1.setWorkContractInfo(contractInfo);
|
|
|
- }
|
|
|
- }
|
|
|
- //获取项目报告号
|
|
|
- if(records1.getReportData()==null){
|
|
|
- ruralProjectMessageService.queryReportData(records1);
|
|
|
- if (records1.getProjectReportData() != null && records1.getProjectReportData().size() > 0) {
|
|
|
- ProjectReportData reportData = records1.getProjectReportData().get(0);
|
|
|
- ProjectReportData projectReportData = new ProjectReportData();
|
|
|
- projectReportData.setNumber(reportData.getNumber());
|
|
|
-// records1.setReportData(projectReportData);
|
|
|
- records1.setProjectReportNumber(reportData.getNumber());
|
|
|
- }
|
|
|
- }
|
|
|
- //判断是否为admin
|
|
|
- if (UserUtils.isManager()){
|
|
|
- records1.setFlagAdmin("1");
|
|
|
- }else{
|
|
|
- records1.setFlagAdmin("0");
|
|
|
- }
|
|
|
-
|
|
|
- //处理需要审批的项目信息
|
|
|
- records1.setNotifyFlag(null);
|
|
|
- for (WorkProjectNotify notify: notifyList) {
|
|
|
- if(notify.getNotifyId().equals(records1.getId())){
|
|
|
- records1.setNotifyId(notify.getId());
|
|
|
- if("待审批".equals(notify.getRemarks()) && !"1".equals(notify.getStatus())){
|
|
|
- records1.setNotifyFlag(1);
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
//查询工程类型
|
|
|
if (projectRecords.getEngineeringType()!=null){
|
|
|
ProjectEngineeringInfo engineeringInfo=engineeringService.get(projectRecords.getEngineeringType());
|