| | |
| | | //3.4设备告警历史记录查询 |
| | | public ServiceModel serchByCondition(Batt_Maint_Dealarm bmd) { |
| | | ServiceModel model = new ServiceModel(); |
| | | |
| | | PageBean pageBean = bmd.getPageBean(); |
| | | PageHelper.startPage(pageBean.getPageNum(),pageBean.getPageSize(),true); |
| | | List list=mapper.serchByCondition(bmd); |
| | | PageInfo<Batt_Maint_Dealarm> pageInfo = new PageInfo<>(list); |
| | | |
| | | model.setCode(1); |
| | | model.setData(pageInfo); |
| | | |
| | | PageHelper.startPage(pageBean.getPageNum(), pageBean.getPageSize(), true); |
| | | List<Batt_Maint_Dealarm> list = mapper.serchByCondition(bmd); |
| | | if (null != list && list.size() > 0) { |
| | | PageInfo<Batt_Maint_Dealarm> pageInfo = new PageInfo<>(list); |
| | | model.setCode(1); |
| | | model.setData(pageInfo); |
| | | } |
| | | return model; |
| | | } |
| | | } |