|
|
|
|
@ -52,14 +52,15 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 中央总览
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (2,13,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30), 1, 0) ) AS totalPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (13,15,16), 1, 0) ) AS supervisionPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (17,18,19,20), 1, 0) ) AS caseVerificationPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (21,22,23,24,25),1, 0) ) AS complaintPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (2),1, 0) ) AS talkPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (27,28,29,30),1, 0) ) AS auditPro " + |
|
|
|
|
"FROM negative ng WHERE ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} ") |
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (2,13,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30), 1, 0)), 0) AS totalPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (13,15,16), 1, 0)), 0) AS supervisionPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (17,18,19,20), 1, 0)), 0) AS caseVerificationPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (21,22,23,24,25), 1, 0)), 0) AS complaintPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (2), 1, 0)), 0) AS talkPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (27,28,29,30), 1, 0)), 0) AS auditPro " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"WHERE ng.discoveryTime BETWEEN #{beginTime} AND #{endTime}; ") |
|
|
|
|
GlobalOverViewVo getAllGlobalCount(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -157,16 +158,16 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"WHERE discoveryTime BETWEEN #{beginTime} AND #{endTime} AND checkStatus IN ('1', '2') AND problemSourcesCode IN (13, 15)") |
|
|
|
|
RankVoSupTwo getTemp(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"COUNT( DISTINCT ng.id ) AS problemNumber, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.isRectifyCode=0, ng.id, NULL) ) AS rectifingNumber, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL) ) AS rectifedNumber, " + |
|
|
|
|
"COUNT( DISTINCT ng.involveDepartId ) AS departNumber, " + |
|
|
|
|
"COUNT( DISTINCT nb.blameIdCode ) AS personNumber, " + |
|
|
|
|
"ROUND( COUNT( DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL) )/COUNT( DISTINCT ng.id )*100, 1) AS rectifyRate " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"LEFT JOIN negative_blame nb ON ng.id=nb.negativeId " + |
|
|
|
|
"WHERE ng.problemSourcesCode IN (13, 15) " + |
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"COALESCE(COUNT(DISTINCT ng.id), 0) AS problemNumber, " + |
|
|
|
|
"COALESCE(COUNT(DISTINCT IF(ng.isRectifyCode=0, ng.id, NULL)), 0) AS rectifingNumber, " + |
|
|
|
|
"COALESCE(COUNT(DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL)), 0) AS rectifedNumber, " + |
|
|
|
|
"COALESCE(COUNT(DISTINCT ng.involveDepartId), 0) AS departNumber, " + |
|
|
|
|
"COALESCE(COUNT(DISTINCT nb.blameIdCode), 0) AS personNumber, " + |
|
|
|
|
"COALESCE(ROUND(COUNT(DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL)) / COUNT(DISTINCT ng.id) * 100, 1), 0) AS rectifyRate " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"LEFT JOIN negative_blame nb ON ng.id = nb.negativeId " + |
|
|
|
|
"WHERE ng.problemSourcesCode IN (13, 15) " + |
|
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime}; ") |
|
|
|
|
SupervisionNotifyOverView getAllSupervisionNotifyCount(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@ -260,21 +261,22 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"ORDER BY `value` DESC") |
|
|
|
|
List<OrganizeProblemRankVo> getVideoSuperviseProblemRank(Date beginTime, Date endTime, Integer groupId); |
|
|
|
|
|
|
|
|
|
@Select("SELECT sd1.short_name AS `name`, " + |
|
|
|
|
"sd1.id AS departId, " + |
|
|
|
|
"COUNT( DISTINCT ng.id ) AS discoverProblem, " + |
|
|
|
|
"COUNT(DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL)) AS changedProblem, " + |
|
|
|
|
"COUNT(DISTINCT ng.involveDepartId) AS relativeOrg, " + |
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"sd.short_name AS `name`, " + |
|
|
|
|
"sd.id AS departId, " + |
|
|
|
|
"COUNT( DISTINCT ng.id) AS discoverProblem, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL) ) AS changedProblem, " + |
|
|
|
|
"COUNT( DISTINCT ng.involveDepartId) AS relativeOrg, " + |
|
|
|
|
"COUNT( DISTINCT nb.blameName ) AS relativePer, " + |
|
|
|
|
"IFNULL( ROUND( ( COUNT(DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL)) / COUNT( DISTINCT ng.id ) ) * 100, 1 ), 0) AS changedRate " + |
|
|
|
|
"FROM sup_depart sd " + |
|
|
|
|
"INNER JOIN sup_depart sd1 on sd.pid=sd1.id AND sd1.statistics_group_id=3 " + |
|
|
|
|
"LEFT JOIN negative ng on sd.id=ng.involveDepartId " + |
|
|
|
|
"AND checkStatus <> 3 " + |
|
|
|
|
"AND problemSourcesCode=16 " + |
|
|
|
|
"IFNULL(ROUND( COUNT( DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL) )/COUNT( DISTINCT ng.id)*100, 1 ),0) AS changedRate " + |
|
|
|
|
"FROM sup_depart sd " + |
|
|
|
|
"LEFT JOIN negative ng ON sd.id=ng.second_involve_depart_id " + |
|
|
|
|
"AND checkStatus <>3 " + |
|
|
|
|
"AND problemSourcesCode =16 " + |
|
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"LEFT JOIN negative_blame nb ON ng.id = nb.negativeId " + |
|
|
|
|
"GROUP BY `name`;") |
|
|
|
|
"LEFT JOIN negative_blame nb ON ng.id=nb.negativeId " + |
|
|
|
|
"WHERE sd.statistics_group_id=3 " + |
|
|
|
|
"GROUP BY sd.short_name; ") |
|
|
|
|
List<VideoSuperviseMapIconVo> getVideoSuperviseMapIconInfo(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -400,12 +402,12 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
List<EchartsVo> selectSubOneBusinessRate(Integer departId, Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (2,13,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30), 1, 0) ) AS totalPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (13,15,16), 1, 0) ) AS supervisionPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (17,18,19,20), 1, 0) ) AS caseVerificationPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (21,22,23,24,25),1, 0) ) AS complaintPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (2),1, 0) ) AS talkPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (27,28,29,30),1, 0) ) AS auditPro " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (2, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30), 1, 0)), 0) AS totalPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (13, 15, 16), 1, 0)), 0) AS supervisionPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (17, 18, 19, 20), 1, 0)), 0) AS caseVerificationPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (21, 22, 23, 24, 25), 1, 0)), 0) AS complaintPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (2), 1, 0)), 0) AS talkPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (27, 28, 29, 30), 1, 0)), 0) AS auditPro " + |
|
|
|
|
"FROM negative ng WHERE ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.second_involve_depart_id=#{departId} ") |
|
|
|
|
GlobalOverViewVo getSuoOneAllGlobalCount(Integer departId, Date beginTime, Date endTime); |
|
|
|
|
@ -960,25 +962,24 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"ORDER BY `value` desc") |
|
|
|
|
List<EchartsVo> selectProblemRate(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"csd.`name` AS `name`, " + |
|
|
|
|
"csd.dept_name AS policeName, " + |
|
|
|
|
"csd.dept_pid, " + |
|
|
|
|
"csd.dept_id AS departId, " + |
|
|
|
|
"COUNT( DISTINCT ng.id ) AS discoverProblem, " + |
|
|
|
|
"COUNT(DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL)) AS changedProblem, " + |
|
|
|
|
"COUNT(DISTINCT ng.involveDepartId) AS relativeOrg, " + |
|
|
|
|
"COUNT( DISTINCT nb.blameName ) AS relativePer, " + |
|
|
|
|
"IFNULL( ROUND( ( COUNT(DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL)) / COUNT( DISTINCT ng.id ) ) * 100, 1 ), 0) AS changedRate " + |
|
|
|
|
"FROM county_street_dept csd " + |
|
|
|
|
"LEFT JOIN negative ng ON ng.three_involve_depart_id=csd.dept_id " + |
|
|
|
|
"LEFT JOIN negative_blame nb ON ng.id = nb.negativeId " + |
|
|
|
|
"AND ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.checkStatus IN (1,2) " + |
|
|
|
|
"AND ng.problemSourcesCode=16 " + |
|
|
|
|
"AND ng.second_involve_depart_id=#{departId} " + |
|
|
|
|
"GROUP BY csd.dept_name " + |
|
|
|
|
"HAVING csd.dept_pid=#{departId} ") |
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"csd.`name` AS `name`, " + |
|
|
|
|
"csd.dept_name AS policeName, " + |
|
|
|
|
"csd.dept_pid, " + |
|
|
|
|
"csd.dept_id AS departId, " + |
|
|
|
|
"COUNT( DISTINCT ng.id) AS discoverProblem, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL) ) AS changedProblem, " + |
|
|
|
|
"COUNT( DISTINCT ng.involveDepartId) AS relativeOrg, " + |
|
|
|
|
"COUNT( DISTINCT nb.blameName ) AS relativePer, " + |
|
|
|
|
"IFNULL(ROUND( COUNT( DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL) )/COUNT( DISTINCT ng.id)*100, 1 ),0) AS changedRate " + |
|
|
|
|
"FROM county_street_dept csd " + |
|
|
|
|
"LEFT JOIN negative ng ON csd.dept_id=ng.three_involve_depart_id " + |
|
|
|
|
"AND checkStatus <>3 " + |
|
|
|
|
"AND problemSourcesCode =16 " + |
|
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"LEFT JOIN negative_blame nb ON ng.id=nb.negativeId " + |
|
|
|
|
"GROUP BY csd.dept_name " + |
|
|
|
|
"HAVING csd.dept_pid=#{departId}; ") |
|
|
|
|
List<VideoSuperviseMapIconVo> getSubOneVideoSuperviseMapIconInfo(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|