|
|
|
|
@ -80,13 +80,14 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"WHERE sd.statistics_group_id=3 " + |
|
|
|
|
"GROUP BY sd.short_name " + |
|
|
|
|
"ORDER BY totalPro DESC;") |
|
|
|
|
List<GlobalMapIconVo> getMapIcon(Date beginTime, Date endTime); |
|
|
|
|
List<GlobalMapIconVo> getGlobalMap(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
List<EchartsVo> getGlobalRecentlyTrendByMonth(String year); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 首页大屏突出问题排名 |
|
|
|
|
* |
|
|
|
|
* @param beginTime |
|
|
|
|
* @param endTime |
|
|
|
|
* @return |
|
|
|
|
@ -118,7 +119,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"WHERE problemSourcesCode IN (13) " + |
|
|
|
|
"AND sd.statistics_group_id=#{groupId} " + |
|
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime};") |
|
|
|
|
DayTimeSuperviseVo getSuperversionRank(Date beginTime, Date endTime, Integer groupId); |
|
|
|
|
DayTimeSuperviseVo getSupervisionRank(Date beginTime, Date endTime, Integer groupId); |
|
|
|
|
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"sd.short_name AS label, " + |
|
|
|
|
@ -133,7 +134,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"AND sd.statistics_group_id=#{groupId} " + |
|
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"GROUP BY sd.short_name " + |
|
|
|
|
"ORDER BY rate") |
|
|
|
|
"ORDER BY rate desc") |
|
|
|
|
List<RankVo> getChangedRateRank(Date beginTime, Date endTime, Integer groupId); |
|
|
|
|
|
|
|
|
|
@Select("SELECT npr.oneLevelContent as name, count(*) value FROM negative ng, negative_problem_relation npr " + |
|
|
|
|
@ -408,6 +409,24 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"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); |
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"csd.`name` AS `name`, " + |
|
|
|
|
"csd.dept_name AS policeName, " + |
|
|
|
|
"csd.dept_pid, " + |
|
|
|
|
"csd.dept_id AS departId, " + |
|
|
|
|
"COUNT( DISTINCT ng.id ) AS totalPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (13,15,16), 1, 0) ) AS supervisePro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (17,18,19,20), 1, 0) ) AS caseVerifyPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (21,22,23,24,25),1, 0) ) AS mailPro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (2),1, 0) ) AS policePro, " + |
|
|
|
|
"SUM( IF(problemSourcesCode IN (27,28,29,30),1, 0) ) AS reviewPro " + |
|
|
|
|
"FROM county_street_dept csd " + |
|
|
|
|
"LEFT JOIN negative ng ON ng.three_involve_depart_id=csd.dept_id " + |
|
|
|
|
"AND ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.second_involve_depart_id=#{departId} " + |
|
|
|
|
"GROUP BY csd.dept_name " + |
|
|
|
|
"HAVING csd.dept_pid=#{departId} ") |
|
|
|
|
List<GlobalMapIconVo> getSubOneGlobalMap(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
@ -487,7 +506,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"LEFT JOIN sup_depart sd ON ng.involveDepartId=sd.id " + |
|
|
|
|
"WHERE ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.problemSourcesCode IN (13,15,16)\n" + |
|
|
|
|
"AND ng.problemSourcesCode IN (13,15,16)" + |
|
|
|
|
"AND ng.second_involve_depart_id = #{departPId} " + |
|
|
|
|
"AND sd.statistics_group_id!=10 " + |
|
|
|
|
"GROUP BY ng.involveDepartName " + |
|
|
|
|
@ -513,7 +532,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"LEFT JOIN sup_depart sd ON ng.involveDepartId=sd.id " + |
|
|
|
|
"WHERE ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.problemSourcesCode IN (17,18,19,20)\n" + |
|
|
|
|
"AND ng.problemSourcesCode IN (17,18,19,20)" + |
|
|
|
|
"AND ng.second_involve_depart_id = #{departPId} " + |
|
|
|
|
"AND sd.statistics_group_id=10") |
|
|
|
|
SubOneOverViewVo getGlobalPoliceCaseVerifyOverView(Integer departPId, Date beginTime, Date endTime); |
|
|
|
|
@ -525,7 +544,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"LEFT JOIN sup_depart sd ON ng.involveDepartId=sd.id " + |
|
|
|
|
"WHERE ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.problemSourcesCode IN (17,18,19,20)\n" + |
|
|
|
|
"AND ng.problemSourcesCode IN (17,18,19,20)" + |
|
|
|
|
"AND ng.second_involve_depart_id = #{departPId} " + |
|
|
|
|
"AND sd.statistics_group_id!=10") |
|
|
|
|
SubOneOverViewVo getGlobalTeamCaseVerifyOverView(Integer departPId, Date beginTime, Date endTime); |
|
|
|
|
@ -824,7 +843,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"LEFT JOIN sup_depart sd ON ng.involveDepartId = sd.id " + |
|
|
|
|
"WHERE ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.problemSourcesCode IN (17, 18, 19, 20)\n" + |
|
|
|
|
"AND ng.problemSourcesCode IN (17, 18, 19, 20)" + |
|
|
|
|
"AND ng.second_involve_depart_id=#{departId} " + |
|
|
|
|
"AND sd.statistics_group_id=10 " + |
|
|
|
|
"GROUP BY ng.involveDepartName " + |
|
|
|
|
@ -837,7 +856,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"LEFT JOIN sup_depart sd ON ng.involveDepartId = sd.id " + |
|
|
|
|
"WHERE ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.problemSourcesCode IN (17, 18, 19, 20)\n" + |
|
|
|
|
"AND ng.problemSourcesCode IN (17, 18, 19, 20)" + |
|
|
|
|
"AND ng.second_involve_depart_id=#{departId} " + |
|
|
|
|
"AND sd.statistics_group_id!=10 " + |
|
|
|
|
"GROUP BY ng.involveDepartName " + |
|
|
|
|
@ -870,6 +889,28 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"AND ng.problemSourcesCode in (17, 18, 19, 20); ") |
|
|
|
|
CaseVerificationCountVo getSuboOneAllCaseVerificationCount(Date beginTime, Date endTime, Integer 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 total, " + |
|
|
|
|
"COUNT( DISTINCT IF( ng.checkStatus<>3, ng.id, NULL ) ) AS confirmed, " + |
|
|
|
|
"COUNT( DISTINCT IF( nb.handleResultCode!=14, nb.blameId, NULL ) ) AS dealCasePro, " + |
|
|
|
|
"COUNT( DISTINCT nb.blameIdCode ) AS punishPre, " + |
|
|
|
|
"COUNT( DISTINCT nb.blameDepartId ) AS punishOrg, " + |
|
|
|
|
"IFNULL( ROUND( COUNT( DISTINCT IF( ng.isRectifyCode=1, ng.id, NULL ) )/COUNT( DISTINCT ng.id )*100, 1 ), 0) AS rate " + |
|
|
|
|
"FROM county_street_dept csd " + |
|
|
|
|
"LEFT JOIN negative ng ON ng.three_involve_depart_id=csd.dept_id " + |
|
|
|
|
"AND ng.problemSourcesCode IN (17,18,19,20) " + |
|
|
|
|
"AND ng.discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.second_involve_depart_id=#{departId} " + |
|
|
|
|
"LEFT JOIN negative_blame nb ON ng.id=nb.negativeId " + |
|
|
|
|
"GROUP BY csd.dept_name " + |
|
|
|
|
"HAVING csd.dept_pid=#{departId} ") |
|
|
|
|
List<CaseVerificationMapVo> getSubOneCaseVerificationMap(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT sdps.label AS `name` , " + |
|
|
|
|
"COUNT( DISTINCT ng.id ) AS `value` " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
@ -903,6 +944,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 首页大屏问题类型占比 |
|
|
|
|
* |
|
|
|
|
* @param beginTime |
|
|
|
|
* @param endTime |
|
|
|
|
* @return |
|
|
|
|
@ -910,7 +952,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"npr.oneLevelContent as name, " + |
|
|
|
|
"count(*) `value` FROM negative_problem_relation npr " + |
|
|
|
|
"LEFT JOIN negative ng ON ng.id=npr.negativeId\n" + |
|
|
|
|
"LEFT JOIN negative ng ON ng.id=npr.negativeId " + |
|
|
|
|
"WHERE checkStatus in (1, 2) " + |
|
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND npr.oneLevelContent is not NULL " + |
|
|
|
|
@ -918,6 +960,51 @@ 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} ") |
|
|
|
|
List<VideoSuperviseMapIconVo> getSubOneVideoSuperviseMapIconInfo(Date beginTime, Date endTime, Integer 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 totalPro, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.problemSourcesCode=13, ng.id, NULL) ) AS xc, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.problemSourcesCode=15, ng.id, NULL) ) AS zx, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.isRectifyCode=0, ng.id, NULL) ) AS changing, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.isRectifyCode=1, ng.id, NULL) ) AS changed , " + |
|
|
|
|
"COUNT( DISTINCT ng.involveDepartId ) AS relationOrg, " + |
|
|
|
|
"COUNT( DISTINCT nb.blameIdCode ) AS personNum, " + |
|
|
|
|
"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 " + |
|
|
|
|
"AND ng.problemSourcesCode IN (13, 15) " + |
|
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"AND ng.second_involve_depart_id=#{departId} " + |
|
|
|
|
"LEFT JOIN negative_blame nb ON ng.id=nb.negativeId " + |
|
|
|
|
"GROUP BY csd.dept_name " + |
|
|
|
|
"HAVING csd.dept_pid=#{departId} ") |
|
|
|
|
List<SuperviseMapIconVo> getSubOneSupervisionMapIcon(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// endregion
|
|
|
|
|
|