|
@@ -22,6 +22,7 @@ import com.jeeplus.modules.ruralprojectrecords.dao.RuralWorkProjectUserDao;
|
|
|
import com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecords;
|
|
|
import com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectReportData;
|
|
|
import com.jeeplus.modules.sys.dao.WorkattachmentDao;
|
|
|
+import com.jeeplus.modules.sys.entity.MainDictDetail;
|
|
|
import com.jeeplus.modules.sys.entity.Office;
|
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
|
import com.jeeplus.modules.sys.entity.Workattachment;
|
|
@@ -156,6 +157,15 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
}
|
|
|
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);
|
|
|
+ }
|
|
|
+
|
|
|
int count = dao.queryCount(projectRecords);
|
|
|
page.setCount(count);
|
|
|
page.setCountFlag(false);
|
|
@@ -169,6 +179,10 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
|
|
|
records.setProjectLeaders(users);
|
|
|
records.setLeaderNameStr(Collections3.extractToString(users, "name", ","));
|
|
|
records.setLeaderIds(Collections3.extractToString(users, "id", ","));
|
|
|
+ //判定 如果项目上报信息超期 并且没有上报则江状态改为超期未上报
|
|
|
+ if(records.getReportedType().equals("1") && !records.getReportedState().equals("5")){
|
|
|
+ records.setReportedState("6");
|
|
|
+ }
|
|
|
}
|
|
|
page.setList(recordsList);
|
|
|
return page;
|