| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.BattAlarmMapper; |
| | | import com.whyc.pojo.db_alarm.BattAlarm; |
| | | import com.whyc.pojo.db_param.BattAlarmCfg; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.ThreadLocalUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired(required = false) |
| | | private BattAlarmMapper mapper; |
| | | |
| | | @Autowired |
| | | private BattAlarmCfgService cfgService; |
| | | |
| | | /* |
| | | 在用电池组实时推送告警信息 |
| | | **/ |
| | |
| | | public Response getPage(Integer almLevel, String startTime, String endTime ,int pageNum, int pageSize) { |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | List<BattAlarm> list=mapper.getList(almLevel, ThreadLocalUtil.parse(startTime,1),ThreadLocalUtil.parse(endTime,1)); |
| | | List<BattAlarmCfg> cfg = cfgService.getList(); |
| | | |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list!=null,pageInfo,"查询分页"); |
| | | } |