whycxzp
2025-03-24 82614438a300523cc13e22b6d175586a3ec8ed71
src/main/java/com/whyc/service/BattAlarmHisService.java
@@ -16,11 +16,11 @@
    private SubTablePageInfoUtil util;
    //查询电池组历史时间告警
    public Response getHisAlarm(int binfId, String startTime, String endTime,int pageNum,int pageSize)throws ParseException, InterruptedException  {
    public Response getHistoryPage(Integer almLevel, String startTime, String endTime,int pageNum,int pageSize)throws ParseException, InterruptedException  {
        BattAlarmHistory his=new BattAlarmHistory();
        his.setBinfId(binfId);
        his.setAlmLevel(almLevel);
        PageInfo pageInfo=util.getPageInfo(pageNum,pageSize, ThreadLocalUtil.parse(startTime,1),ThreadLocalUtil.parse(endTime,1)
        ,"db_alarm","batt_alarm_history",his);
        return new Response().setII(1,pageInfo.getList()!=null,pageInfo,"查询电池组历史时间告警");
        return new Response().setII(1,pageInfo.getList()!=null,pageInfo,"查询电池告警历史-分页");
    }
}