|
|
@@ -17,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.thymeleaf.util.StringUtils;
|
|
|
|
|
|
import com.gagaframework.web.parameter.GagaMap;
|
|
|
+import com.style24.core.biz.dao.TscOrderDao;
|
|
|
import com.style24.core.biz.service.TscKakaoPayService;
|
|
|
import com.style24.core.biz.service.TscKcpService;
|
|
|
import com.style24.core.biz.service.TscNaverPayService;
|
|
|
@@ -46,6 +47,9 @@ public class TsfOrderService {
|
|
|
|
|
|
@Autowired
|
|
|
private TscKcpService coreKcpService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TscOrderDao coreOrderDao;
|
|
|
|
|
|
@Autowired
|
|
|
private TscKakaoPayService coreKakaoPayService;
|
|
|
@@ -257,8 +261,9 @@ public class TsfOrderService {
|
|
|
result.setPaySq(param.getPaySq());
|
|
|
result.setUpdNo(param.getCustNo());
|
|
|
result.setRegNo(param.getCustNo());
|
|
|
+ result.setPayGb("O");
|
|
|
|
|
|
- if(updatePaymentForOrderFinished(result) < 1) {
|
|
|
+ if(coreOrderDao.insertPayment(result) < 1) {
|
|
|
// TODO 전체 취소 로직 추가
|
|
|
if(TscConstants.PgGb.KCP.value().equals(param.getPgGb()) || TscConstants.PgGb.PAYCO.value().equals(param.getPgGb())) {
|
|
|
coreKcpService.kcpPayRollBack(result, request);
|