whycxzp
2023-03-27 097cad1f2ed48259959798f4f23be86c28a1041e
修复问题
2个文件已修改
4 ■■■■ 已修改文件
src/main/java/com/whyc/service/PwrdevAlarmService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/PwrdevAlarmMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/PwrdevAlarmService.java
@@ -299,7 +299,7 @@
            List<Map<String, Integer>> mapList = Arrays.asList(resultMap, map2);
            return new Response<>().setII(1, true, mapList, null);
        } catch (Exception e) {
            return new Response<>().set(0, false, "发生异常");
            return new Response<>().set(0, false, "发生异常:"+e.getCause());
        }
    }
src/main/resources/mapper/PwrdevAlarmMapper.xml
@@ -252,7 +252,7 @@
    </select>
    <select id="getAnalysis" resultType="com.whyc.pojo.PwrdevAlarm">
        select alm_type as alarmType,count(alm_type) as num
        select alm_type as almType,count(alm_type) as num
        from db_pwrdev_alarm.tb_pwrdev_alarm alarm,db_pwrdev_inf.tb_pwrdev_inf inf
        where alarm.PowerDeviceId = inf.PowerDeviceId
        and alm_type in