From a15a8cfd7b01ce4bba6fe9fd876f6704ca23a12d Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期二, 07 一月 2025 16:40:32 +0800 Subject: [PATCH] 1、取水口用水日统计表中增加金额、次数字段; 2、优化或重写“累计流量超过指定值的取水口”、“累计流量低于指定值的取水口”、“指定时间段内用水量超过指定值的取水口”、“指定时间段内消费金额超过指定值的取水口”几个统计查询; 3、改“指定时间段内用水时长超过指定值的取水口”为“指定时间段内用水次数超过指定值的取水口” --- pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java | 42 +++++++++++++++++++++++++++++++++++++----- 1 files changed, 37 insertions(+), 5 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java index bbc02b7..9353712 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java @@ -19,11 +19,21 @@ @RequestMapping(path = "stSome") public class StSomeCtrl { - private StClientAmountSv stSomeClientAmountSv; + private StClientAmountDaySv stClientAmountDaySv; + private StClientAmountMonthSv stClientAmountMonthSv; + private StClientAmountYearSv stClientAmountYearSv; @Autowired - private void setSv(StClientAmountSv sv) { - this.stSomeClientAmountSv = sv; + private void setSv(StClientAmountDaySv sv) { + this.stClientAmountDaySv = sv; + } + @Autowired + private void setSv(StClientAmountMonthSv sv) { + this.stClientAmountMonthSv = sv; + } + @Autowired + private void setSv(StClientAmountYearSv sv) { + this.stClientAmountYearSv = sv; } /////////////////////////////////////////// @@ -38,8 +48,30 @@ @GetMapping(path = "transSaveClientAmountDay") @SsoAop() public BaseResponse<Boolean> transSaveClientAmountDay() throws Exception{ - this.stSomeClientAmountSv.deleteAllStClientAmountDay(); - this.stSomeClientAmountSv.transSaveClientAmountDay(); + this.stClientAmountDaySv.deleteAllStClientAmountDay(); + this.stClientAmountDaySv.transSaveClientAmountDay(); + return BaseResponseUtils.buildSuccess(true); + } + /** + * 缁熻鍐滄埛鏈堝彇姘撮噺 + * @return + */ + @GetMapping(path = "statisticsClientAmountMonth") + @SsoAop() + public BaseResponse<Boolean> statisticsClientAmountMonth() throws Exception{ + this.stClientAmountMonthSv.deleteAllStClientAmountMonth(); + this.stClientAmountMonthSv.statisticsClientAmountMonth(); + return BaseResponseUtils.buildSuccess(true); + } + /** + * 缁熻鍐滄埛骞村彇姘撮噺 + * @return + */ + @GetMapping(path = "statisticsClientAmountYear") + @SsoAop() + public BaseResponse<Boolean> statisticsClientAmountYear() throws Exception{ + this.stClientAmountYearSv.deleteAllStClientAmountYear(); + this.stClientAmountYearSv.statisticsClientAmountYear(); return BaseResponseUtils.buildSuccess(true); } -- Gitblit v1.8.0