|
|
@@ -1,5 +1,6 @@
|
|
|
package com.poteviohealth.ym.ipos.service.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.poteviohealth.cgp.common.filter.TokenContext;
|
|
|
import com.poteviohealth.cgp.common.integrated.order.OrderFeignClient;
|
|
|
@@ -7,7 +8,6 @@ import com.poteviohealth.cgp.common.integrated.order.model.PayInfoAppOutDTO;
|
|
|
import com.poteviohealth.cgp.common.integrated.order.model.PayReceive;
|
|
|
import com.poteviohealth.cgp.common.integrated.order.model.RefundReceive;
|
|
|
import com.poteviohealth.cgp.common.model.VaultsResponse;
|
|
|
-import com.poteviohealth.cgp.common.utils.DateUtils;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.*;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.back.*;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.detail.*;
|
|
|
@@ -16,12 +16,10 @@ import com.poteviohealth.ym.ipos.service.IPaymentRecordsService;
|
|
|
import com.poteviohealth.ym.ipos.service.IPaymentService;
|
|
|
import com.poteviohealth.ym.ipos.utils.YmUtil;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
-import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* 支付
|
|
|
@@ -101,6 +99,7 @@ public class PaymentServiceImpl implements IPaymentService {
|
|
|
|
|
|
@Override
|
|
|
public VaultsResponse barcodeReverse(RefundReceive refundReceive) {
|
|
|
+ log.info("refundReceive==="+ JSON.toJSONString(refundReceive));
|
|
|
PayReverse payReverse = new PayReverse();
|
|
|
payReverse.setPos_id(code);
|
|
|
payReverse.setStore_id(refundReceive.getOperatorId().toString());
|
|
|
@@ -165,7 +164,7 @@ public class PaymentServiceImpl implements IPaymentService {
|
|
|
detail.setTx_amt(records.getTxAmt());
|
|
|
detail.setNotify_url(notifyUrl);
|
|
|
ExtendParams extendParams = new ExtendParams();
|
|
|
- extendParams.setPlan_split_date(DateFormatUtils.format(DateUtils.caculDays(new Date(),17),"yyyyMMdd"));
|
|
|
+ extendParams.setPlan_split_date(records.getPlanSplitDate());
|
|
|
detail.setExtend_params(extendParams);
|
|
|
payOrder.setUnifiedorder_request(detail);
|
|
|
PayBack back = null;
|
|
|
@@ -203,6 +202,7 @@ public class PaymentServiceImpl implements IPaymentService {
|
|
|
pr.setEndTime(payNotification.getEnd_time());
|
|
|
pr.setSource(payNotification.getSource());
|
|
|
pr.setPosId(payNotification.getPos_id());
|
|
|
+ pr.setStoreId(payNotification.getStore_id());
|
|
|
pr.setPayType(payNotification.getPay_type());
|
|
|
pr.setTransType(payNotification.getTrans_type());
|
|
|
pr.setTradeNo(payNotification.getTrade_no());
|