Browse Source

【深爱-物流-创建订单】

DINGYL 10 months ago
parent
commit
ac86e75bd9

+ 3 - 0
src/main/java/com/uas/eis/service/Impl/ERPServiceImpl.java

@@ -831,6 +831,8 @@ public class ERPServiceImpl implements ERPService {
         String method="open.api.openCommon.batchOrder";
         String bizBody =JSONArray.toJSONString(orderInfo);
         String response = null;
+        System.out.println("appkey:"+appkey);
+        System.out.println("appSecret:"+appSecret);
         try {
             response = KyeDefaultOpenApi.builder
                             (appkey, appSecret) //应用Key,密钥
@@ -893,6 +895,7 @@ public class ERPServiceImpl implements ERPService {
                 creatOrder_SF(logisticsPrice);
             }else if("德邦".equals(logisticsPrice.getLp_FinalCompany())){
                 creatOrder_DoP(logisticsPrice);
+            }else if("跨越".equals(logisticsPrice.getLp_FinalCompany())){
                 try {
                     creatOrder_KY(logisticsPrice);
                 } catch (IOException e) {

+ 1 - 1
src/test/java/com/uas/eis/UasEisApplicationTests.java

@@ -51,7 +51,7 @@ public class UasEisApplicationTests {
 
 	@Test
 	public void TestCreatOrder(){
-		erpService.creatOrder("SZSI_P",3268);//3267
+		erpService.creatOrder("SZSI_P", 3283);//3268顺丰  3283跨越
 	}
 
 	@Test