|  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Transactional | 
 |  |  |     int doUpdateOneIntakeAmountDay(Long id, Double amount){ | 
 |  |  |     protected int doUpdateOneIntakeAmountDay(Long id, Double amount){ | 
 |  |  |         return dao.updateOneIntakeAmountDay(id, amount); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |      * 删除所有取水口月取水量统计 | 
 |  |  |      * @throws Exception | 
 |  |  |      */ | 
 |  |  |     @Transactional | 
 |  |  |     public void deleteAllIntakeAmountMonth(){ | 
 |  |  |         dao.deleteAllIntakeAmountMonth(); | 
 |  |  |     } | 
 |  |  | 
 |  |  |             list = null ; | 
 |  |  |             if(year < nowYear){ | 
 |  |  |                 for(int month = 1 ; month <= 12 ; month ++){ | 
 |  |  |                     startDt = DateTime.dateFrom_MM_dd(year + "-" + month + "-01") ; | 
 |  |  |                     endDt = DateTime.dateFrom_MM_dd(year + "-" + month + endDayOfMonth(year, month)) ; | 
 |  |  |                     startDt = DateTime.dateFrom_yyyy_MM_dd(year + "-" + month + "-01") ; | 
 |  |  |                     endDt = DateTime.dateFrom_yyyy_MM_dd(year + "-" + month + "-" + endDayOfMonth(year, month)) ; | 
 |  |  |                     list = dao.statisticAllIntakeAmountMonthFromAmountDay(startDt, endDt) ; | 
 |  |  |                     this.doStatisticsIntakeAmountMonth(year, month, list) ; | 
 |  |  |                 } | 
 |  |  |             }else{ | 
 |  |  |                 for(int month = 1 ; month <= nowMonth ; month ++){ | 
 |  |  |                     startDt = DateTime.dateFrom_MM_dd(year + "-" + month + "-01") ; | 
 |  |  |                     endDt = DateTime.dateFrom_MM_dd(year + "-" + month + endDayOfMonth(year, month)) ; | 
 |  |  |                     startDt = DateTime.dateFrom_yyyy_MM_dd(year + "-" + month + "-01") ; | 
 |  |  |                     endDt = DateTime.dateFrom_yyyy_MM_dd(year + "-" + month + "-" + endDayOfMonth(year, month)) ; | 
 |  |  |                     list = dao.statisticAllIntakeAmountMonthFromAmountDay(startDt, endDt) ; | 
 |  |  |                     this.doStatisticsIntakeAmountMonth(year, month, list) ; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |     private void doStatisticsIntakeAmountMonth(int year, int month, List<StIntakeAmountMonth> list) throws Exception{ | 
 |  |  |     @Transactional | 
 |  |  |     protected void doStatisticsIntakeAmountMonth(int year, int month, List<StIntakeAmountMonth> list) throws Exception{ | 
 |  |  |         if(list != null && list.size() > 0){ | 
 |  |  |             for(StIntakeAmountMonth po : list){ | 
 |  |  |                 po.year = year ; | 
 |  |  | 
 |  |  |      * 删除所有取水口年取水量统计 | 
 |  |  |      * @throws Exception | 
 |  |  |      */ | 
 |  |  |     @Transactional | 
 |  |  |     public void deleteAllIntakeAmountYear(){ | 
 |  |  |         dao.deleteAllIntakeAmountYear(); | 
 |  |  |     } | 
 |  |  | 
 |  |  |         List<StIntakeAmountYear> list ; | 
 |  |  |         for(int year = DealStartYear; year <= nowYear; year ++){ | 
 |  |  |             list = null ; | 
 |  |  |             startDt = DateTime.dateFrom_MM_dd(year + "-01-01") ; | 
 |  |  |             endDt = DateTime.dateFrom_MM_dd(year + "-12-31") ; | 
 |  |  |             startDt = DateTime.dateFrom_yyyy_MM_dd(year + "-01-01") ; | 
 |  |  |             endDt = DateTime.dateFrom_yyyy_MM_dd(year + "-12-31") ; | 
 |  |  |             list = dao.statisticAllIntakeAmountYearFromAmountDay(startDt, endDt) ; | 
 |  |  |             this.doStatisticsIntakeAmountYear(year, list) ; | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |     private void doStatisticsIntakeAmountYear(int year, List<StIntakeAmountYear> list) throws Exception{ | 
 |  |  |     @Transactional | 
 |  |  |     protected void doStatisticsIntakeAmountYear(int year, List<StIntakeAmountYear> list) throws Exception{ | 
 |  |  |         if(list != null && list.size() > 0){ | 
 |  |  |             for(StIntakeAmountYear po : list){ | 
 |  |  |                 po.year = year ; |