Browse Source

考情监控-预警类型分布修改

wangliang 4 years ago
parent
commit
3482022976

+ 0 - 5
themis-business/src/main/java/com/qmth/themis/business/service/impl/TIeReportServiceImpl.java

@@ -462,11 +462,6 @@ public class TIeReportServiceImpl implements TIeReportService {
         ExaminationMonitorWarnDistributionBean ret = new ExaminationMonitorWarnDistributionBean();
         ret.setOrgDistribution(tOeExamRecordMapper.getOrgDistribution(orgId));
         List<Map<String, Object>> typeList = tOeExamRecordMapper.getTypeDistribution(orgId);
-        if (typeList != null && typeList.size() > 0) {
-            for (Map<String, Object> map : typeList) {
-                map.put("type", VerifyExceptionEnum.valueOf((String) map.get("type")).getCode());
-            }
-        }
         ret.setTypeDistribution(typeList);
         return ret;
     }

+ 2 - 2
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -811,7 +811,7 @@
     </select>
     <select id="getTypeDistribution" resultType="java.util.Map">
         SELECT
-        w.type type,
+        substring(w.info,instr(w.info,"【"),instr(w.info,"】")) as type,
         count(DISTINCT(w.id)) count
         FROM
         t_oe_exam_record f
@@ -826,7 +826,7 @@
         AND w.id IS NOT NULL
         AND w.type!='NONE'
         GROUP BY
-        w.type
+        w.info
     </select>
     <select id="getWarnTrend" resultType="com.qmth.themis.business.bean.backend.ExaminationMonitorHourWarnCountBean">
         SELECT