瀏覽代碼

미납금관리

marseyes 2 年之前
父節點
當前提交
5d1899e99e

+ 3 - 0
src/main/java/com/oqpo/api/entity/settmng/StlMgntBaseInfoEntity.java

@@ -78,4 +78,7 @@ public class StlMgntBaseInfoEntity implements Serializable {
78 78
     @ApiModelProperty(value = "여신구분명")
79 79
     private String loanDvsnNm;
80 80
 
81
+    @ApiModelProperty(value = "PG 몰아이디")
82
+    private String mallId;
83
+
81 84
 }

+ 6 - 0
src/main/java/com/oqpo/api/service/loanmng/UnpaidMngService.java

@@ -1,6 +1,7 @@
1 1
 package com.oqpo.api.service.loanmng;
2 2
 
3 3
 
4
+import com.oqpo.api.entity.settmng.PgKiccBaseInfoEntity;
4 5
 import com.oqpo.api.entity.settmng.StlMgntBaseInfoEntity;
5 6
 import com.oqpo.api.entity.settmng.StlMgntDtlPtclEntity;
6 7
 import com.oqpo.api.mapper.loanmng.UnpaidMngMapper;
@@ -64,6 +65,11 @@ public class UnpaidMngService extends CommonService {
64 65
     /* 미납금관리 정보 조회 */
65 66
     public UnpaidMngInfoResponse selectUnpaidMngInfo(String sttlMgntUnqNo) throws Exception {
66 67
         StlMgntBaseInfoEntity entity = unpaidMngMapper.selectStlMgntBaseInfo(sttlMgntUnqNo);
68
+        // 브랜드 PG정보 조회
69
+        PgKiccBaseInfoEntity pgInfo = unpaidMngMapper.selectPgKiccBaseInfo(entity.getBrandId());
70
+        if (pgInfo != null) {
71
+            entity.setMallId(pgInfo.getMallId());
72
+        }
67 73
         return UnpaidMngInfoResponse.toDTO(entity);
68 74
     }
69 75
 

+ 7 - 0
src/main/java/com/oqpo/api/web/dto/response/loanmng/UnpaidMngInfoResponse.java

@@ -66,6 +66,11 @@ public class UnpaidMngInfoResponse {
66 66
     @ApiModelProperty(value = "수납여부(후불사용)")
67 67
     private String rcptYn;
68 68
 
69
+    @ApiModelProperty(value = "여신구분")
70
+    private String loanDvsn;
71
+    @ApiModelProperty(value = "PG 몰아이디")
72
+    private String mallId;
73
+
69 74
     public static UnpaidMngInfoResponse toDTO(StlMgntBaseInfoEntity entity) {
70 75
         if (entity == null) return null;
71 76
         return UnpaidMngInfoResponse.builder()
@@ -92,6 +97,8 @@ public class UnpaidMngInfoResponse {
92 97
                 .acctBal(entity.getAcctBal())               /* 계좌잔액 */
93 98
                 .useAmtTotal(entity.getUseAmtTotal())       /* 사용가능한도금액 */
94 99
                 .rcptYn(entity.getRcptYn())
100
+                .loanDvsn(entity.getLoanDvsn())             /* 여신구분 */
101
+                .mallId(entity.getMallId())                 /* PG몰ID */
95 102
                 .build();
96 103
     }
97 104