|
|
|
@ -45,6 +45,63 @@ public interface NegativeMapper extends BaseMapper<Negative> { |
|
|
|
"GROUP BY monthTime " + |
|
|
|
"GROUP BY monthTime " + |
|
|
|
"order BY monthTime asc") |
|
|
|
"order BY monthTime asc") |
|
|
|
List<RecentTrendByMonthVo> selectRecentTrendByMonth(String year); |
|
|
|
List<RecentTrendByMonthVo> selectRecentTrendByMonth(String year); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id=3" + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode in (13, 15, 16) " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoDc(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id=3" + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode=11 " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoAjhc(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode in (21, 22, 23, 24, 25) " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoXf(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode=2 " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoJwpy(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode=26 " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoSjdc(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
// endregion
|
|
|
|
// endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -92,20 +149,6 @@ public interface NegativeMapper extends BaseMapper<Negative> { |
|
|
|
Long selectRelationOrgCount(Date beginTime, Date endTime, String checkStatus); |
|
|
|
Long selectRelationOrgCount(Date beginTime, Date endTime, String checkStatus); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取现场督察按二级机构分组划分的问题数 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Select("SELECT COUNT(*) FROM negative n " + |
|
|
|
|
|
|
|
"INNER JOIN ( " + |
|
|
|
|
|
|
|
" SELECT DISTINCT sd.id " + |
|
|
|
|
|
|
|
" FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER JOIN sup_depart sd1 ON sd.pid = sd1.id " + |
|
|
|
|
|
|
|
" WHERE sd1.statistics_group_id = #{groupType}" + |
|
|
|
|
|
|
|
") AS filtered_sd ON n.involveDepartId = filtered_sd.id " + |
|
|
|
|
|
|
|
"WHERE n.checkStatus = 1 " + |
|
|
|
|
|
|
|
"AND n.problemSourcesCode = 15 " + |
|
|
|
|
|
|
|
"AND n.discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Long getCountByGroupType(Integer groupType, Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -120,68 +163,38 @@ public interface NegativeMapper extends BaseMapper<Negative> { |
|
|
|
" WHERE sd1.statistics_group_id = #{groupType}" + |
|
|
|
" WHERE sd1.statistics_group_id = #{groupType}" + |
|
|
|
") AS filtered_sd ON n.involveDepartId = filtered_sd.id " + |
|
|
|
") AS filtered_sd ON n.involveDepartId = filtered_sd.id " + |
|
|
|
"WHERE n.checkStatus = 1 " + |
|
|
|
"WHERE n.checkStatus = 1 " + |
|
|
|
"AND n.problemSourcesCode = 15 " + |
|
|
|
"AND n.problemSourcesCode = 13 " + |
|
|
|
"AND n.isRectifyCode=#{isRectify} " + |
|
|
|
"AND n.isRectifyCode=#{isRectify} " + |
|
|
|
"AND n.discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
"AND n.discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
Long getChangCountByGroupType(Integer groupType, Date beginTime, Date endTime, Integer isRectify); |
|
|
|
Long getChangCountByGroupType(Integer groupType, Date beginTime, Date endTime, Integer isRectify); |
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id=3" + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode in (13, 15, 16) " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoDc(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id=3" + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode=11 " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoAjhc(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode in (21, 22, 23, 24, 25) " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoXf(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
" (" + |
|
|
|
"(SELECT sd.id, sd.pid, sd.`name`, sd1.short_name FROM sup_depart sd INNER JOIN sup_depart sd1 " + |
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
"ON sd.pid = sd1.id AND sd1.`level`=2 AND sd1.statistics_group_id=3) as temp " + |
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
"ON ng.involveDepartId=temp.id " + |
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " + |
|
|
|
"AND pid=#{departId} " + |
|
|
|
" ) " + |
|
|
|
"AND problemSourcesCode= 13 " + |
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
"AND checkStatus <> 3 " + |
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode=2 " + |
|
|
|
"AND isRectifyCode =1 " + |
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
Integer seleGobalMapIconInfoJwpy(Date beginTime, Date endTime, Integer departId); |
|
|
|
Long getChangedCountByGroupType(Date beginTime, Date endTime, String departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
"(SELECT sd.id, sd.pid, sd.`name`, sd1.short_name FROM sup_depart sd INNER JOIN sup_depart sd1 " + |
|
|
|
|
|
|
|
"ON sd.pid = sd1.id AND sd1.`level`=2 AND sd1.statistics_group_id=3) as temp\n" + |
|
|
|
|
|
|
|
"ON ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND pid=#{departId} " + |
|
|
|
|
|
|
|
"AND problemSourcesCode= 13 " + |
|
|
|
|
|
|
|
"AND isRectifyCode =1 " + |
|
|
|
|
|
|
|
"AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Long getCountByGroupType(Date beginTime, Date endTime, String departId); |
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT count(*) FROM negative ng INNER JOIN " + |
|
|
|
|
|
|
|
" (" + |
|
|
|
|
|
|
|
" SELECT sd.id, sd.pid, sd.name, sd1.short_name FROM sup_depart sd " + |
|
|
|
|
|
|
|
" INNER join sup_depart sd1 on sd.pid=sd1.id " + |
|
|
|
|
|
|
|
" and sd1.LEVEL=2 AND sd1.statistics_group_id =3 " + |
|
|
|
|
|
|
|
" ) " + |
|
|
|
|
|
|
|
"as temp on ng.involveDepartId=temp.id " + |
|
|
|
|
|
|
|
"AND ng.checkStatus<>3 AND problemSourcesCode=26 " + |
|
|
|
|
|
|
|
"AND temp.pid=#{departId} AND discoveryTime BETWEEN #{beginTime} AND #{endTime}") |
|
|
|
|
|
|
|
Integer seleGobalMapIconInfoSjdc(Date beginTime, Date endTime, Integer departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("select id from negative where discovury_time between #{beginTime} and #{endTime}") |
|
|
|
|
|
|
|
List<Long> selectNegativeIdsByTime(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
// endregion
|
|
|
|
// endregion
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|