|
@@ -1,34 +1,17 @@
|
1
|
1
|
package com.oqpo.api.service.loanmng;
|
2
|
2
|
|
3
|
3
|
|
4
|
|
-import com.oqpo.api.entity.loanmng.LoanMgntBaseInfoEntity;
|
5
|
|
-import com.oqpo.api.entity.loanmng.LoanMgntDsptProcEntity;
|
6
|
|
-import com.oqpo.api.entity.loanmng.LoanMgntDtlHstEntity;
|
7
|
|
-import com.oqpo.api.entity.oper.UserMngEntity;
|
8
|
4
|
import com.oqpo.api.entity.settmng.StlMgntBaseInfoEntity;
|
9
|
5
|
import com.oqpo.api.entity.settmng.StlMgntDtlPtclEntity;
|
10
|
|
-import com.oqpo.api.enums.DpstPayDvsn;
|
11
|
|
-import com.oqpo.api.enums.DpstStCd;
|
12
|
|
-import com.oqpo.api.enums.MediaDvsn;
|
13
|
|
-import com.oqpo.api.exception.GlobalException;
|
14
|
|
-import com.oqpo.api.mapper.loanmng.DsptMngMapper;
|
15
|
6
|
import com.oqpo.api.mapper.loanmng.UnpaidMngMapper;
|
16
|
|
-import com.oqpo.api.mapper.oper.UserMngMapper;
|
17
|
7
|
import com.oqpo.api.service.CommonService;
|
18
|
|
-import com.oqpo.api.util.DateUtil;
|
19
|
8
|
import com.oqpo.api.web.dto.request.GridRequest;
|
20
|
|
-import com.oqpo.api.web.dto.request.loanmng.ApproveDsptRequest;
|
21
|
|
-import com.oqpo.api.web.dto.request.loanmng.RejectDsptRequest;
|
22
|
|
-import com.oqpo.api.web.dto.request.loanmng.RemoveDsptRequest;
|
23
|
|
-import com.oqpo.api.web.dto.request.loanmng.ReqDsptRequest;
|
24
|
9
|
import com.oqpo.api.web.dto.response.GridResponse;
|
25
|
|
-import com.oqpo.api.web.dto.response.loanmng.DsptMngInfoResponse;
|
26
|
|
-import com.oqpo.api.web.dto.response.loanmng.DsptMngListResponse;
|
27
|
10
|
import com.oqpo.api.web.dto.response.loanmng.UnpaidMngInfoResponse;
|
|
11
|
+import com.oqpo.api.web.dto.response.loanmng.UnpaidMngListResponse;
|
28
|
12
|
import lombok.extern.slf4j.Slf4j;
|
29
|
13
|
import org.springframework.beans.factory.annotation.Autowired;
|
30
|
14
|
import org.springframework.stereotype.Service;
|
31
|
|
-import org.springframework.transaction.annotation.Transactional;
|
32
|
15
|
|
33
|
16
|
import java.util.List;
|
34
|
17
|
import java.util.stream.Collectors;
|
|
@@ -40,13 +23,10 @@ public class UnpaidMngService extends CommonService {
|
40
|
23
|
@Autowired
|
41
|
24
|
private UnpaidMngMapper unpaidMngMapper;
|
42
|
25
|
|
43
|
|
- @Autowired
|
44
|
|
- private UserMngMapper userMngMapper;
|
45
|
|
-
|
46
|
26
|
/*
|
47
|
27
|
미납금관리 그리드 리스트 조회
|
48
|
28
|
*/
|
49
|
|
- public GridResponse selectDsptMngGridList(String sBrandId, String sStoreId, String fromDt, String toDt, GridRequest gridRequest) throws Exception {
|
|
29
|
+ public GridResponse selectUnpaidMngGridList(String sBrandId, String sStoreId, String fromDt, String toDt, GridRequest gridRequest) throws Exception {
|
50
|
30
|
int gridPage = gridRequest.getGridPage();
|
51
|
31
|
int gridSize = gridRequest.getGridSize();
|
52
|
32
|
|
|
@@ -54,13 +34,19 @@ public class UnpaidMngService extends CommonService {
|
54
|
34
|
int gridTotal = fnCalculateGridTotal(gridSize, gridRecords);
|
55
|
35
|
List<StlMgntBaseInfoEntity> entities = unpaidMngMapper.selectUnpaidMngGridList(sBrandId, sStoreId, fromDt, toDt, gridRequest);
|
56
|
36
|
List<Object> gridRows = entities.stream()
|
57
|
|
- .map(m -> DsptMngListResponse.builder()
|
|
37
|
+ .map(m -> UnpaidMngListResponse.builder()
|
58
|
38
|
.viewCd("R")
|
59
|
|
-
|
60
|
|
- .storeId(m.getStoreId())
|
61
|
|
- .storeNm(m.getStoreNm())
|
|
39
|
+ .sttlMgntUnqNo(m.getSttlMgntUnqNo())
|
|
40
|
+ .sttlReqDt(m.getSttlReqDt())
|
62
|
41
|
.brandId(m.getBrandId())
|
63
|
42
|
.brandNm(m.getBrandNm())
|
|
43
|
+ .storeId(m.getStoreId())
|
|
44
|
+ .storeNm(m.getStoreNm())
|
|
45
|
+ .sttlStCd(m.getSttlStCd())
|
|
46
|
+ .sttlStNm(m.getSttlStNm())
|
|
47
|
+ .sttlReqAmt(m.getSttlReqAmt())
|
|
48
|
+ .sttlDt(m.getSttlDt())
|
|
49
|
+ .sttlAmt(m.getSttlAmt())
|
64
|
50
|
.build())
|
65
|
51
|
.collect(Collectors.toList());
|
66
|
52
|
return GridResponse.toDTO(gridPage, gridTotal, gridRecords, gridRows);
|