|
@@ -588,11 +588,11 @@ public class FsStoreAfterSalesScrmServiceImpl implements IFsStoreAfterSalesScrmS
|
|
|
if(order.getPayMoney().compareTo(BigDecimal.ZERO)==1){
|
|
|
List<FsStorePaymentScrm> payments=paymentService.selectFsStorePaymentByOrderId(order.getId());
|
|
|
if(payments!=null){
|
|
|
+ String json = configService.selectConfigByKey("store.pay");
|
|
|
+ FsPayConfigScrm fsPayConfig = JSON.parseObject(json, FsPayConfigScrm.class);
|
|
|
for(FsStorePaymentScrm payment:payments){
|
|
|
if (payment.getPayMode()==null||payment.getPayMode().equals("wx")){
|
|
|
WxPayConfig payConfig = new WxPayConfig();
|
|
|
- String json = configService.selectConfigByKey("store.pay");
|
|
|
- FsPayConfigScrm fsPayConfig = JSON.parseObject(json, FsPayConfigScrm.class);
|
|
|
payConfig.setAppId(fsPayConfig.getAppId());
|
|
|
payConfig.setMchId(fsPayConfig.getWxMchId());
|
|
|
payConfig.setMchKey(fsPayConfig.getWxMchKey());
|
|
@@ -625,6 +625,8 @@ public class FsStoreAfterSalesScrmServiceImpl implements IFsStoreAfterSalesScrmS
|
|
|
}else if (payment.getPayMode()!=null&&payment.getPayMode().equals("hf")){
|
|
|
V2TradePaymentScanpayRefundRequest request = new V2TradePaymentScanpayRefundRequest();
|
|
|
DecimalFormat df = new DecimalFormat("0.00");
|
|
|
+ request.setOrgHfSeqId(payment.getTradeNo());
|
|
|
+ request.setHuifuId(fsPayConfig.getHuifuId());
|
|
|
request.setOrdAmt(df.format(refundAmount));
|
|
|
request.setOrgReqDate(new SimpleDateFormat("yyyyMMdd").format(payment.getCreateTime()));
|
|
|
request.setReqSeqId("refund-"+payment.getPayCode());
|