문자전송 컨트롤러에서 MSG_TYPE 다시계산 로직 추가
@1f4e865a748a6b6ed61f6eb7a43582612493400f
--- src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
+++ src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
... | ... | @@ -2164,6 +2164,21 @@ |
| 2164 | 2164 |
|
| 2165 | 2165 |
System.out.println("mjonMsgVO.getMsgType2() ::: "+mjonMsgVO.getMsgType());
|
| 2166 | 2166 |
|
| 2167 |
+ // MSG_TYPE 다시계산 |
|
| 2168 |
+ if(mjonMsgVO.getFileName1() != null) {
|
|
| 2169 |
+ mjonMsgVO.setMsgType("6");
|
|
| 2170 |
+ }else {
|
|
| 2171 |
+ if(FrBytes < 2000) {
|
|
| 2172 |
+ if(FrBytes > 90) {// 90Byte 초과시 장문
|
|
| 2173 |
+ mjonMsgVO.setMsgType("6");
|
|
| 2174 |
+ }else {// 그외 단문
|
|
| 2175 |
+ mjonMsgVO.setMsgType("4");
|
|
| 2176 |
+ } |
|
| 2177 |
+ } |
|
| 2178 |
+ } |
|
| 2179 |
+ |
|
| 2180 |
+ System.out.println("mjonMsgVO.getMsgType3() ::: "+mjonMsgVO.getMsgType());
|
|
| 2181 |
+ |
|
| 2167 | 2182 |
//각 문자 종류별 단가 셋팅해주기 |
| 2168 | 2183 |
float tmpEachPrice = 0; |
| 2169 | 2184 |
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
... | ... | @@ -2316,6 +2316,21 @@ |
| 2316 | 2316 |
|
| 2317 | 2317 |
System.out.println("mjonMsgVO.getMsgType2() ::: "+mjonMsgVO.getMsgType());
|
| 2318 | 2318 |
|
| 2319 |
+ // MSG_TYPE 다시계산 |
|
| 2320 |
+ if(mjonMsgVO.getFileName1() != null) {
|
|
| 2321 |
+ mjonMsgVO.setMsgType("6");
|
|
| 2322 |
+ }else {
|
|
| 2323 |
+ if(FrBytes < 2000) {
|
|
| 2324 |
+ if(FrBytes > 90) {// 90Byte 초과시 장문
|
|
| 2325 |
+ mjonMsgVO.setMsgType("6");
|
|
| 2326 |
+ }else {// 그외 단문
|
|
| 2327 |
+ mjonMsgVO.setMsgType("4");
|
|
| 2328 |
+ } |
|
| 2329 |
+ } |
|
| 2330 |
+ } |
|
| 2331 |
+ |
|
| 2332 |
+ System.out.println("mjonMsgVO.getMsgType3() ::: "+mjonMsgVO.getMsgType());
|
|
| 2333 |
+ |
|
| 2319 | 2334 |
//각 문자 종류별 단가 셋팅해주기 |
| 2320 | 2335 |
float tmpEachPrice = 0; |
| 2321 | 2336 |
if(mjonMsgVO.getMsgType().equals("4")) {
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?