환율적용 원화 결제 적용(2)

This commit is contained in:
김현욱
2026-03-12 15:37:21 +09:00
parent df09e3911d
commit 2edb9c30c7
4 changed files with 14 additions and 3 deletions

View File

@@ -470,6 +470,8 @@ public interface BOPurchsMapper {
*/ */
public String selectRlSetleAmt(DataMap param); public String selectRlSetleAmt(DataMap param);
public String selectWonRlSetleAmt(DataMap param);
/** /**
* 0원 상품 포함시 짜투리 업데이트 ( 장바구니, 마일리지, 애누리 ) * 0원 상품 포함시 짜투리 업데이트 ( 장바구니, 마일리지, 애누리 )
* @param itemOptnVO * @param itemOptnVO

View File

@@ -103,7 +103,8 @@ public class BOPayService{
put("ordrInnb", OrderInnb); put("ordrInnb", OrderInnb);
}}; }};
return mapper.selectRlSetleAmt(paramMap); // return mapper.selectRlSetleAmt(paramMap);
return mapper.selectWonRlSetleAmt(paramMap);
} }
/* ============================================================================== */ /* ============================================================================== */

View File

@@ -2686,6 +2686,14 @@ FROM (
AND FO.SOPMAL_CD = #{sopmalCd} AND FO.SOPMAL_CD = #{sopmalCd}
</select> </select>
<!-- 관리자 주문 > 실결제금액조회 -->
<select id="selectWonRlSetleAmt" parameterType="dataMap" resultType="String">
SELECT FLOOR (FO.WON_RL_SETLE_AMT) AS RL_SETLE_AMT
FROM GC_ORDER FO
WHERE FO.ORDR_INNB = #{ordrInnb}
AND FO.SOPMAL_CD = #{sopmalCd}
</select>
<!-- 0원 상품 포함시 짜투리 업데이트 ( 장바구니, 마일리지, 애누리 ) --> <!-- 0원 상품 포함시 짜투리 업데이트 ( 장바구니, 마일리지, 애누리 ) -->
<update id="updateOrdrItemOptnRestAmtUpdt"> <update id="updateOrdrItemOptnRestAmtUpdt">

View File

@@ -30,7 +30,7 @@
function create_goodInfo() { function create_goodInfo() {
if(document.order_info.pay_mod.value=='Y') { if(document.order_info.pay_mod.value=='Y') {
var chr31 = String.fromCharCode(31); // ASCII 코드값 31 var chr31 = String.fromCharCode(31); // ASCII 코드값 31
var good_info = "seq=1" + chr31 + "ordr_numb=0001" + chr31 + "good_name=${data.setle.goodsNm}" + chr31 + "good_cntx=2" + chr31 + "good_amtx=${data.setle.setleAmt}"; var good_info = "seq=1" + chr31 + "ordr_numb=0001" + chr31 + "good_name=${data.setle.goodsNm}" + chr31 + "good_cntx=2" + chr31 + "good_amtx=${data.setle.wonSetleAmt}";
document.order_info.good_info.value = good_info; document.order_info.good_info.value = good_info;
} }
} }
@@ -106,7 +106,7 @@
<!-- ========== 에스크로 필수정보 End =============================== --> <!-- ========== 에스크로 필수정보 End =============================== -->
<input type="hidden" name="good_name" value="${data.setle.goodsNm}"/> <!-- 상품명 --> <input type="hidden" name="good_name" value="${data.setle.goodsNm}"/> <!-- 상품명 -->
<input type="hidden" name="good_mny" value="${data.setle.setleAmt}"/> <!-- 결제 금액 --> <input type="hidden" name="good_mny" value="${data.setle.wonSetleAmt}"/> <!-- 결제 금액 -->
<input type="hidden" name="buyr_name" value="${data.ordr.ordrrNm}"/> <!-- 주문자 이름 --> <input type="hidden" name="buyr_name" value="${data.ordr.ordrrNm}"/> <!-- 주문자 이름 -->
<input type="hidden" name="buyr_mail" value="${data.ordr.ordrrEmail}"/> <!-- 주문자 이메일 --> <input type="hidden" name="buyr_mail" value="${data.ordr.ordrrEmail}"/> <!-- 주문자 이메일 -->
<input type="hidden" name="buyr_tel2" value="${data.ordr.ordrrMbtlnb}"/> <!-- 주문자 휴대폰번호 --> <input type="hidden" name="buyr_tel2" value="${data.ordr.ordrrMbtlnb}"/> <!-- 주문자 휴대폰번호 -->