|
|
@@ -117,17 +117,21 @@ public class TsfGiftcardService {
|
|
|
giftcard.setResultVal(result);
|
|
|
giftcardDao.saveGiftcardApi(giftcard);
|
|
|
throw new IllegalArgumentException("시스템 오류입니다.");
|
|
|
- } else if(result.equals("00")){
|
|
|
-
|
|
|
- giftcard.setResultVal(result);
|
|
|
+ } else{
|
|
|
+
|
|
|
+ giftcard.setResultVal("00");
|
|
|
giftcardDao.saveGiftcardApi(giftcard);
|
|
|
|
|
|
// 성공일 경우 tb_cust_giftcard insert
|
|
|
String[] param = result.split("[|]");
|
|
|
+ // [2021-04-01, 오전, 12:00:00]
|
|
|
+ String[] param2 = param[2].split(" ");
|
|
|
+ String[] param3 = param[3].split(" ");
|
|
|
|
|
|
giftcard.setChgGfcdAmt(Integer.parseInt(param[1])); // 승인금액
|
|
|
- giftcard.setUseStDate(param[2]);
|
|
|
- giftcard.setUseExpDate(param[3]);
|
|
|
+ giftcard.setRmGfcdAmt(Integer.parseInt(param[1])); // 승인금액
|
|
|
+ giftcard.setUseStDate(param2[0]);
|
|
|
+ giftcard.setUseExpDate(param3[0]);
|
|
|
|
|
|
giftcardDao.getGiftcardUseConfirm(giftcard);
|
|
|
}
|