| | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.paramter.DevAlarmPar; |
| | | import com.whyc.mapper.BattDevAlarmDataMapper; |
| | | import com.whyc.mapper.DevalarmDataMapper; |
| | | import com.whyc.pojo.DevalarmData; |
| | | import com.whyc.pojo.UserInf; |
| | |
| | | |
| | | @Resource |
| | | private DevalarmDataMapper mapper; |
| | | |
| | | @Resource |
| | | private BattDevAlarmDataMapper battDevAlarmDataMapper; |
| | | //设备告警实时查询 |
| | | public Response serchByInfo(DevAlarmPar par) { |
| | | PageHelper.startPage(par.getPage().getPageCurr(),par.getPage().getPageSize()); |
| | |
| | | } |
| | | return new Response().setII(1, list.size() > 0, list, "分级告警数"); |
| | | } |
| | | |
| | | public int getAlarmNum(int userId) { |
| | | return battDevAlarmDataMapper.searchNums(userId); |
| | | } |
| | | } |