| | |
| | | import com.moral.api.entity.MonitorPoint; |
| | | import com.moral.api.pojo.form.device.MonitorPointQueryForm; |
| | | import com.moral.api.pojo.vo.monitorPoint.MonitorPointsVO; |
| | | import com.moral.api.pojo.vo.monitorPoint.StateControllerStationVO; |
| | | import com.moral.api.service.HistoryFiveMinutelyService; |
| | | import com.moral.api.service.MonitorPointService; |
| | | import com.moral.api.service.OrganizationService; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.constant.ResultMessage; |
| | | import com.moral.util.WebUtils; |
| | |
| | | return new ResultMessage(ResponseCodeEnum.SUCCESS.getCode(), ResponseCodeEnum.SUCCESS.getMsg(), vo); |
| | | } |
| | | |
| | | /** |
| | | * @Description: 查询国控站接口 |
| | | * @Param: [regionCode] |
| | | * @return: com.moral.constant.ResultMessage |
| | | * @Author: 陈凯裕 |
| | | * @Date: 2021/9/9 |
| | | */ |
| | | @GetMapping("queryStateControlStation") |
| | | public ResultMessage queryStateControlStation(Integer regionCode) { |
| | | |
| | | List<MonitorPoint> monitorPoints = monitorPointService.queryStateControlStationByRegionCode(regionCode); |
| | | |
| | | //转换前端所需参数 |
| | | StateControllerStationVO vo = StateControllerStationVO.convert(monitorPoints); |
| | | |
| | | return new ResultMessage(ResponseCodeEnum.SUCCESS.getCode(), ResponseCodeEnum.SUCCESS.getMsg(), vo); |
| | | } |
| | | |
| | | /** |
| | | * @param request 请求信息 |