package com.dy.pipIrrStatistics.listeners; import com.dy.pipIrrGlobal.daoRm.RmIntakeAmountDayMapper; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * @Author: liurunyu * @Date: 2024/7/24 9:30 * @Description */ @Component public class StIntake { private static Logger log = LogManager.getLogger(StIntake.class.getName()) ; @Autowired protected RmIntakeAmountDayMapper rmIntakeAmountDayDao ; private String statisticsYyyy_mm; private Long statisticsStartId ; private Long statisticsEndId ; protected void statistics(String statisticsYyyy_mm, Long statisticsStartId, Long statisticsEndId){ this.statisticsYyyy_mm = statisticsYyyy_mm ; this.statisticsStartId = statisticsStartId ; this.statisticsEndId = statisticsEndId ; this.statisticsMonth() ; this.statisticsYear() ; } /** * 月统计---取水口 */ private void statisticsMonth(){ log.info(statisticsYyyy_mm + " " + statisticsStartId + " " + statisticsEndId); log.info(rmIntakeAmountDayDao.toString()); } /** * 年统计---取水口 */ private void statisticsYear(){ } }