|
@@ -73,6 +73,7 @@ public class TaIssueServiceImpl extends BaseServiceImpl<TaIssueMapper, TaIssue>
|
73
|
73
|
// 督察员
|
74
|
74
|
if (Constants.DUTY_INSPECTOR.equals(duty)) {
|
75
|
75
|
Map<String, Object> res = baseMapper.statMaIndex(user.getUserId());
|
|
76
|
+ if (null == res) res = new HashMap<>();
|
76
|
77
|
result.add(new StatVo().setName("已上报").setValue(getStatValueBy(res.get("published_num"), 0)));
|
77
|
78
|
result.add(new StatVo().setName("已交办").setValue(getStatValueBy(res.get("assigned_num"), 0)));
|
78
|
79
|
result.add(new StatVo().setName("未交办").setValue(getStatValueBy(res.get("unassigned_num"), 0)));
|
|
@@ -89,6 +90,7 @@ public class TaIssueServiceImpl extends BaseServiceImpl<TaIssueMapper, TaIssue>
|
89
|
90
|
// 单位人员 或者 单位管理员
|
90
|
91
|
else if (Constants.DUTY_ORG_USER.equals(duty) || Constants.DUTY_ORG_MANAGER.equals(duty)) {
|
91
|
92
|
Map<String, Object> res = taOrgIssueMapper.statMaIndex(user.getOrgId());
|
|
93
|
+ if (null == res) res = new HashMap<>();
|
92
|
94
|
result.add(new StatVo().setName("处理中").setValue(getStatValueBy(res.get("doing_num"), 0)));
|
93
|
95
|
result.add(new StatVo().setName("已办结").setValue(getStatValueBy(res.get("end_num"), 0)));
|
94
|
96
|
result.add(new StatVo().setName("已逾期").setValue(getStatValueBy(res.get("delay_num"), 0)));
|
|
@@ -97,6 +99,7 @@ public class TaIssueServiceImpl extends BaseServiceImpl<TaIssueMapper, TaIssue>
|
97
|
99
|
// 查询人员
|
98
|
100
|
else if (Constants.DUTY_QUERY_PERSON.equals(duty)) {
|
99
|
101
|
Map<String, Object> res = baseMapper.statMaIndex(null);
|
|
102
|
+ if (null == res) res = new HashMap<>();
|
100
|
103
|
result.add(new StatVo().setName("未处理").setValue(getStatValueBy(res.get("unassigned_num"), 0)));
|
101
|
104
|
result.add(new StatVo().setName("处理中").setValue(getStatValueBy(res.get("assigned_num"), 0)));
|
102
|
105
|
result.add(new StatVo().setName("已办结").setValue(getStatValueBy(res.get("end_num"), 0)));
|
|
@@ -106,9 +109,7 @@ public class TaIssueServiceImpl extends BaseServiceImpl<TaIssueMapper, TaIssue>
|
106
|
109
|
else {
|
107
|
110
|
// Map<String, Object> res = taFeedbackMapper.statMaIndex(person.getPersonId());
|
108
|
111
|
Map<String, Object> res = taFeedbackMapper.statMaIndex(user.getUserId());
|
109
|
|
- if (null == res) {
|
110
|
|
- res = new HashMap<>();
|
111
|
|
- }
|
|
112
|
+ if (null == res) res = new HashMap<>();
|
112
|
113
|
result.add(new StatVo().setName("未处理").setValue(getStatValueBy(res.get("unassigned_num"), 0)));
|
113
|
114
|
result.add(new StatVo().setName("已处理").setValue(getStatValueBy(res.get("assigned_num"), 0) + getStatValueBy(res.get("end_num"), 0)));
|
114
|
115
|
result.add(new StatVo().setName("已打回").setValue(getStatValueBy(res.get("reject_num"), 0)));
|