itn 2023-09-14
예약관리 알림톡 휴대폰번호 하이픈(-) 추가
@681b96dd047973a957e784055daacc0623061edb
src/main/java/itn/let/mjo/reservmsg/web/MjonReservMsgController.java
--- src/main/java/itn/let/mjo/reservmsg/web/MjonReservMsgController.java
+++ src/main/java/itn/let/mjo/reservmsg/web/MjonReservMsgController.java
@@ -1878,7 +1878,7 @@
 				} 
 				if(j==5) cell.setCellValue((resultAllSentList.get(i)).getSmsTxt()); 		//내용
 				if(j==6) cell.setCellValue((resultAllSentList.get(i)).getMsgGroupCnt());	//발송건수
-				if(j==7) cell.setCellValue((resultAllSentList.get(i)).getCallFrom()); 		//발신번호
+				if(j==7) cell.setCellValue((resultAllSentList.get(i)).getCallFromComma()); 		//발신번호
 				if(j==8) cell.setCellValue((resultAllSentList.get(i)).getTotPrice()); 		//발신번호
 					
 				//발송결과 성공, 실패 처리
@@ -1987,7 +1987,7 @@
 				if (j == 5)
 					cell.setCellValue((resultAllSentList.get(i)).getMsgGroupCnt()); // 발송건수
 				if (j == 6)
-					cell.setCellValue((resultAllSentList.get(i)).getCallFrom()); // 발신번호
+					cell.setCellValue((resultAllSentList.get(i)).getCallFromComma()); // 발신번호
 				if (j == 7)
 					cell.setCellValue((resultAllSentList.get(i)).getTotPrice()); // 발신번호
 				if (j == 8) {
@@ -2175,7 +2175,7 @@
 				if (j == 6)
 					cell.setCellValue((resultAllSentList.get(i)).getMsgGroupCnt()); // 발송건수
 				if (j == 7)
-					cell.setCellValue((resultAllSentList.get(i)).getCallFrom()); // 발신번호
+					cell.setCellValue((resultAllSentList.get(i)).getCallFromComma()); // 발신번호
 				if (j == 8)
 					cell.setCellValue((resultAllSentList.get(i)).getTotPrice()); // 발신번호
 
@@ -2284,7 +2284,7 @@
 				if (j == 6)
 					cell.setCellValue((resultAllSentList.get(i)).getMsgGroupCnt()); // 발송건수
 				if (j == 7)
-					cell.setCellValue((resultAllSentList.get(i)).getCallFrom()); // 발신번호
+					cell.setCellValue((resultAllSentList.get(i)).getCallFromComma()); // 발신번호
 				if (j == 8)
 					cell.setCellValue((resultAllSentList.get(i)).getTotPrice()); // 발신번호
 			}
src/main/resources/egovframework/sqlmap/let/mjo/kakao/KakaoSent_SQL_Mysql.xml
--- src/main/resources/egovframework/sqlmap/let/mjo/kakao/KakaoSent_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/mjo/kakao/KakaoSent_SQL_Mysql.xml
@@ -1002,6 +1002,8 @@
 			M2.diffMin,
 			M2.callFrom ,
 			M2.callTo ,
+			REGEXP_REPLACE(M2.callFrom, '(02|.{3})(.+)(.{4})', '\\1-\\2-\\3')	AS callFromComma,
+			REGEXP_REPLACE(M2.callTo, '(02|.{3})(.+)(.{4})', '\\1-\\2-\\3')	AS callToComma,			
 			M2.addrNm ,
 			M2.totPrice ,
 			M2.eachPrice ,
src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoAllListAjax.jsp
--- src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoAllListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoAllListAjax.jsp
@@ -72,12 +72,12 @@
 			<colgroup>
 				<col style="width: 40px;">
 				<col style="width: 8%;">
-				<col style="width: 13%;">
-				<col style="width: 13%;">
+				<col style="width: 12%;">
+				<col style="width: 12%;">
 				<col style="width: 7%;">
 				<col style="width: 90px;">
 				<col style="width: 8%;">
-				<col style="width: 10%;">
+				<col style="width: 12%;">
 				<col style="width: 7%;">
 				<col style="width: 5%;">
 				<col style="width: 5%;">
@@ -254,7 +254,7 @@
 								<p><c:out value="${resultAllResList.msgGroupCnt}"/></p>
 							</td>
 							<td>
-								<p><c:out value="${resultAllResList.callFrom}"/></p>
+								<p><c:out value="${resultAllResList.callFromComma}"/></p>
 							</td>
 							<td>
 								<p>
src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoCancelListAjax.jsp
--- src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoCancelListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoCancelListAjax.jsp
@@ -211,7 +211,7 @@
 								<p><c:out value="${resultAllResList.msgGroupCnt}"/></p>
 							</td>
 							<td>
-								<p><c:out value="${resultAllResList.callFrom}"/></p>
+								<p><c:out value="${resultAllResList.callFromComma}"/></p>
 							</td>
 							<td>
 								<p>
src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoCompleteListAjax.jsp
--- src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoCompleteListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoCompleteListAjax.jsp
@@ -209,7 +209,7 @@
 								<p><c:out value="${resultAllResList.msgGroupCnt}"/></p>
 							</td>
 							<td>
-								<p><c:out value="${resultAllResList.callFrom}"/></p>
+								<p><c:out value="${resultAllResList.callFromComma}"/></p>
 							</td>
 							<td>
 								<p>
src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoReadyListAjax.jsp
--- src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoReadyListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/reservedmsg/ReservedKakaoReadyListAjax.jsp
@@ -225,7 +225,7 @@
 								<p><c:out value="${resultAllResList.msgGroupCnt}"/></p>
 							</td>
 							<td>
-								<p><c:out value="${resultAllResList.callFrom}"/></p>
+								<p><c:out value="${resultAllResList.callFromComma}"/></p>
 							</td>
 							<td>
 								<p>
Add a comment
List