|
@@ -9,7 +9,6 @@ import com.oqpo.api.enums.MediaDvsn;
|
9
|
9
|
import com.oqpo.api.enums.PayType;
|
10
|
10
|
import com.oqpo.api.enums.SttlStCd;
|
11
|
11
|
import com.oqpo.api.mapper.loanmng.DsptMngMapper;
|
12
|
|
-import com.oqpo.api.mapper.loanmng.UnpaidMngMapper;
|
13
|
12
|
import com.oqpo.api.mapper.sttlmng.SttlReqMapper;
|
14
|
13
|
import com.oqpo.api.mapper.sttlmng.SttlStateMapper;
|
15
|
14
|
import com.oqpo.api.service.CommonService;
|
|
@@ -39,9 +38,6 @@ public class SttlStateService extends CommonService {
|
39
|
38
|
@Autowired
|
40
|
39
|
private DsptMngMapper dsptMngMapper;
|
41
|
40
|
|
42
|
|
- @Autowired
|
43
|
|
- private UnpaidMngMapper unpaidMngMapper;
|
44
|
|
-
|
45
|
41
|
/*
|
46
|
42
|
정산요청 그리드 리스트 조회
|
47
|
43
|
*/
|
|
@@ -89,12 +85,10 @@ public class SttlStateService extends CommonService {
|
89
|
85
|
StlMgntBaseInfoEntity entity = sttlReqMapper.selectStlMgntBaseInfo(sttlConfirmRequest.getSttlMgntUnqNo());
|
90
|
86
|
|
91
|
87
|
// 정산관리기본정보 - 정산상태코드 변경
|
92
|
|
- StlMgntBaseInfoEntity stlEntity = new StlMgntBaseInfoEntity();
|
93
|
|
- stlEntity.setSttlMgntUnqNo(sttlConfirmRequest.getSttlMgntUnqNo());
|
94
|
|
- stlEntity.setSttlStCd(SttlStCd.STTL_CONFIRM.getCd());
|
95
|
|
- stlEntity.setSttlDt(DateUtil.getCurrentDate());
|
96
|
|
- stlEntity.setSttlAmt(entity.getSttlReqAmt()); // 정산요청금액을 정산금액으로 지정한다.
|
97
|
|
- sttlReqMapper.updateStlMgntBaseInfo4SttlConfirm(userId, stlEntity);
|
|
88
|
+ entity.setSttlStCd(SttlStCd.STTL_CONFIRM.getCd());
|
|
89
|
+ entity.setSttlDt(DateUtil.getCurrentDate());
|
|
90
|
+ entity.setSttlAmt(entity.getSttlReqAmt()); // 정산요청금액을 정산금액으로 지정한다.
|
|
91
|
+ sttlReqMapper.updateStlMgntBaseInfo4SttlConfirm(userId, entity);
|
98
|
92
|
|
99
|
93
|
if ("N".equals(entity.getRcptYn())) { // 수납여부가 N인 경우
|
100
|
94
|
// 매장의 계좌잔액이 있은 경우 정산지급 처리를 한다.
|
|
@@ -134,9 +128,9 @@ public class SttlStateService extends CommonService {
|
134
|
128
|
dsptMngMapper.insertLoanMgntDtlHst(userId, hstEntity);
|
135
|
129
|
|
136
|
130
|
// 3. 정산관리기본정보 수납처리
|
137
|
|
- stlEntity.setRcptYn(rcptYn); // 수납여부
|
138
|
|
- stlEntity.setRcptAmt(rcptAmt); // 수납금액
|
139
|
|
- sttlReqMapper.updateStlMgntBaseInfo4Rcpt(userId, stlEntity);
|
|
131
|
+ entity.setRcptYn(rcptYn); // 수납여부
|
|
132
|
+ entity.setRcptAmt(entity.getRcptAmt() + rcptAmt); // 수납금액
|
|
133
|
+ sttlReqMapper.updateStlMgntBaseInfo4Rcpt(userId, entity);
|
140
|
134
|
}
|
141
|
135
|
}
|
142
|
136
|
}
|