| | |
| | | private SubTablePageInfoUtil util; |
| | | |
| | | //查询电源历史时间告警 |
| | | public Response getHisAlarm(int pinfId, String startTime, String endTime, int pageNum, int pageSize) throws ParseException { |
| | | public Response getHisPage(Integer almLevel, String startTime, String endTime, int pageNum, int pageSize) throws ParseException { |
| | | PowerAlarmHistory his=new PowerAlarmHistory(); |
| | | his.setPowerId(pinfId); |
| | | his.setAlmLevel(almLevel); |
| | | PageInfo pageInfo=util.getPageInfo(pageNum,pageSize, ThreadLocalUtil.parse(startTime,1),ThreadLocalUtil.parse(endTime,1) |
| | | ,"db_power_alarm","power_alarm_history",his); |
| | | return new Response().setII(1,pageInfo.getList()!=null,pageInfo,"查询电源历史时间告警"); |
| | | return new Response().setII(1,pageInfo.getList()!=null,pageInfo,"查询历史-分页"); |
| | | } |
| | | } |