문자온 사용요금내역 표시 오류
@2eb1939055bb6bd81d0cb360ebd88686be8bc38b
--- src/main/java/itn/let/mjo/pay/service/MjonPayService.java
+++ src/main/java/itn/let/mjo/pay/service/MjonPayService.java
... | ... | @@ -76,9 +76,10 @@ |
| 76 | 76 |
|
| 77 | 77 |
void updatePointUseByCase(MjonPayVO mjonPayVO) throws Exception; |
| 78 | 78 |
|
| 79 |
- |
|
| 80 | 79 |
String selectSumPayMoney(String userId) throws Exception; |
| 81 |
- |
|
| 80 |
+ |
|
| 81 |
+ String selectAgentSumPayMoney(String userId) throws Exception; |
|
| 82 |
+ |
|
| 82 | 83 |
String selectSumPoint(String userId) throws Exception; |
| 83 | 84 |
|
| 84 | 85 |
List<MjonPayVO> selectPayListForRefund(MjonPayVO mjonPayVO) throws Exception; |
--- src/main/java/itn/let/mjo/pay/service/impl/MjonPayDAO.java
+++ src/main/java/itn/let/mjo/pay/service/impl/MjonPayDAO.java
... | ... | @@ -179,6 +179,10 @@ |
| 179 | 179 |
return (String) select("mjonPayDAO.selectSumPayMoney", userId);
|
| 180 | 180 |
} |
| 181 | 181 |
|
| 182 |
+ public String selectAgentSumPayMoney(String userId) throws Exception{
|
|
| 183 |
+ return (String) select("mjonPayDAO.selectAgentSumPayMoney", userId);
|
|
| 184 |
+ } |
|
| 185 |
+ |
|
| 182 | 186 |
public String selectSumPoint(String userId) throws Exception{
|
| 183 | 187 |
return (String) select("mjonPayDAO.selectSumPoint", userId);
|
| 184 | 188 |
} |
--- src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java
+++ src/main/java/itn/let/mjo/pay/service/impl/MjonPayServiceImpl.java
... | ... | @@ -2499,11 +2499,14 @@ |
| 2499 | 2499 |
} |
| 2500 | 2500 |
} |
| 2501 | 2501 |
|
| 2502 |
- |
|
| 2503 |
- |
|
| 2504 | 2502 |
@Override |
| 2505 | 2503 |
public String selectSumPayMoney(String userId) throws Exception{
|
| 2506 | 2504 |
return mjonPayDAO.selectSumPayMoney(userId); |
| 2505 |
+ } |
|
| 2506 |
+ |
|
| 2507 |
+ @Override |
|
| 2508 |
+ public String selectAgentSumPayMoney(String userId) throws Exception {
|
|
| 2509 |
+ return mjonPayDAO.selectAgentSumPayMoney(userId); |
|
| 2507 | 2510 |
} |
| 2508 | 2511 |
|
| 2509 | 2512 |
@Override |
... | ... | @@ -2740,4 +2743,6 @@ |
| 2740 | 2743 |
return mjonPayDAO.selectPointInfoList(userId); |
| 2741 | 2744 |
} |
| 2742 | 2745 |
|
| 2746 |
+ |
|
| 2747 |
+ |
|
| 2743 | 2748 |
} |
--- src/main/java/itn/let/mjo/pay/web/MjonPayController.java
+++ src/main/java/itn/let/mjo/pay/web/MjonPayController.java
... | ... | @@ -2409,7 +2409,7 @@ |
| 2409 | 2409 |
mjonMsgVO.setUserId(userId); |
| 2410 | 2410 |
|
| 2411 | 2411 |
{ // 충전캐시
|
| 2412 |
- String sumPayMoney = mjonPayService.selectSumPayMoney(userId); |
|
| 2412 |
+ String sumPayMoney = mjonPayService.selectAgentSumPayMoney(userId); |
|
| 2413 | 2413 |
model.addAttribute("sumPayMoney", sumPayMoney);
|
| 2414 | 2414 |
} |
| 2415 | 2415 |
|
... | ... | @@ -2480,7 +2480,7 @@ |
| 2480 | 2480 |
|
| 2481 | 2481 |
|
| 2482 | 2482 |
{ // 충전캐시
|
| 2483 |
- String sumPayMoney = mjonPayService.selectSumPayMoney(userId); |
|
| 2483 |
+ String sumPayMoney = mjonPayService.selectAgentSumPayMoney(userId); |
|
| 2484 | 2484 |
model.addAttribute("sumPayMoney", sumPayMoney);
|
| 2485 | 2485 |
} |
| 2486 | 2486 |
|
--- src/main/resources/egovframework/sqlmap/let/pay/MjonPay_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/pay/MjonPay_SQL_mysql.xml
... | ... | @@ -1285,6 +1285,14 @@ |
| 1285 | 1285 |
|
| 1286 | 1286 |
<select id="mjonPayDAO.selectSumPayMoney" parameterClass="String" resultClass="String"> |
| 1287 | 1287 |
|
| 1288 |
+ SELECT SUM(AMT) |
|
| 1289 |
+ FROM MJ_PG |
|
| 1290 |
+ WHERE USER_ID = #userId# AND PG_STATUS = 1 |
|
| 1291 |
+ |
|
| 1292 |
+ </select> |
|
| 1293 |
+ |
|
| 1294 |
+ <select id="mjonPayDAO.selectAgentSumPayMoney" parameterClass="String" resultClass="String"> |
|
| 1295 |
+ |
|
| 1288 | 1296 |
SELECT SUM(CASH) |
| 1289 | 1297 |
FROM MJ_PG |
| 1290 | 1298 |
WHERE USER_ID = #userId# AND PG_STATUS = 1 |
... | ... | @@ -2180,7 +2188,7 @@ |
| 2180 | 2188 |
<select id="mjonPayDAO.selectCashInfoList" parameterClass="String" resultClass="mjonPayVO"> |
| 2181 | 2189 |
SELECT |
| 2182 | 2190 |
'chargeCash' AS divFlag |
| 2183 |
- ,SUM(AMT) AS cashSum |
|
| 2191 |
+ ,SUM(CASH) AS cashSum |
|
| 2184 | 2192 |
FROM |
| 2185 | 2193 |
MJ_PG |
| 2186 | 2194 |
WHERE 1=1 |
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?