itn 2023-07-31
문자전송 컨트롤러에서 MSG_TYPE 다시계산 로직 추가
@1f4e865a748a6b6ed61f6eb7a43582612493400f
src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
--- src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
+++ src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
@@ -2164,6 +2164,21 @@
         	
         	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;
     		if(mjonMsgVO.getMsgType().equals("4")) {
src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
--- src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
+++ src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
@@ -2316,6 +2316,21 @@
         	
         	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;
     		if(mjonMsgVO.getMsgType().equals("4")) {
Add a comment
List