|
|
|
@ -4,7 +4,6 @@ import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import javax.sql.DataSource;
|
|
|
|
@ -13,8 +12,8 @@ import org.apache.ibatis.mapping.VendorDatabaseIdProvider;
|
|
|
|
|
import org.egovframe.rte.fdl.string.EgovStringUtil;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
|
import cokr.xit.fims.cmmn.Hangul;
|
|
|
|
|
import cokr.xit.applib.AppCmmnUtil;
|
|
|
|
|
import cokr.xit.applib.Hangul;
|
|
|
|
|
import cokr.xit.fims.mngt.MsgEntity;
|
|
|
|
|
import cokr.xit.fims.mngt.MsgQuery;
|
|
|
|
|
import cokr.xit.fims.mngt.service.MsgService;
|
|
|
|
@ -59,7 +58,7 @@ public class MsgServiceBean extends AbstractServiceBean implements MsgService {
|
|
|
|
|
failList.add(msgEntity);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if(!CmmnUtil.isTelno(msgEntity.getCallback())) {
|
|
|
|
|
if(!AppCmmnUtil.isTelno(msgEntity.getCallback())) {
|
|
|
|
|
isSuccess = false;
|
|
|
|
|
msgEntity.setFailRsn("발신 가능한 전화번호 형식이 아님");
|
|
|
|
|
failList.add(msgEntity);
|
|
|
|
@ -72,7 +71,7 @@ public class MsgServiceBean extends AbstractServiceBean implements MsgService {
|
|
|
|
|
failList.add(msgEntity);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if(!CmmnUtil.isReceivePhone(msgEntity.getPhone())) {
|
|
|
|
|
if(!AppCmmnUtil.isReceivePhone(msgEntity.getPhone())) {
|
|
|
|
|
isSuccess = false;
|
|
|
|
|
msgEntity.setFailRsn("수신 가능한 전화번호 형식이 아님");
|
|
|
|
|
failList.add(msgEntity);
|
|
|
|
@ -80,8 +79,7 @@ public class MsgServiceBean extends AbstractServiceBean implements MsgService {
|
|
|
|
|
}
|
|
|
|
|
//발송예약일시 검증
|
|
|
|
|
if(!ifEmpty(msgEntity.getResDate(), ()->"").equals("")) {
|
|
|
|
|
String regex_dt = "^\\d{4}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])([0-1][0-9]|2[0-3])([0-5][0-9])([0-5][0-9])$";
|
|
|
|
|
if(!Pattern.matches(regex_dt, msgEntity.getResDate())) {
|
|
|
|
|
if(!AppCmmnUtil.isDateTimeDigitPattern(msgEntity.getResDate())) {
|
|
|
|
|
isSuccess = false;
|
|
|
|
|
msgEntity.setFailRsn("발송예약일시가 연월일시분초 형식이 아님");
|
|
|
|
|
failList.add(msgEntity);
|
|
|
|
|