|  |  | 
 |  |  | import com.dy.pipIrrGlobal.voPr.VoWeather; | 
 |  |  | import com.dy.pipIrrGlobal.voRm.VoWeatherMaxMinTmp; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.apache.ibatis.annotations.Param; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public List<VoWeatherMaxMinTmp> selectYesterdayMaxMinTemperature(Long weatherId) throws Exception{ | 
 |  |  |         String ymd = DateTime.yesterday_yyyy_MM_dd(Integer.parseInt(DateTime.yyyy()), Integer.parseInt(DateTime.MM()), Integer.parseInt(DateTime.dd())) ; //昨天 | 
 |  |  |         int[] ymdGrp = DateTime.yyyy_MM_dd_2_ymdGroup(ymd) ; | 
 |  |  |         String yesterday = DateTime.lastXDay_yyyy_MM_dd(1) ; //昨天 | 
 |  |  |         // String yesterday = DateTime.yesterday_yyyy_MM_dd(Integer.parseInt(DateTime.yyyy()), Integer.parseInt(DateTime.MM()), Integer.parseInt(DateTime.dd())) ; //昨天 | 
 |  |  |         int[] ymdGrp = DateTime.yyyy_MM_dd_2_ymdGroup(yesterday) ; | 
 |  |  |         Long startId = IDLongGenerator.generateOneDayStartId(ymdGrp[0], ymdGrp[1], ymdGrp[2]) ; | 
 |  |  |         Long endId = IDLongGenerator.generateOneDayEndId(ymdGrp[0], ymdGrp[1], ymdGrp[2]) ; | 
 |  |  |         return this.rmWeatherHistoryDao.selectMaxMinTemperature(weatherId, startId, endId); | 
 |  |  | 
 |  |  |         po.minTmp = minAirTemperature ; | 
 |  |  |         po.factor = factor ; | 
 |  |  |         po.et0 = et0 ; | 
 |  |  |         this.mdEt0Dao.insert(po) ; | 
 |  |  |         return 0 ; | 
 |  |  |         return this.mdEt0Dao.insert(po) ; | 
 |  |  |     } | 
 |  |  | } |