|
@@ -33,7 +33,10 @@ import org.springframework.transaction.annotation.Transactional;
|
33
|
33
|
import java.io.PrintWriter;
|
34
|
34
|
import java.io.StringWriter;
|
35
|
35
|
import java.io.Writer;
|
|
36
|
+import java.text.SimpleDateFormat;
|
|
37
|
+import java.util.Date;
|
36
|
38
|
import java.util.List;
|
|
39
|
+import java.util.Locale;
|
37
|
40
|
import java.util.stream.Collectors;
|
38
|
41
|
|
39
|
42
|
@Service
|
|
@@ -160,11 +163,20 @@ public class DsptMngService extends CommonService {
|
160
|
163
|
infoEntity.setAcctBal(trscAfBal); // 계좌잔액
|
161
|
164
|
dsptMngMapper.updateLoanMgntBaseInfo4AcctBal(userId, infoEntity);
|
162
|
165
|
|
|
166
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss", Locale.getDefault());
|
|
167
|
+ Date currentDate = new Date();
|
|
168
|
+ Date nextDate = DateUtil.addSeconds(currentDate, 1);
|
|
169
|
+ String curStr = sdf.format(currentDate);
|
|
170
|
+ String nextStr = sdf.format(nextDate);
|
|
171
|
+
|
|
172
|
+ // System.out.println(curStr.substring(0, 8) + ", " + curStr.substring(8));
|
|
173
|
+ // System.out.println(nextStr.substring(0, 8) + ", " + nextStr.substring(8));
|
|
174
|
+
|
163
|
175
|
// 여신관리상세이력 등록
|
164
|
176
|
LoanMgntDtlHstEntity hstEntity1 = new LoanMgntDtlHstEntity();
|
165
|
177
|
hstEntity1.setLoanMgntUnqNo(infoEntity.getLoanMgntUnqNo());
|
166
|
|
- hstEntity1.setLoanRegDt(DateUtil.getCurrentDate());
|
167
|
|
- hstEntity1.setLoanRegTm(DateUtil.getCurrentTime());
|
|
178
|
+ hstEntity1.setLoanRegDt(curStr.substring(0, 8));
|
|
179
|
+ hstEntity1.setLoanRegTm(curStr.substring(8));
|
168
|
180
|
hstEntity1.setDpstPayDvsn(DpstPayDvsn.DEPOSIT.getCd());
|
169
|
181
|
hstEntity1.setTrscAmt(procEntity.getDpstAmt()); // 거래금액
|
170
|
182
|
hstEntity1.setTrscBfBal(trscBfBal);
|
|
@@ -208,8 +220,8 @@ public class DsptMngService extends CommonService {
|
208
|
220
|
// 3. 여신관리상세이력
|
209
|
221
|
LoanMgntDtlHstEntity hstEntity2 = new LoanMgntDtlHstEntity();
|
210
|
222
|
hstEntity2.setLoanMgntUnqNo(infoEntity.getLoanMgntUnqNo());
|
211
|
|
- hstEntity2.setLoanRegDt(DateUtil.getCurrentDate());
|
212
|
|
- hstEntity2.setLoanRegTm(String.format("%06d", (Integer.parseInt(hstEntity1.getLoanRegTm()) + 1)));
|
|
223
|
+ hstEntity2.setLoanRegDt(nextStr.substring(0, 8));
|
|
224
|
+ hstEntity2.setLoanRegTm(nextStr.substring(8));
|
213
|
225
|
hstEntity2.setDpstPayDvsn(DpstPayDvsn.PAYMENT.getCd());
|
214
|
226
|
hstEntity2.setMediaDvsn(MediaDvsn.SETTLMENT.getCd());
|
215
|
227
|
hstEntity2.setPayType(PayType.STTL_PAY.getCd());
|