| | |
| | | private String cameraIp; |
| | | private Integer battGroupId; |
| | | private Integer stationId; |
| | | /**磁条起点,终点,格式为x1*y1,x2*y2*/ |
| | | private String mstPoints; |
| | | /* *//**磁条起点,终点,格式为x1*y1,x2*y2*//* |
| | | private String mstPoints;*/ |
| | | |
| | | } |
| | |
| | | public Response<PageInfo<BattStationTempAlarm>> getPage(int pageNum, int pageSize, Integer level) { |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | List<BattStationTempAlarm> list = mapper.getList(level); |
| | | //对这些告警进行计算在磁条哪边,并计算与磁条的垂直线的百分比 |
| | | /*//对这些告警进行计算在磁条哪边,并计算与磁条的垂直线的百分比 |
| | | list.forEach(alarm->{ |
| | | Integer battGroupId = alarm.getBattGroupId(); |
| | | //将maxTempPoint进行解析,得到x,y坐标,并放入Point对象中 TODO 这里暂定最大温度对应的点为1个坐标 |
| | |
| | | alarm.setPosition(position); |
| | | alarm.setPointPercentage(pointPercentage); |
| | | |
| | | }); |
| | | });*/ |
| | | PageInfo<BattStationTempAlarm> pageInfo = new PageInfo<>(list); |
| | | return new Response<PageInfo<BattStationTempAlarm>>().set(1,pageInfo); |
| | | } |