marseyes hace 2 años
padre
commit
455091bb2d

+ 1 - 0
src/main/java/com/oqpo/api/service/loanmng/EasypayPaymentService.java

@@ -534,6 +534,7 @@ public class EasypayPaymentService extends CommonService {
534 534
         dsptMngMapper.insertLoanMgntDsptProcInfo(userId, entity);
535 535
 
536 536
         // 5. 정산관리기본정보 업데이트
537
+        easypayPaymentRequest.setR_amount(Long.parseLong(r_amount));
537 538
         unpaidMngMapper.updateStlMgntBaseInfo4Rcpt(userId, easypayPaymentRequest);
538 539
     }
539 540
 

+ 5 - 0
src/main/java/com/oqpo/api/web/dto/request/loanmng/EasypayPaymentRequest.java

@@ -1,5 +1,6 @@
1 1
 package com.oqpo.api.web.dto.request.loanmng;
2 2
 
3
+import com.fasterxml.jackson.annotation.JsonIgnore;
3 4
 import com.fasterxml.jackson.annotation.JsonProperty;
4 5
 import io.swagger.annotations.ApiModelProperty;
5 6
 import lombok.Data;
@@ -87,4 +88,8 @@ public class EasypayPaymentRequest {
87 88
     @JsonProperty("sp_sessionkey")
88 89
     private String sp_sessionkey;
89 90
 
91
+    @ApiModelProperty(value = "결제금액", required = false)
92
+    @JsonIgnore
93
+    private Long r_amount;
94
+
90 95
 }

+ 3 - 2
src/main/resources/mybatis/sqlmaps/loanmng/UnpaidMng.xml

@@ -199,8 +199,9 @@
199 199
     <update id="updateStlMgntBaseInfo4Rcpt" >
200 200
         /* UnpaidMngMapper.updateStlMgntBaseInfo4Rcpt */
201 201
         UPDATE stl_mgnt_base_info SET
202
-            rcpt_yn = 'Y',
203
-            rcpt_dt = DATE_FORMAT(NOW(),'%Y%m%d'),
202
+            rcpt_yn = 'Y',                                                          /* 수납여부 */
203
+            rcpt_dt = DATE_FORMAT(NOW(),'%Y%m%d'),                                  /* 수납일자 */
204
+            rcpt_amt = IFNULL(rcpt_amt, 0) + #{easypayPaymentRequest.r_amount},     /* 수납금액 : 결제금액을 더한다. */
204 205
             sys_chg_dttm = NOW(),
205 206
             sys_chg_id = #{userId}
206 207
         WHERE sttl_mgnt_unq_no = #{easypayPaymentRequest.sttlMgntUnqNo}