|
|
|
@ -19,14 +19,12 @@ public interface NegativeProblemRelationMapper extends BaseMapper<NegativeProble |
|
|
|
"GROUP BY `name` ") |
|
|
|
"GROUP BY `name` ") |
|
|
|
List<EchartsVo> selectProblemRate(Date beginTime, Date endTime); |
|
|
|
List<EchartsVo> selectProblemRate(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT (@row_number := @row_number + 1) AS sort, sorted_results.label, sorted_results.value " + |
|
|
|
@Select("SELECT threeLevelContent as name, count(*) as `value` " + |
|
|
|
"FROM " + |
|
|
|
"FROM negative_problem_relation " + |
|
|
|
"(SELECT npr.threeLevelContent AS label, COUNT(*) AS value " + |
|
|
|
"WHERE negativeId " + |
|
|
|
"FROM negative_problem_relation npr " + |
|
|
|
"in ( SELECT id FROM negative WHERE discoveryTime BETWEEN #{beginTime} AND #{endTime}) " + |
|
|
|
"WHERE npr.threeLevelContent IS NOT NULL " + |
|
|
|
"GROUP BY threeLevelContent " + |
|
|
|
"GROUP BY label " + |
|
|
|
"ORDER BY VALUE DESC ") |
|
|
|
"ORDER BY value DESC) " + |
|
|
|
|
|
|
|
"AS sorted_results, (SELECT @row_number := 0) AS t;") |
|
|
|
|
|
|
|
List<StrongProblemRank> selectStrongProblemRank(Date beginTime, Date endTime); |
|
|
|
List<StrongProblemRank> selectStrongProblemRank(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT sd1.short_name, count(*) value " + |
|
|
|
@Select("SELECT sd1.short_name, count(*) value " + |
|
|
|
|