Parcourir la source

미납금관리 그리드 리스트 조회 개선

marseyes il y a 2 ans
Parent
commit
c2af6d81f9

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

@@ -51,5 +51,9 @@ public class StlMgntBaseInfoEntity implements Serializable {
51 51
 
52 52
     @ApiModelProperty(value = "계좌잔액")
53 53
     private long acctBal;
54
+    @ApiModelProperty(value = "여신구분")
55
+    private String loanDvsn;
56
+    @ApiModelProperty(value = "여신구분명")
57
+    private String loanDvsnNm;
54 58
 
55 59
 }

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

@@ -51,6 +51,9 @@ public class UnpaidMngService extends CommonService {
51 51
                         .sttlReqAmt(m.getSttlReqAmt())
52 52
                         .sttlDt(m.getSttlDt())
53 53
                         .sttlAmt(m.getSttlAmt())
54
+                        .acctBal(m.getAcctBal())
55
+                        .loanDvsn(m.getLoanDvsn())
56
+                        .loanDvsnNm(m.getLoanDvsnNm())
54 57
                         .build())
55 58
                 .collect(Collectors.toList());
56 59
         return GridResponse.toDTO(gridPage, gridTotal, gridRecords, gridRows);

+ 4 - 0
src/main/java/com/oqpo/api/web/dto/response/loanmng/UnpaidMngListResponse.java

@@ -38,5 +38,9 @@ public class UnpaidMngListResponse {
38 38
     private long sttlAmt;
39 39
     @ApiModelProperty(value = "계좌잔액")
40 40
     private long acctBal;
41
+    @ApiModelProperty(value = "여신구분")
42
+    private String loanDvsn;
43
+    @ApiModelProperty(value = "여신구분명")
44
+    private String loanDvsnNm;
41 45
 
42 46
 }

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

@@ -10,7 +10,8 @@
10 10
             A.brand_id, FN_BRAND_NM(A.brand_id) AS brand_nm,
11 11
             A.sttl_st_cd, FN_CODE_NM('STTL_ST_CD', A.sttl_st_cd) AS sttl_st_nm,
12 12
             DATE_FORMAT(A.sttl_req_dt, '%Y.%m.%d') AS sttl_req_dt,
13
-            A.sttl_req_amt, A.sttl_amt, C.acct_bal
13
+            A.sttl_req_amt, A.sttl_amt, C.acct_bal,
14
+            C.loan_dvsn, FN_CODE_NM('LOAN_DVSN', C.loan_dvsn) AS loan_dvsn_nm   /* 정산타입 */
14 15
         FROM stl_mgnt_base_info A
15 16
         INNER JOIN store_base_info B ON A.brand_id = B.brand_id AND A.store_id = B.store_id
16 17
         INNER JOIN loan_mgnt_base_info C ON B.loan_mgnt_unq_no = C.loan_mgnt_unq_no