| | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.BattState; |
| | | import com.whyc.dto.BattMaintDealarm; |
| | | import com.whyc.dto.BattTestData; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.BattRtstateMapper; |
| | | import com.whyc.pojo.BattRtstate; |
| | |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | List<BattState> list = battRtstateMapper.searchBattLife(binf,userInf.getUId().intValue()); |
| | | for (BattState bs:list) { |
| | | Battinf battinf = bs.getBinf(); |
| | | battinf.setStationName9(BattTestData.battState(battinf.getNum())); |
| | | } |
| | | PageInfo<BattState> pageInfo = new PageInfo<>(list); |
| | | return new Response().set(1,pageInfo,"查询成功"); |
| | | // //分页信息 |
| | | // PageHelper.startPage(bmd.getPage().getPageCurr(), bmd.getPage().getPageSize()); |
| | | // List<BattState> list = battRtstateMapper.searchBattLife(bmd); |
| | | // PageInfo<BattState> pageInfo = new PageInfo<BattState>(list); |
| | | // if (list != null && list.size() > 0) { |
| | | //// System.out.println("list = " + list); |
| | | // return new Response<List<BattState>>().set(1, list, String.valueOf(pageInfo.getTotal())); |
| | | // } else { |
| | | // return new Response<List<BattState>>().set(0, null, String.valueOf(pageInfo.getTotal())); |
| | | // } |
| | | |
| | | } |
| | | //查询实时组端信息 |
| | | public Response serchByCondition(int battGroupId) { |