|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private ChSomeIntakeAmountSv intakeAmountSv; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private ChSomeIntakeLossSv intakeLossSv; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private void setSv(ChSomeIntakeAmountSv sv) { | 
|---|
|  |  |  | this.intakeAmountSv = sv; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private void setSv(ChSomeIntakeLossSv sv) { | 
|---|
|  |  |  | this.intakeLossSv = sv; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /////////////////////////////////////////// | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // 取水口相关取水量 | 
|---|
|  |  |  | // | 
|---|
|  |  |  | /////////////////////////////////////////// | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改一些取水口取水量日统计 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> changeSomeIntakeDayAmount() throws Exception{ | 
|---|
|  |  |  | this.intakeAmountSv.chIntakeAmountDay(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 重新统计取水口月取水量 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path = "reStatisticsAllIntakeDayAmount") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> reStatisticsAllIntakeDayAmount() throws Exception{ | 
|---|
|  |  |  | // 不能删除,以保留原始id | 
|---|
|  |  |  | // this.intakeAmountSv.deleteAllIntakeAmountDay(); | 
|---|
|  |  |  | this.intakeAmountSv.statisticsIntakeAmountDay(); | 
|---|
|  |  |  | this.intakeAmountSv.deleteSomeIntakeAmountDay(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | this.intakeAmountSv.statisticsIntakeAmountYear(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /////////////////////////////////////////// | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // 取水口相关漏损 | 
|---|
|  |  |  | // | 
|---|
|  |  |  | /////////////////////////////////////////// | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改一些取水口漏损量日统计 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path = "changeSomeIntakeDayLoss") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> changeSomeIntakeDayLoss() throws Exception{ | 
|---|
|  |  |  | this.intakeLossSv.chIntakeLossDay(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 重新统计取水口月漏损量 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path = "reStatisticsAllIntakeMonthLoss") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> reStatisticsAllIntakeMonthLoss() throws Exception{ | 
|---|
|  |  |  | this.intakeLossSv.deleteAllIntakeLossMonth(); | 
|---|
|  |  |  | this.intakeLossSv.statisticsIntakeLossMonth(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 重新统计取水口所漏损量 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path = "reStatisticsAllIntakeYearLoss") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> reStatisticsAllIntakeYearLoss() throws Exception{ | 
|---|
|  |  |  | this.intakeLossSv.deleteAllIntakeLossYear(); | 
|---|
|  |  |  | this.intakeLossSv.statisticsIntakeLossYear(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|