|
@@ -8,6 +8,7 @@ import com.oqpo.api.entity.loanmng.LoanMgntDtlHstEntity;
|
8
|
8
|
import com.oqpo.api.entity.oper.UserMngEntity;
|
9
|
9
|
import com.oqpo.api.entity.settmng.PgKiccBaseInfoEntity;
|
10
|
10
|
import com.oqpo.api.entity.settmng.PgKiccPayPtclEntity;
|
|
11
|
+import com.oqpo.api.entity.settmng.StlMgntBaseInfoEntity;
|
11
|
12
|
import com.oqpo.api.entity.stinfo.BrandEntity;
|
12
|
13
|
import com.oqpo.api.enums.*;
|
13
|
14
|
import com.oqpo.api.exception.GlobalException;
|
|
@@ -19,6 +20,7 @@ import com.oqpo.api.service.CommonService;
|
19
|
20
|
import com.oqpo.api.util.DateUtil;
|
20
|
21
|
import com.oqpo.api.util.StringUtil;
|
21
|
22
|
import com.oqpo.api.web.dto.request.loanmng.EasypayPaymentCreateRequest;
|
|
23
|
+import com.oqpo.api.web.dto.request.loanmng.EasypayPaymentReqData;
|
22
|
24
|
import com.oqpo.api.web.dto.request.loanmng.EasypayPaymentRequest;
|
23
|
25
|
import com.oqpo.api.web.dto.response.loanmng.EasypayPaymentCreateResponse;
|
24
|
26
|
import com.oqpo.api.web.dto.response.loanmng.EasypayPaymentResponse;
|
|
@@ -29,6 +31,7 @@ import org.springframework.stereotype.Service;
|
29
|
31
|
import org.springframework.transaction.annotation.Transactional;
|
30
|
32
|
|
31
|
33
|
import javax.servlet.http.HttpServletRequest;
|
|
34
|
+import java.util.List;
|
32
|
35
|
|
33
|
36
|
@Service
|
34
|
37
|
@Slf4j
|
|
@@ -93,6 +96,8 @@ public class EasypayPaymentService extends CommonService {
|
93
|
96
|
try {
|
94
|
97
|
log.info("[REQUEST_PAYMENT] REQ : " + easypayPaymentRequest.toString());
|
95
|
98
|
|
|
99
|
+ // TODO 결제금액과 미납금 비교
|
|
100
|
+
|
96
|
101
|
/* -------------------------------------------------------------------------- */
|
97
|
102
|
/* ::: 처리구분 설정 */
|
98
|
103
|
/* -------------------------------------------------------------------------- */
|
|
@@ -534,8 +539,13 @@ public class EasypayPaymentService extends CommonService {
|
534
|
539
|
dsptMngMapper.insertLoanMgntDsptProcInfo(userId, entity);
|
535
|
540
|
|
536
|
541
|
// 5. 정산관리기본정보 업데이트
|
537
|
|
- easypayPaymentRequest.setR_amount(Long.parseLong(r_amount));
|
538
|
|
- unpaidMngMapper.updateStlMgntBaseInfo4Rcpt(userId, easypayPaymentRequest);
|
|
542
|
+ // easypayPaymentRequest.setR_amount(Long.parseLong(r_amount));
|
|
543
|
+ List<EasypayPaymentReqData> reqDataList = easypayPaymentRequest.getReqDataList();
|
|
544
|
+ for (EasypayPaymentReqData reqData : reqDataList) {
|
|
545
|
+ StlMgntBaseInfoEntity stlEntity = new StlMgntBaseInfoEntity();
|
|
546
|
+ stlEntity.setSttlMgntUnqNo(reqData.getSttlMgntUnqNo()); // 정산관리고유번호
|
|
547
|
+ unpaidMngMapper.updateStlMgntBaseInfo4Rcpt(userId, stlEntity);
|
|
548
|
+ }
|
539
|
549
|
}
|
540
|
550
|
|
541
|
551
|
}
|