Browse Source

fiex:优化

master
pengwei 1 month ago
parent
commit
88247ca5e9
  1. 2
      src/main/java/com/biutag/supervision/job/Job.java
  2. 12
      src/main/java/com/biutag/supervision/mapper/NegativeMapper.java

2
src/main/java/com/biutag/supervision/job/Job.java

@ -123,7 +123,7 @@ public class Job {
// 每天一次 23:30:00 // 每天一次 23:30:00
//todo 维权信息 //todo 维权信息
@Scheduled(cron = "0 30 23 * * ?") // @Scheduled(cron = "0 30 23 * * ?")
public void rights() throws ParseException { public void rights() throws ParseException {
log.info("rights--------------------"); log.info("rights--------------------");
log.info("维权信息抓取中---------------------"); log.info("维权信息抓取中---------------------");

12
src/main/java/com/biutag/supervision/mapper/NegativeMapper.java

@ -214,7 +214,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
"AND sd.statistics_group_id=#{groupId} " + "AND sd.statistics_group_id=#{groupId} " +
"AND crtTime BETWEEN #{beginTime} AND #{endTime} " + "AND crtTime BETWEEN #{beginTime} AND #{endTime} " +
" GROUP BY sd.short_name " + " GROUP BY sd.short_name " +
" ORDER BY denominator desc ") " ORDER BY value desc ")
List<AuditNegativeVo> getAuditNegativeVo(Date beginTime, Date endTime,String groupId); List<AuditNegativeVo> getAuditNegativeVo(Date beginTime, Date endTime,String groupId);
@Select("SELECT " + @Select("SELECT " +
@ -249,7 +249,7 @@ public interface NegativeMapper extends BaseMapper<Negative> {
"LEFT JOIN negative_blame nb ON ng.id=nb.negativeId " + "LEFT JOIN negative_blame nb ON ng.id=nb.negativeId " +
"WHERE sd.statistics_group_id=3 " + "WHERE sd.statistics_group_id=3 " +
"GROUP BY sd.short_name " + "GROUP BY sd.short_name " +
"ORDER BY completedRate DESC;") "ORDER BY completedRate DESC")
List<SuperviseMapIconVo> getSupervisionMapIconInfo(Date beginTime, Date endTime); List<SuperviseMapIconVo> getSupervisionMapIconInfo(Date beginTime, Date endTime);
@ -678,12 +678,10 @@ public interface NegativeMapper extends BaseMapper<Negative> {
"COUNT(DISTINCT IF(ng.checkStatus IN ('1','2'), ng.id, NULL)) AS discoverProblem, " + "COUNT(DISTINCT IF(ng.checkStatus IN ('1','2'), ng.id, NULL)) AS discoverProblem, " +
"COUNT(DISTINCT IF(ng.processing_status='completed', ng.id, NULL)) AS completionProblem, " + "COUNT(DISTINCT IF(ng.processing_status='completed', ng.id, NULL)) AS completionProblem, " +
"COUNT(IF(nb.type ='department' and ng.checkStatus IN ('1','2') and nb.handleResultName != '不予追责' and nb.handleResultCode is not null and nb.handleResultCode != '', nb.blameId, NULL)) AS relativeOrg, " + "COUNT(IF(nb.type ='department' and ng.checkStatus IN ('1','2') and nb.handleResultName != '不予追责' and nb.handleResultCode is not null and nb.handleResultCode != '', nb.blameId, NULL)) AS relativeOrg, " +
"COUNT(IF(nb.type ='personal' and ng.checkStatus IN ('1','2') and nb.handleResultName != '不予追责' and nb.handleResultCode is not null and nb.handleResultCode != '', nb.blameId, NULL)) AS relativePer, " + "COUNT(IF(nb.type ='personal' and ng.checkStatus IN ('1','2') and nb.handleResultName != '不予追责' and nb.handleResultCode is not null and nb.handleResultCode != '', nb.blameId, NULL)) AS relativePer " +
"IFNULL( ROUND((COUNT(DISTINCT IF(ng.processing_status='completed', ng.id, NULL)) / COUNT(DISTINCT ng.id)) * 100, 1), 0) AS completionRate " + "FROM negative ng " +
"FROM sup_depart sd " +
"INNER JOIN negative ng ON sd.id = ng.involveDepartId and sd.pid = #{departId} " +
"LEFT JOIN negative_blame nb ON ng.id = nb.negativeId " + "LEFT JOIN negative_blame nb ON ng.id = nb.negativeId " +
"WHERE problemSourcesCode = 16 " + "WHERE problemSourcesCode = 16 and ng.second_involve_depart_id = #{departId} " +
"AND ng.crtTime BETWEEN #{beginTime} AND #{endTime} ") "AND ng.crtTime BETWEEN #{beginTime} AND #{endTime} ")
VideoSuperviseCountVo getSubOneAllVideoSuperviseCount(Date beginTime, Date endTime, Integer departId); VideoSuperviseCountVo getSubOneAllVideoSuperviseCount(Date beginTime, Date endTime, Integer departId);

Loading…
Cancel
Save