문자온 사용요금내역 표시 오류

This commit is contained in:
wyh 2023-12-12 12:26:53 +09:00
parent 9b3c7c555b
commit 2eb1939055
5 changed files with 25 additions and 7 deletions

View File

@ -76,9 +76,10 @@ public interface MjonPayService {
void updatePointUseByCase(MjonPayVO mjonPayVO) throws Exception; void updatePointUseByCase(MjonPayVO mjonPayVO) throws Exception;
String selectSumPayMoney(String userId) throws Exception; String selectSumPayMoney(String userId) throws Exception;
String selectAgentSumPayMoney(String userId) throws Exception;
String selectSumPoint(String userId) throws Exception; String selectSumPoint(String userId) throws Exception;
List<MjonPayVO> selectPayListForRefund(MjonPayVO mjonPayVO) throws Exception; List<MjonPayVO> selectPayListForRefund(MjonPayVO mjonPayVO) throws Exception;

View File

@ -179,6 +179,10 @@ public class MjonPayDAO extends EgovAbstractDAO {
return (String) select("mjonPayDAO.selectSumPayMoney", userId); return (String) select("mjonPayDAO.selectSumPayMoney", userId);
} }
public String selectAgentSumPayMoney(String userId) throws Exception{
return (String) select("mjonPayDAO.selectAgentSumPayMoney", userId);
}
public String selectSumPoint(String userId) throws Exception{ public String selectSumPoint(String userId) throws Exception{
return (String) select("mjonPayDAO.selectSumPoint", userId); return (String) select("mjonPayDAO.selectSumPoint", userId);
} }

View File

@ -2499,13 +2499,16 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
} }
} }
@Override @Override
public String selectSumPayMoney(String userId) throws Exception{ public String selectSumPayMoney(String userId) throws Exception{
return mjonPayDAO.selectSumPayMoney(userId); return mjonPayDAO.selectSumPayMoney(userId);
} }
@Override
public String selectAgentSumPayMoney(String userId) throws Exception {
return mjonPayDAO.selectAgentSumPayMoney(userId);
}
@Override @Override
public String selectSumPoint(String userId) throws Exception{ public String selectSumPoint(String userId) throws Exception{
return mjonPayDAO.selectSumPoint(userId); return mjonPayDAO.selectSumPoint(userId);
@ -2740,4 +2743,6 @@ public class MjonPayServiceImpl extends EgovAbstractServiceImpl implements MjonP
return mjonPayDAO.selectPointInfoList(userId); return mjonPayDAO.selectPointInfoList(userId);
} }
} }

View File

@ -2409,7 +2409,7 @@ public class MjonPayController {
mjonMsgVO.setUserId(userId); mjonMsgVO.setUserId(userId);
{ // 충전캐시 { // 충전캐시
String sumPayMoney = mjonPayService.selectSumPayMoney(userId); String sumPayMoney = mjonPayService.selectAgentSumPayMoney(userId);
model.addAttribute("sumPayMoney", sumPayMoney); model.addAttribute("sumPayMoney", sumPayMoney);
} }
@ -2480,7 +2480,7 @@ public class MjonPayController {
{ // 충전캐시 { // 충전캐시
String sumPayMoney = mjonPayService.selectSumPayMoney(userId); String sumPayMoney = mjonPayService.selectAgentSumPayMoney(userId);
model.addAttribute("sumPayMoney", sumPayMoney); model.addAttribute("sumPayMoney", sumPayMoney);
} }

View File

@ -1285,6 +1285,14 @@
<select id="mjonPayDAO.selectSumPayMoney" parameterClass="String" resultClass="String"> <select id="mjonPayDAO.selectSumPayMoney" parameterClass="String" resultClass="String">
SELECT SUM(AMT)
FROM MJ_PG
WHERE USER_ID = #userId# AND PG_STATUS = 1
</select>
<select id="mjonPayDAO.selectAgentSumPayMoney" parameterClass="String" resultClass="String">
SELECT SUM(CASH) SELECT SUM(CASH)
FROM MJ_PG FROM MJ_PG
WHERE USER_ID = #userId# AND PG_STATUS = 1 WHERE USER_ID = #userId# AND PG_STATUS = 1
@ -2180,7 +2188,7 @@
<select id="mjonPayDAO.selectCashInfoList" parameterClass="String" resultClass="mjonPayVO"> <select id="mjonPayDAO.selectCashInfoList" parameterClass="String" resultClass="mjonPayVO">
SELECT SELECT
'chargeCash' AS divFlag 'chargeCash' AS divFlag
,SUM(AMT) AS cashSum ,SUM(CASH) AS cashSum
FROM FROM
MJ_PG MJ_PG
WHERE 1=1 WHERE 1=1