|
|
|
|
@ -13,77 +13,41 @@ import java.util.List;
|
|
|
|
|
public interface NegativeProblemRelationMapper extends BaseMapper<NegativeProblemRelation> { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT npr.oneLevelContent as name, count(*) value " + |
|
|
|
|
"FROM negative_problem_relation npr " + |
|
|
|
|
"WHERE npr.oneLevelContent is not NULL " + |
|
|
|
|
"GROUP BY `name` ") |
|
|
|
|
/** |
|
|
|
|
* 首页大屏问题类型占比 |
|
|
|
|
* @param beginTime |
|
|
|
|
* @param endTime |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Select("SELECT npr.oneLevelContent, count(*) `value` FROM negative_problem_relation npr INNER JOIN " + |
|
|
|
|
" ( " + |
|
|
|
|
" SELECT id FROM negative ng " + |
|
|
|
|
" WHERE checkStatus <>3 " + |
|
|
|
|
" AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
" ) as temp " + |
|
|
|
|
"on npr.negativeId=temp.id " + |
|
|
|
|
"AND npr.oneLevelContent is not NULL " + |
|
|
|
|
"GROUP BY npr.oneLevelContent " + |
|
|
|
|
"ORDER BY `value` desc") |
|
|
|
|
List<EchartsVo> selectProblemRate(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT threeLevelContent as label, count(*) as `value` " + |
|
|
|
|
"FROM negative_problem_relation " + |
|
|
|
|
"WHERE negativeId " + |
|
|
|
|
"in ( SELECT id FROM negative WHERE discoveryTime BETWEEN #{beginTime} AND #{endTime}) " + |
|
|
|
|
"GROUP BY threeLevelContent " + |
|
|
|
|
"ORDER BY VALUE DESC ") |
|
|
|
|
/** |
|
|
|
|
* 首页大屏突出问题排名 |
|
|
|
|
* @param beginTime |
|
|
|
|
* @param endTime |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Select("SELECT npr.threeLevelContent as labe, count(*) `value` FROM negative_problem_relation npr INNER JOIN " + |
|
|
|
|
" ( " + |
|
|
|
|
" SELECT id FROM negative ng " + |
|
|
|
|
" WHERE checkStatus <>3 " + |
|
|
|
|
" AND discoveryTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
" ) as temp " + |
|
|
|
|
"on npr.negativeId=temp.id " + |
|
|
|
|
"AND npr.threeLevelContent is not NULL " + |
|
|
|
|
"GROUP BY npr.threeLevelContent " + |
|
|
|
|
"ORDER BY `value` desc") |
|
|
|
|
List<StrongProblemRank> selectStrongProblemRank(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT sd1.short_name, count(*) value " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"INNER JOIN sup_depart sd " + |
|
|
|
|
"on ng.involveDepartId=sd.id AND sd.`level`=3 " + |
|
|
|
|
"AND checkStatus=1 AND problemSourcesCode in(13, 14, 15, 16) " + |
|
|
|
|
"AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" + |
|
|
|
|
"INNER JOIN sup_depart sd1 " + |
|
|
|
|
"on sd.pid=sd1.id and sd1.statistics_group_id=3\n" + |
|
|
|
|
"GROUP BY sd1.id " + |
|
|
|
|
"ORDER BY `value` DESC;") |
|
|
|
|
List<CommonVo> selectSuperviseProTotal(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT sd1.short_name, count(*) value " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"INNER JOIN sup_depart sd " + |
|
|
|
|
"on ng.involveDepartId=sd.id AND sd.`level`=3 " + |
|
|
|
|
"AND checkStatus=1 AND problemSourcesCode in(17, 18, 19, 20) " + |
|
|
|
|
"AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" + |
|
|
|
|
"INNER JOIN sup_depart sd1 " + |
|
|
|
|
"on sd.pid=sd1.id and sd1.statistics_group_id=3\n" + |
|
|
|
|
"GROUP BY sd1.id " + |
|
|
|
|
"ORDER BY `value` DESC;") |
|
|
|
|
List<CommonVo> selectCaseVerifyProTotal(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT sd1.short_name, count(*) value " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"INNER JOIN sup_depart sd " + |
|
|
|
|
"on ng.involveDepartId=sd.id AND sd.`level`=3 " + |
|
|
|
|
"AND checkStatus=1 AND problemSourcesCode in(21, 22, 23, 24, 25) " + |
|
|
|
|
"AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" + |
|
|
|
|
"INNER JOIN sup_depart sd1 " + |
|
|
|
|
"on sd.pid=sd1.id and sd1.statistics_group_id=3\n" + |
|
|
|
|
"GROUP BY sd1.id " + |
|
|
|
|
"ORDER BY `value` DESC;") |
|
|
|
|
List<CommonVo> selectMailProTotal(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT sd1.short_name, count(*) value " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"INNER JOIN sup_depart sd " + |
|
|
|
|
"on ng.involveDepartId=sd.id AND sd.`level`=3 " + |
|
|
|
|
"AND checkStatus=1 AND problemSourcesCode in(2) " + |
|
|
|
|
"AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" + |
|
|
|
|
"INNER JOIN sup_depart sd1 " + |
|
|
|
|
"on sd.pid=sd1.id and sd1.statistics_group_id=3\n" + |
|
|
|
|
"GROUP BY sd1.id " + |
|
|
|
|
"ORDER BY `value` DESC;") |
|
|
|
|
List<CommonVo> selectPoliceProTotal(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
@Select("SELECT sd1.short_name, count(*) value " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"INNER JOIN sup_depart sd " + |
|
|
|
|
"on ng.involveDepartId=sd.id AND sd.`level`=3 " + |
|
|
|
|
"AND checkStatus=1 AND problemSourcesCode in(26) " + |
|
|
|
|
"AND ng.discoveryTime BETWEEN #{beginTime} and #{endTime}" + |
|
|
|
|
"INNER JOIN sup_depart sd1 " + |
|
|
|
|
"on sd.pid=sd1.id and sd1.statistics_group_id=3\n" + |
|
|
|
|
"GROUP BY sd1.id " + |
|
|
|
|
"ORDER BY `value` DESC;") |
|
|
|
|
List<CommonVo> selectReviewProTotal(Date beginTime, Date endTime); |
|
|
|
|
} |