|
@@ -61,6 +61,7 @@ import com.fs.pay.pay.domain.RefundResult;
|
|
|
import com.fs.pay.pay.dto.OrderQueryDTO;
|
|
|
import com.fs.pay.pay.dto.WxJspayDTO;
|
|
|
import com.fs.pay.pay.service.PayService;
|
|
|
+import com.fs.pay.pay.util.PayUtil;
|
|
|
import com.fs.store.cache.IFsUserCacheService;
|
|
|
import com.fs.store.cache.impl.IFsStoreProductCacheServiceImpl;
|
|
|
import com.fs.store.config.StoreConfig;
|
|
@@ -256,6 +257,9 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
@Autowired
|
|
|
private ShippingService shippingService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private OrderQueryService orderQueryService;
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public void syncExpressToWx() {
|
|
@@ -271,8 +275,11 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
|
|
|
OrderKey orderKey = new OrderKey();
|
|
|
orderKey.setOrderNumberType(2);
|
|
|
- orderKey.setTransactionId("1");
|
|
|
|
|
|
+ FsStorePayment fsStorePayment = paymentService.selectFsStorePaymentByCode(fsWxExpressTask.getPayCode());
|
|
|
+ if(fsStorePayment != null){
|
|
|
+ orderKey.setTransactionId(fsStorePayment.getBankTransactionId());
|
|
|
+ }
|
|
|
|
|
|
FsUser fsUser = fsUserCacheService.selectFsUserById(fsWxExpressTask.getUserId());
|
|
|
Payer payer = new Payer();
|
|
@@ -308,6 +315,19 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public void test(){
|
|
|
+ OrderQueryRequest orderQueryRequest = new OrderQueryRequest();
|
|
|
+ orderQueryRequest.setAccount("37519015371852");
|
|
|
+ orderQueryRequest.setUpOrderId("91913098449039003648");
|
|
|
+ orderQueryRequest.setIsNeedUpInfo("1");
|
|
|
+
|
|
|
+ String sign = PayUtil.sign(orderQueryRequest.toSignMap());
|
|
|
+ orderQueryRequest.setSign(sign);
|
|
|
+
|
|
|
+ OrderQueryResponse orderQueryResponse = orderQueryService.queryOrder(orderQueryRequest);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查询订单
|
|
|
*
|