File was renamed from pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/listeners/StLoss.java |
| | |
| | | package com.dy.pipIrrStatistics.listeners; |
| | | package com.dy.pipIrrStatistics.statistics; |
| | | |
| | | import com.dy.pipIrrGlobal.daoRm.RmLossHistoryMapper; |
| | | import org.apache.logging.log4j.LogManager; |
| | | import org.apache.logging.log4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private static Logger log = LogManager.getLogger(StLoss.class.getName()) ; |
| | | |
| | | @Autowired |
| | | protected RmLossHistoryMapper rmLossHistoryDao ; |
| | | protected StLossSv sv ; |
| | | |
| | | private String statisticsYyyy_mm; |
| | | private Integer statisticsYear; |
| | | private Integer statisticsMonth; |
| | | private Long statisticsStartId ; |
| | | private Long statisticsEndId ; |
| | | |
| | | protected void statistics(String statisticsYyyy_mm, |
| | | protected void statistics(Integer statisticsYear, |
| | | Integer statisticsMonth, |
| | | Long statisticsStartId, |
| | | Long statisticsEndId){ |
| | | this.statisticsYyyy_mm = statisticsYyyy_mm ; |
| | | this.statisticsYear = statisticsYear ; |
| | | this.statisticsMonth = statisticsMonth ; |
| | | this.statisticsStartId = statisticsStartId ; |
| | | this.statisticsEndId = statisticsEndId ; |
| | | this.statisticsMonth() ; |
| | |
| | | * 月统计---漏损 |
| | | */ |
| | | private void statisticsMonth(){ |
| | | log.info(statisticsYyyy_mm + " " + statisticsStartId + " " + statisticsEndId); |
| | | log.info(rmLossHistoryDao.toString()); |
| | | sv.statisticsMonth(statisticsYear, statisticsMonth, statisticsStartId, statisticsEndId); |
| | | } |
| | | |
| | | /** |
| | | * 年统计---漏损 |
| | | */ |
| | | private void statisticsYear(){ |
| | | |
| | | sv.statisticsYear(statisticsYear); |
| | | } |
| | | } |