|
|
|
@ -91,25 +91,41 @@ public interface DataPetitionComplaintMapper extends BaseMapper<DataPetitionComp |
|
|
|
List<OrganizeProblemRankVo> getMailRank(Date beginTime, Date endTime, Integer groupId, Integer isRepeat,List<String> codes); |
|
|
|
List<OrganizeProblemRankVo> getMailRank(Date beginTime, Date endTime, Integer groupId, Integer isRepeat,List<String> codes); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select( "<script>"+ |
|
|
|
// @Select( "<script>"+
|
|
|
|
|
|
|
|
// "SELECT " +
|
|
|
|
|
|
|
|
// "sd1.short_name AS label, " +
|
|
|
|
|
|
|
|
// "count(*) AS `value` FROM data_petition_complaint dpc " +
|
|
|
|
|
|
|
|
// "LEFT JOIN sup_depart sd on dpc.third_depart_id=sd.id " +
|
|
|
|
|
|
|
|
// "LEFT JOIN sup_depart sd1 ON sd.pid=sd1.id " +
|
|
|
|
|
|
|
|
// "WHERE dpc.receiving_leader_name is NOT NULL " +
|
|
|
|
|
|
|
|
// "AND sd1.statistics_group_id=#{groupId} " +
|
|
|
|
|
|
|
|
// "AND dpc.problem_sources_code in "+
|
|
|
|
|
|
|
|
// "<foreach collection='codes' item='item' open='(' separator=',' close=')'>"+
|
|
|
|
|
|
|
|
// "#{item}"+
|
|
|
|
|
|
|
|
// "</foreach>"+
|
|
|
|
|
|
|
|
// "AND dpc.create_time BETWEEN #{beginTime} AND #{endTime} " +
|
|
|
|
|
|
|
|
// "GROUP BY sd1.short_name " +
|
|
|
|
|
|
|
|
// "HAVING label is not NULL " +
|
|
|
|
|
|
|
|
// "ORDER BY `value` DESC"+
|
|
|
|
|
|
|
|
// "</script>"
|
|
|
|
|
|
|
|
// )
|
|
|
|
|
|
|
|
@Select("<script>"+ |
|
|
|
"SELECT " + |
|
|
|
"SELECT " + |
|
|
|
"sd1.short_name AS label, " + |
|
|
|
"sd.short_name AS label, " + |
|
|
|
"count(*) AS `value` FROM data_petition_complaint dpc " + |
|
|
|
"count(*) AS `value` FROM data_petition_complaint dpc " + |
|
|
|
"LEFT JOIN sup_depart sd on dpc.third_depart_id=sd.id " + |
|
|
|
"LEFT JOIN sup_depart sd on dpc.second_depart_id=sd.id " + |
|
|
|
"LEFT JOIN sup_depart sd1 ON sd.pid=sd1.id " + |
|
|
|
|
|
|
|
"WHERE dpc.receiving_leader_name is NOT NULL " + |
|
|
|
"WHERE dpc.receiving_leader_name is NOT NULL " + |
|
|
|
"AND sd1.statistics_group_id=#{groupId} " + |
|
|
|
"AND sd.statistics_group_id=#{groupId} " + |
|
|
|
"AND dpc.problem_sources_code in "+ |
|
|
|
"AND dpc.problem_sources_code in "+ |
|
|
|
"<foreach collection='codes' item='item' open='(' separator=',' close=')'>"+ |
|
|
|
"<foreach collection='codes' item='item' open='(' separator=',' close=')'>"+ |
|
|
|
"#{item}"+ |
|
|
|
"#{item}"+ |
|
|
|
"</foreach>"+ |
|
|
|
"</foreach>"+ |
|
|
|
"AND dpc.create_time BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
"AND dpc.create_time BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
"GROUP BY sd1.short_name " + |
|
|
|
"GROUP BY sd.short_name " + |
|
|
|
"HAVING label is not NULL " + |
|
|
|
"HAVING label is not NULL " + |
|
|
|
"ORDER BY `value` DESC"+ |
|
|
|
"ORDER BY `value` DESC"+ |
|
|
|
"</script>" |
|
|
|
"</script>" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
List<OrganizeProblemRankVo> getMailLeaderRank(Date beginTime, Date endTime, Integer groupId,List<String> codes); |
|
|
|
List<OrganizeProblemRankVo> getMailLeaderRank(Date beginTime, Date endTime, Integer groupId,List<String> codes); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|