|
@@ -5,9 +5,10 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.fs.FSAdminApplication;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.exception.CustomException;
|
|
|
-import com.fs.erp.dto.GetInitTokenRequestDTO;
|
|
|
-import com.fs.erp.dto.GetInitTokenResponseDTO;
|
|
|
+import com.fs.erp.dto.*;
|
|
|
import com.fs.erp.http.JstErpHttpService;
|
|
|
+import com.fs.erp.service.IErpGoodsService;
|
|
|
+import com.fs.erp.service.IErpOrderService;
|
|
|
import com.fs.erp.utils.SignUtil;
|
|
|
import com.fs.huifuPay.dto.*;
|
|
|
import com.fs.pay.pay.domain.OrderResult;
|
|
@@ -92,9 +93,32 @@ public class FsStorePaymentControllerTest {
|
|
|
@Autowired
|
|
|
private IFsStoreOrderService fsStoreOrderService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IErpOrderService erpOrderService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IErpGoodsService erpGoodsService;
|
|
|
+
|
|
|
@Test
|
|
|
public void pushErp() throws ParseException {
|
|
|
- fsStoreOrderService.createOmsOrder(1332678L);
|
|
|
+ fsStoreOrderService.createOmsOrder(1332687L);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void getErpInfo() {
|
|
|
+ ErpOrderQueryRequert request = new ErpOrderQueryRequert();
|
|
|
+ request.setCode("28377458");
|
|
|
+ ErpOrderQueryResponse order = erpOrderService.getOrder(request);
|
|
|
+ log.info("订单信息: {}",order);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void getGoods(){
|
|
|
+ ErpGoodsQueryRequert erpGoodsQueryRequert = new ErpGoodsQueryRequert();
|
|
|
+ erpGoodsQueryRequert.setCode("105220");
|
|
|
+ ErpGoodsQueryResponse goods = erpGoodsService.getGoods(erpGoodsQueryRequert);
|
|
|
+
|
|
|
+ log.info("查询结果: {}",goods);
|
|
|
}
|
|
|
@Test
|
|
|
public void initJstToken() {
|