| | |
| | | /** |
| | | * 水质数据查询 |
| | | * |
| | | * @return |
| | | * @returnlistWaterQualityData |
| | | */ |
| | | @GetMapping("/listWaterQualityData") |
| | | public ResponseVO<Object> listWaterQualityDataByKeyword(BaseConditionVO baseConditionVO, @RequestParam(required = false) String keyword) { |
| | | public ResponseVO<Object> listWaterQualityDataByKeyword(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword) { |
| | | if (!permissionConfig.check(MenuEnum.WATER_DATA_LIST.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | WaterQualityDataDto waterQualityDataDto = waterQualityDataService.getWaterQualityDataInfo(waterQualityEquipmentCode); |
| | | return ResponseUtil.success(waterQualityDataDto); |
| | | if(waterQualityDataDto != null){ |
| | | return ResponseUtil.success(waterQualityDataDto); |
| | | }else{ |
| | | return ResponseUtil.fail("水质设备号不正确或水质数据解析出错"); |
| | | } |
| | | } |
| | | |
| | | } |