|  |  |  | 
|---|
|  |  |  | @SuppressWarnings("unchecked")//java版本越高,对泛型约束越严,所以配置SuppressWarnings("unchecked") | 
|---|
|  |  |  | public class DelSomeCtrl { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private DelSomeSv sv; | 
|---|
|  |  |  | private DelSomeLossAmountSv lossAmountSv; | 
|---|
|  |  |  | private DelSomeIntakeAmountSv intakeAmountSv; | 
|---|
|  |  |  | private DelSomeClientAmountSv clientAmountSv; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private void setSv(DelSomeSv sv) { | 
|---|
|  |  |  | this.sv = sv; | 
|---|
|  |  |  | private void setSv(DelSomeLossAmountSv sv) { | 
|---|
|  |  |  | this.lossAmountSv = sv; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private void setSv(DelSomeIntakeAmountSv sv) { | 
|---|
|  |  |  | this.intakeAmountSv = sv; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private void setSv(DelSomeClientAmountSv sv) { | 
|---|
|  |  |  | this.clientAmountSv = sv; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | @GetMapping(path = "deleteSomeStatisticLossAmount") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> deleteSomeStatisticLossAmount(){ | 
|---|
|  |  |  | this.sv.delStLossMonth(); | 
|---|
|  |  |  | this.lossAmountSv.delStLossDay(); | 
|---|
|  |  |  | this.lossAmountSv.delStLossMonth(); | 
|---|
|  |  |  | this.lossAmountSv.delStLossYear(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 删除一些取水口统计 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path = "deleteSomeStatisticIntakeAmount") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> deleteSomeStatisticIntakeAmount(){ | 
|---|
|  |  |  | this.intakeAmountSv.delStIntakeDay(); | 
|---|
|  |  |  | this.intakeAmountSv.delStIntakeMonth(); | 
|---|
|  |  |  | this.intakeAmountSv.delStIntakeYear(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 删除一些农户统计 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path = "deleteSomeStatisticClientAmount") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> deleteSomeStatisticClientAmount(){ | 
|---|
|  |  |  | this.clientAmountSv.delStClientDay(); | 
|---|
|  |  |  | this.clientAmountSv.delStClientMonth(); | 
|---|
|  |  |  | this.clientAmountSv.delStClientYear(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|