public void run() { // 1. 현재 년월로 결과테이블이 있는지 확인하고 없다면 만들어주라 . String yearMonth = DateUtils.getYearMonth(); String tableName = autoSMSSendController.createSendResult(yearMonth); if (tableName == null || tableName.equals("")) { logger.error("Faild to create tm_autosms_sendresult_" + yearMonth); return; } sendSMS(yearMonth); }
/** * SMS 테이블에 입력 * * @param yearMonth */ private void sendSMS(String yearMonth) { autoSMSSendController.sendAutoSMS(smsSimpleJdbcTemplate, smsPropertiesMap, yearMonth); }
public AutoSMSSendThread( Map<String, String> smsPropertiesMap, SimpleJdbcTemplate smsSimpleJdbcTemplate) { autoSMSSendController = AutoSMSSendController.getInstance(); this.smsPropertiesMap = smsPropertiesMap; this.smsSimpleJdbcTemplate = smsSimpleJdbcTemplate; }