회원상세 발송금액 변경 기능 수정 => 변경하려는 단가가 시스템단가와 동일할경우 0으로 업데이트 처리
=> 변경하려는 단가가 시스템단가와 동일할경우 0으로 업데이트 처리
@9806c4be5ffd497ebd0786567d54baec4e7719ac
--- src/main/java/itn/let/uss/umt/web/EgovUserManageController.java
+++ src/main/java/itn/let/uss/umt/web/EgovUserManageController.java
... | ... | @@ -1092,6 +1092,14 @@ |
| 1092 | 1092 |
//1.시스템 기본 단가 정보 조회하기 |
| 1093 | 1093 |
JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo(); |
| 1094 | 1094 |
|
| 1095 |
+ model.addAttribute("sysShortPrice", sysJoinSetVO.getShortPrice());
|
|
| 1096 |
+ model.addAttribute("sysLongPrice", sysJoinSetVO.getLongPrice());
|
|
| 1097 |
+ model.addAttribute("sysPicturePrice", sysJoinSetVO.getPicturePrice());
|
|
| 1098 |
+ model.addAttribute("sysPicture2Price", sysJoinSetVO.getPicture2Price());
|
|
| 1099 |
+ model.addAttribute("sysPicture3Price", sysJoinSetVO.getPicture3Price());
|
|
| 1100 |
+ model.addAttribute("sysPicture3Price", sysJoinSetVO.getPicture3Price());
|
|
| 1101 |
+ model.addAttribute("sysKakaoAtPrice", sysJoinSetVO.getKakaoAtPrice());
|
|
| 1102 |
+ |
|
| 1095 | 1103 |
// 등급제 단가 추출 => 시스템 단가에 적용 |
| 1096 | 1104 |
sysJoinSetVO = mberGrdService.selectMberGrdDefaultInfo(sysJoinSetVO, userId); |
| 1097 | 1105 |
|
... | ... | @@ -2791,7 +2799,31 @@ |
| 2791 | 2799 |
} |
| 2792 | 2800 |
|
| 2793 | 2801 |
try {
|
| 2794 |
- |
|
| 2802 |
+ //1.시스템 기본 단가 정보 조회하기 |
|
| 2803 |
+ JoinSettingVO sysJoinSetVO = mjonMsgDataService.selectJoinSettingInfo(); |
|
| 2804 |
+ // 문자 => 수정하려는 단가가 시스템기본단가와 동일할경우 0으로 세팅 |
|
| 2805 |
+ if (Float.compare(sysJoinSetVO.getShortPrice(), mberManageVO.getShortPrice()) == 0) {
|
|
| 2806 |
+ if (Float.compare(sysJoinSetVO.getLongPrice(), mberManageVO.getLongPrice()) == 0) {
|
|
| 2807 |
+ if (Float.compare(sysJoinSetVO.getPicturePrice(), mberManageVO.getPicturePrice()) == 0) {
|
|
| 2808 |
+ if (Float.compare(sysJoinSetVO.getPicture2Price(), mberManageVO.getPicture2Price()) == 0) {
|
|
| 2809 |
+ if (Float.compare(sysJoinSetVO.getPicture3Price(), mberManageVO.getPicture3Price()) == 0) {
|
|
| 2810 |
+ mberManageVO.setShortPrice(0); |
|
| 2811 |
+ mberManageVO.setLongPrice(0); |
|
| 2812 |
+ mberManageVO.setPicturePrice(0); |
|
| 2813 |
+ mberManageVO.setPicture2Price(0); |
|
| 2814 |
+ mberManageVO.setPicture3Price(0); |
|
| 2815 |
+ mberManageVO.setPicture3Price(0); |
|
| 2816 |
+ } |
|
| 2817 |
+ } |
|
| 2818 |
+ } |
|
| 2819 |
+ } |
|
| 2820 |
+ } |
|
| 2821 |
+ |
|
| 2822 |
+ // 알림톡 => 수정하려는 단가가 시스템기본단가와 동일할경우 0으로 세팅 |
|
| 2823 |
+ if (Float.compare(sysJoinSetVO.getKakaoAtPrice(), mberManageVO.getKakaoAtPrice()) == 0) {
|
|
| 2824 |
+ mberManageVO.setKakaoAtPrice(0); |
|
| 2825 |
+ } |
|
| 2826 |
+ |
|
| 2795 | 2827 |
int resultCnt = mberManageService.updateUserPrice(mberManageVO); |
| 2796 | 2828 |
|
| 2797 | 2829 |
if(resultCnt > 0) {
|
--- src/main/resources/egovframework/sqlmap/let/sym/grd/MberGrd_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/sym/grd/MberGrd_SQL_Mysql.xml
... | ... | @@ -680,6 +680,8 @@ |
| 680 | 680 |
, A.GRD_DATE = CONCAT(DATE_FORMAT(#grdNewDate#, '%Y-%m-%d'), ' ', '00:00:00') |
| 681 | 681 |
, A.EDIT_DATE = NOW() |
| 682 | 682 |
, A.TEMP_YN = 'Y' |
| 683 |
+ , A.GRD_END_DATE = '9999:12:31 23:59:59' |
|
| 684 |
+ , A.GRD_STATUS = 'Y' |
|
| 683 | 685 |
WHERE A.TEMP_YN = 'N' |
| 684 | 686 |
AND C.GRD_SET_NO = (SELECT MAX(GRD_SET_NO) FROM MJ_MBER_GRD_SETTING) |
| 685 | 687 |
]]> |
--- src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovGnrlUserSelectUpdt.jsp
+++ src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovGnrlUserSelectUpdt.jsp
... | ... | @@ -61,6 +61,12 @@ |
| 61 | 61 |
<!-- <script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script> --> |
| 62 | 62 |
<script type="text/javaScript" language="javascript" defer="defer"> |
| 63 | 63 |
var grdSettingList = []; // 등급별 단가 정보 |
| 64 |
+var sysShortPrice = "${sysShortPrice}";
|
|
| 65 |
+var sysLongPrice = "${sysLongPrice}";
|
|
| 66 |
+var sysPicturePrice = "${sysPicturePrice}";
|
|
| 67 |
+var sysPicture2Price = "${sysPicture2Price}";
|
|
| 68 |
+var sysPicture3Price = "${sysPicture3Price}";
|
|
| 69 |
+var sysKakaoAtPrice = "${sysKakaoAtPrice}";
|
|
| 64 | 70 |
|
| 65 | 71 |
$(document).ready(function(){
|
| 66 | 72 |
console.log('${serverName}');
|
... | ... | @@ -699,6 +705,18 @@ |
| 699 | 705 |
form.target = "popupSelectMber"; |
| 700 | 706 |
form.submit(); |
| 701 | 707 |
} |
| 708 |
+ |
|
| 709 |
+// 문자 금액 초기화 |
|
| 710 |
+function fnPriceReset() {
|
|
| 711 |
+ form = document.msgPriceForm; |
|
| 712 |
+ form.shortPrice.value = sysShortPrice; |
|
| 713 |
+ form.longPrice.value = sysLongPrice; |
|
| 714 |
+ form.picturePrice.value = sysPicturePrice; |
|
| 715 |
+ form.picture2Price.value = sysPicture2Price; |
|
| 716 |
+ form.picture3Price.value = sysPicture3Price; |
|
| 717 |
+ form.kakaoAtPrice.value = sysKakaoAtPrice; |
|
| 718 |
+} |
|
| 719 |
+ |
|
| 702 | 720 |
|
| 703 | 721 |
//문자발송 금액 변경 처리 |
| 704 | 722 |
function fnPriceUpdate(mberId){
|
... | ... | @@ -5572,6 +5590,7 @@ |
| 5572 | 5590 |
</table> |
| 5573 | 5591 |
<div class="button_box"> |
| 5574 | 5592 |
<button type="button" onclick="fnPriceUpdate('<c:out value="${mberManageVO.mberId}"/>'); return false;">금액 변경</button>
|
| 5593 |
+ <button type="button" onclick="fnPriceReset(); return false;">초기화</button> |
|
| 5575 | 5594 |
</div> |
| 5576 | 5595 |
</div> |
| 5577 | 5596 |
</div> |
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?