문자전송 컨트롤러에서 MSG_TYPE 다시계산 로직 추가

This commit is contained in:
itn 2023-07-31 11:16:51 +09:00
parent 3383806edb
commit 1f4e865a74
2 changed files with 30 additions and 0 deletions

View File

@ -2164,6 +2164,21 @@ public class MjonMsgCampainDataController {
System.out.println("mjonMsgVO.getMsgType2() ::: "+mjonMsgVO.getMsgType()); System.out.println("mjonMsgVO.getMsgType2() ::: "+mjonMsgVO.getMsgType());
// MSG_TYPE 다시계산
if(mjonMsgVO.getFileName1() != null) {
mjonMsgVO.setMsgType("6");
}else {
if(FrBytes < 2000) {
if(FrBytes > 90) {// 90Byte 초과시 장문
mjonMsgVO.setMsgType("6");
}else {// 그외 단문
mjonMsgVO.setMsgType("4");
}
}
}
System.out.println("mjonMsgVO.getMsgType3() ::: "+mjonMsgVO.getMsgType());
// 문자 종류별 단가 셋팅해주기 // 문자 종류별 단가 셋팅해주기
float tmpEachPrice = 0; float tmpEachPrice = 0;
if(mjonMsgVO.getMsgType().equals("4")) { if(mjonMsgVO.getMsgType().equals("4")) {

View File

@ -2316,6 +2316,21 @@ public class MjonMsgDataController {
System.out.println("mjonMsgVO.getMsgType2() ::: "+mjonMsgVO.getMsgType()); System.out.println("mjonMsgVO.getMsgType2() ::: "+mjonMsgVO.getMsgType());
// MSG_TYPE 다시계산
if(mjonMsgVO.getFileName1() != null) {
mjonMsgVO.setMsgType("6");
}else {
if(FrBytes < 2000) {
if(FrBytes > 90) {// 90Byte 초과시 장문
mjonMsgVO.setMsgType("6");
}else {// 그외 단문
mjonMsgVO.setMsgType("4");
}
}
}
System.out.println("mjonMsgVO.getMsgType3() ::: "+mjonMsgVO.getMsgType());
// 문자 종류별 단가 셋팅해주기 // 문자 종류별 단가 셋팅해주기
float tmpEachPrice = 0; float tmpEachPrice = 0;
if(mjonMsgVO.getMsgType().equals("4")) { if(mjonMsgVO.getMsgType().equals("4")) {