| | |
| | | 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()); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | </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 |