결제수단과 카드정보 공백제거

This commit is contained in:
itn 2023-08-25 17:07:11 +09:00
parent b42b561126
commit 5fe9df5280
3 changed files with 82 additions and 35 deletions

View File

@ -210,17 +210,17 @@ function sendMsgExcelDownload(){
<div class="tableWrap"> <div class="tableWrap">
<table class="tbType1"> <table class="tbType1">
<colgroup> <colgroup>
<col style="width: 5%"> <col style="width: 4%">
<col style="width: 8%"> <col style="width: 7%">
<col style="width: 8%"> <col style="width: 7%">
<col style="width: 5%"> <col style="width: 5%">
<col style="width: 9%"> <col style="width: 9%">
<col style="width: 5%"> <col style="width: 9%">
<col style="width: *%"> <col style="width: *%">
<col style="width: 9%"> <col style="width: 9%">
<col style="width: 6%"> <col style="width: 6%">
<col style="width: 6%"> <col style="width: 6%">
<col style="width: 13%"> <col style="width: 11%">
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr>
@ -269,7 +269,34 @@ function sendMsgExcelDownload(){
</c:if> </c:if>
</td> </td>
<td> <td>
<c:out value="${result.payMethodTxt}"/> <c:choose>
<c:when test="${result.payMethodTxt eq '신용카드'}">
<c:choose>
<c:when test="${not empty result.cardName}">
카드(<c:out value="${result.cardName}"/>)
</c:when>
<c:when test="${result.resultCode == '9991' || result.resultCode == '9993' || result.resultCode == 'I002'}">
카드(결제취소)
</c:when>
<c:otherwise>
카드
</c:otherwise>
</c:choose>
</c:when>
<c:when test="${result.payMethodTxt eq '간편결제'}">
<c:choose>
<c:when test="${not empty result.cardName}">
간편(<c:out value="${result.cardName}"/>)
</c:when>
<c:otherwise>
간편
</c:otherwise>
</c:choose>
</c:when>
<c:otherwise>
<c:out value="${result.payMethodTxt}"/>
</c:otherwise>
</c:choose>
</td> </td>
<td> <td>
<c:out value="${result.tid}"/> <c:out value="${result.tid}"/>
@ -298,7 +325,8 @@ function sendMsgExcelDownload(){
</c:if> </c:if>
</td> </td>
<td> <td>
<c:out value="${result.regDate}"/> <fmt:parseDate value="${result.regDate}" var="regDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${regDateValue}" pattern="yyyy-MM-dd HH:mm"/>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>

View File

@ -416,37 +416,29 @@ function fnSmishingUpdate(flag, id) {
</td> </td>
<%-- <td><fmt:formatNumber value="${result.cancelAmt}" type="number" /><c:if test="${'8' eq result.pgStatus}"><font color="red">(오류)</font></c:if></td> --%> <%-- <td><fmt:formatNumber value="${result.cancelAmt}" type="number" /><c:if test="${'8' eq result.pgStatus}"><font color="red">(오류)</font></c:if></td> --%>
<td <c:if test="${result.smishingYn eq 'Y'}">class="smishing"</c:if>> <td <c:if test="${result.smishingYn eq 'Y'}">class="smishing"</c:if>>
<!-- 카드결제 오류로 인한 카드 결제사 이름이 없는 경우 표시 문구 추가 2023.01.02 우영두 -->
<c:choose> <c:choose>
<c:when test="${result.payMethodTxt eq '신용카드'}"> <c:when test="${result.payMethodTxt eq '신용카드'}">
카드 <c:choose>
<c:choose> <c:when test="${not empty result.cardName}">
<c:when test="${not empty result.cardName}"> 카드(<c:out value="${result.cardName}"/>)
(<c:out value="${result.cardName}"/>) </c:when>
</c:when> <c:when test="${result.resultCode == '9991' || result.resultCode == '9993' || result.resultCode == 'I002'}">
<c:when test="${result.resultCode == '9991' || result.resultCode == '9993' || result.resultCode == 'I002'}"> 카드(결제취소)
<%-- 9991, 9993, I002 결과코드는 사용자가 결제 중간에 취소하여 오류가 발생한 케이스임. --%> </c:when>
(결제취소) <c:otherwise>
</c:when> 카드
<c:otherwise> </c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</c:when> </c:when>
<c:when test="${result.payMethodTxt eq '간편결제'}"> <c:when test="${result.payMethodTxt eq '간편결제'}">
간편 <c:choose>
<c:choose> <c:when test="${not empty result.cardName}">
<c:when test="${not empty result.cardName}"> 간편(<c:out value="${result.cardName}"/>)
(<c:out value="${result.cardName}"/>) </c:when>
</c:when> <c:otherwise>
<c:when test="${result.resultCode == '9991' || result.resultCode == '9993' || result.resultCode == 'I002'}"> 간편
<%-- 9991, 9993, I002 결과코드는 사용자가 결제 중간에 취소하여 오류가 발생한 케이스임. --%> </c:otherwise>
(결제취소) </c:choose>
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<c:out value="${result.payMethodTxt}"/> <c:out value="${result.payMethodTxt}"/>

View File

@ -211,7 +211,34 @@ function goList(no){
<tr class="no_modi"> <tr class="no_modi">
<th><span class="reqArea">결제수단</span></th> <th><span class="reqArea">결제수단</span></th>
<td colspan="3"> <td colspan="3">
<input type="text" name="payMethodTxt" value="${mjonPayVO.payMethodTxt}" title="결제수단" maxlength="20" /> <c:choose>
<c:when test="${mjonPayVO.payMethodTxt eq '신용카드'}">
<c:choose>
<c:when test="${not empty mjonPayVO.cardName}">
카드(<c:out value="${mjonPayVO.cardName}"/>)
</c:when>
<c:when test="${mjonPayVO.resultCode == '9991' || mjonPayVO.resultCode == '9993' || mjonPayVO.resultCode == 'I002'}">
카드(결제취소)
</c:when>
<c:otherwise>
카드
</c:otherwise>
</c:choose>
</c:when>
<c:when test="${mjonPayVO.payMethodTxt eq '간편결제'}">
<c:choose>
<c:when test="${not empty mjonPayVO.cardName}">
간편(<c:out value="${mjonPayVO.cardName}"/>)
</c:when>
<c:otherwise>
간편
</c:otherwise>
</c:choose>
</c:when>
<c:otherwise>
<c:out value="${mjonPayVO.payMethodTxt}"/>
</c:otherwise>
</c:choose>
</td> </td>
</tr> </tr>