Commit bf92a8fa by hzc

修改审核角色不对应和填报超时统计

parent f87d6dea
...@@ -143,12 +143,14 @@ public class TaskCtrl { ...@@ -143,12 +143,14 @@ public class TaskCtrl {
List<TaskStatusCountResult> countResults = taskService.countTask(param); List<TaskStatusCountResult> countResults = taskService.countTask(param);
if (CollectionUtils.isNotEmpty(countResults)) { if (CollectionUtils.isNotEmpty(countResults)) {
int count = 0; int count = 0;
int toEditCount = 0;
for (TaskStatusCountResult countResult : countResults) { for (TaskStatusCountResult countResult : countResults) {
if (countResult.getStatus() != null) { if (countResult.getStatus() != null) {
switch (countResult.getStatus()) { switch (countResult.getStatus()) {
case Constants.APPLY_STATE_DRAFT: case Constants.APPLY_STATE_ISSUE:
case Constants.APPLY_STATE_DRAFT :
count += countResult.getCount(); count += countResult.getCount();
result.setToEditCount(countResult.getCount()); toEditCount += countResult.getCount();
break; break;
case Constants.APPLY_STATE_AUDITING: case Constants.APPLY_STATE_AUDITING:
count += countResult.getCount(); count += countResult.getCount();
...@@ -164,6 +166,7 @@ public class TaskCtrl { ...@@ -164,6 +166,7 @@ public class TaskCtrl {
} }
} }
} }
result.setToEditCount(toEditCount);
result.setTotalCount(count); result.setTotalCount(count);
//获取填报超时审核超时数 //获取填报超时审核超时数
TaskAnalysisResult taskAnalysisResult = taskService.stateCounts(param); TaskAnalysisResult taskAnalysisResult = taskService.stateCounts(param);
......
...@@ -280,14 +280,25 @@ public class TaskServiceImpl implements TaskService { ...@@ -280,14 +280,25 @@ public class TaskServiceImpl implements TaskService {
Date now = new Date(); Date now = new Date();
Task task = taskMapper.getById(taskId); Task task = taskMapper.getById(taskId);
String ruleLevel = task.getRuleLevel(); String ruleLevel = task.getRuleLevel();
String orgNo = task.getOrgNo();
ConfigInfo configInfo = null; ConfigInfo configInfo = null;
if (Constants.PRIVINCE_TO_CITY.equals(ruleLevel)) { if(StringUtils.isNotBlank(orgNo)){
configInfo = configInfoService.getConfigInfoById(Constants.RULE_PROVINCE_AUDIT_ROLE); if(orgNo.length()==2){
} else if (Constants.PRIVINCE_TO_COUNTY.equals(ruleLevel)) { configInfo = configInfoService.getConfigInfoById(Constants.RULE_PROVINCE_AUDIT_ROLE);
configInfo = configInfoService.getConfigInfoById(Constants.RULE_CITY_AUDIT_ROLE); }else if(orgNo.length()==4){
} else if (Constants.CITY_TO_COUNTY.equals(ruleLevel)) { configInfo = configInfoService.getConfigInfoById(Constants.RULE_CITY_AUDIT_ROLE);
configInfo = configInfoService.getConfigInfoById(Constants.RULE_COUNTY_AUDIT_ROLE); }else if(orgNo.length()==6){
configInfo = configInfoService.getConfigInfoById(Constants.RULE_COUNTY_AUDIT_ROLE);
}
} }
// ConfigInfo configInfo = null;
// if (Constants.PRIVINCE_TO_CITY.equals(ruleLevel)) {
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_PROVINCE_AUDIT_ROLE);
// } else if (Constants.PRIVINCE_TO_COUNTY.equals(ruleLevel)) {
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_CITY_AUDIT_ROLE);
// } else if (Constants.CITY_TO_COUNTY.equals(ruleLevel)) {
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_COUNTY_AUDIT_ROLE);
// }
if (configInfo != null) { if (configInfo != null) {
String indDept = task.getRefIndDept(); String indDept = task.getRefIndDept();
List<RoleRefUserModel> users = getUserByRoleIdStr(configInfo.getCfValue()); List<RoleRefUserModel> users = getUserByRoleIdStr(configInfo.getCfValue());
......
...@@ -150,13 +150,13 @@ ...@@ -150,13 +150,13 @@
select count(id) from data_enter_task select count(id) from data_enter_task
<include refid="findTaskWhereSql"></include> <include refid="findTaskWhereSql"></include>
<if test="states != null and states != 0"> <if test="states != null and states != 0">
and status = #{states}
<choose> <choose>
<when test="states == 1"> <when test="states == 1">
and end_date &lt; curdate() and status in (1,5) and end_date &lt; curdate()
</when> </when>
<when test=" states == 2 "> <when test=" states == 2 ">
and audit_end_date &lt; curdate() and status =2 and audit_end_date &lt; curdate()
</when> </when>
</choose> </choose>
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment