|
@@ -4,6 +4,7 @@ import com.jeeplus.common.config.Global;
|
|
import com.jeeplus.common.persistence.Page;
|
|
import com.jeeplus.common.persistence.Page;
|
|
import com.jeeplus.common.service.CrudService;
|
|
import com.jeeplus.common.service.CrudService;
|
|
import com.jeeplus.common.utils.Collections3;
|
|
import com.jeeplus.common.utils.Collections3;
|
|
|
|
+import com.jeeplus.common.utils.MenuStatusEnum;
|
|
import com.jeeplus.modules.projectAccessory.dao.ProjectTemplateDao;
|
|
import com.jeeplus.modules.projectAccessory.dao.ProjectTemplateDao;
|
|
import com.jeeplus.modules.projectEngineering.service.ProjectEngineeringService;
|
|
import com.jeeplus.modules.projectEngineering.service.ProjectEngineeringService;
|
|
import com.jeeplus.modules.projectFilingBatch.dao.ProjectFilingBatchDao;
|
|
import com.jeeplus.modules.projectFilingBatch.dao.ProjectFilingBatchDao;
|
|
@@ -1105,7 +1106,49 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
}
|
|
}
|
|
return getSumMoney;
|
|
return getSumMoney;
|
|
}
|
|
}
|
|
|
|
+ public Page<RuralProjectRecords> findSignaturePage(Page<RuralProjectRecords> page, RuralProjectRecords projectRecords) {
|
|
|
|
+ //设置数据权限
|
|
|
|
+ if(!UserUtils.getUser().isAdmin()) {
|
|
|
|
+ String dataScopeSql = dataScopeFilterOR(projectRecords.getCurrentUser(), "o", "u", "s", MenuStatusEnum.OVERALL_WORK_RECORD_LIST.getValue());
|
|
|
|
+ projectRecords.getSqlMap().put("dsf", dataScopeSql);
|
|
|
|
+ }
|
|
|
|
+ //查询超期时间天数
|
|
|
|
+ List<MainDictDetail> adventCount = DictUtils.getMainDictListOnProjectAdvent("advent_count");
|
|
|
|
+ if(adventCount.size()>0){
|
|
|
|
+ //获取超期时间天数转int
|
|
|
|
+ Integer endingCount = Integer.parseInt(adventCount.get(0).getLabel());
|
|
|
|
+ projectRecords.setEndingCount(endingCount);
|
|
|
|
+ }
|
|
|
|
+ if(null!= projectRecords.getOffice() && StringUtils.isNotBlank(projectRecords.getOffice().getId())){
|
|
|
|
+ //查询该选择节点下所有的部门Id
|
|
|
|
+ List<String> officeIdList = officeService.getChildrenOffice(projectRecords.getOffice().getId());
|
|
|
|
+ officeIdList.add(projectRecords.getOffice().getId());
|
|
|
|
+ projectRecords.setOfficeIdList(officeIdList);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ int count = dao.queryCount(projectRecords);
|
|
|
|
+ page.setCount(count);
|
|
|
|
+ page.setCountFlag(false);
|
|
|
|
+ projectRecords.setPage(page);
|
|
|
|
+ List<RuralProjectRecords> recordsList = findList(projectRecords);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //查询负责人信息
|
|
|
|
+ for (RuralProjectRecords records : recordsList) {
|
|
|
|
+ if(null != records.getRecordState() && 0 == records.getProjectReportRecordStatus()){
|
|
|
|
+ records.setProjectReportRecordStatus(records.getRecordState());
|
|
|
|
+ }
|
|
|
|
+ this.queryContractInfos(records);
|
|
|
|
+ //获取项目负责人
|
|
|
|
+ List<User> users = workProjectUserDao.getProjectprincipalList(records.getId());
|
|
|
|
+ records.setProjectLeaders(users);
|
|
|
|
+ records.setLeaderNameStr(Collections3.extractToString(users, "name", ","));
|
|
|
|
+ records.setLeaderIds(Collections3.extractToString(users, "id", ","));
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ page.setList(recordsList);
|
|
|
|
+ return page;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|