| | |
| | | * @Description |
| | | */ |
| | | @Slf4j |
| | | @Tag(name = "取水口日取水量漏损查询", description = "取水口日取水量漏损查询") |
| | | @Tag(name = "取水口日取水量漏损量查询", description = "取水口日取水量漏损量查询") |
| | | @RestController |
| | | @RequestMapping(path = "intakeAmountDay") |
| | | public class IntakeAmountDayCtrl { |
| | |
| | | private IntakeAmountDaySv intakeAmountDaySv; |
| | | |
| | | /** |
| | | * 根据指定条件获取取水口日取水量漏损列表(历史) |
| | | * 根据指定条件获取取水口日取水量漏损量列表(历史) |
| | | * |
| | | * @param vo 查询条件 |
| | | * @return 符合条件的取水口日取水量漏损列表(历史) |
| | | * @return 符合条件的取水口日取水量漏损量列表(历史) |
| | | */ |
| | | @Operation(summary = "获得一页取水口日取水量漏损记录", description = "返回一页取水口日取水量漏损数据") |
| | | @Operation(summary = "获得一页取水口日取水量漏损量记录", description = "返回一页取水口日取水量漏损量数据") |
| | | @ApiResponses(value = { |
| | | @ApiResponse( |
| | | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, |
| | |
| | | QueryResultVo<List<VoIntakeAmountDay>> res = intakeAmountDaySv.getIntakeAmountDayHistory(vo); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("获取农户日用水量统计记录异常", e); |
| | | log.error("获取取水口日取水量漏损量记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据指定条件获取取水口日取水量漏损列表(最新) |
| | | * 根据指定条件获取取水口日取水量漏损量列表(最新) |
| | | * |
| | | * @param vo 查询条件 |
| | | * @return 符合条件的取水口日取水量漏损列表(最新) |
| | | * @return 符合条件的取水口日取水量漏损量列表(最新) |
| | | */ |
| | | @Operation(summary = "获得一页取水口日取水量漏损记录", description = "返回一页取水口日取水量漏损数据") |
| | | @Operation(summary = "获得一页取水口日取水量漏损量记录", description = "返回一页取水口日取水量漏损量数据") |
| | | @ApiResponses(value = { |
| | | @ApiResponse( |
| | | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, |
| | | description = "返回一页取水口日取水量漏损数据(BaseResponse.content:QueryResultVo[{}])", |
| | | description = "返回一页取水口日取水量漏损量数据(BaseResponse.content:QueryResultVo[{}])", |
| | | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, |
| | | schema = @Schema(implementation = VoActiveCard.class))} |
| | | ) |
| | |
| | | QueryResultVo<List<VoIntakeAmountDay>> res = intakeAmountDaySv.getIntakeAmountDayLast(vo); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("获取农户日用水量统计记录异常", e); |
| | | log.error("获取取水口日取水量漏损量记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |