Browse Source

模拟走车——调用命令

linbl 2 weeks ago
parent
commit
82e2d7db9f
1 changed files with 17 additions and 6 deletions
  1. 17 6
      src/main/java/com/ruoyi/web/Test.java

+ 17 - 6
src/main/java/com/ruoyi/web/Test.java

@@ -4,19 +4,30 @@ import com.ruoyi.web.config.AesEncryptUtil;
 
 public class Test {
 
-    public static void main(String[] args) {//LYZX002  //LYZX005  //DLPKK02   //DLPKK04
-        String jin = "{\"chnlNo\":\"LYZX001\",\"containerStatus\":0,\"crossCode\":\"LYZX001\",\"gateNo\":\"11\",\"grossWt\":16000.0,\"ieFlag\":\"I\",\"isEmpty\":0,\"isLoaded\":0,\"isSendPlaceCode\":1,\"jsStatus\":0,\"placeCode\":\"LYZX002\",\"steps\":[{\"api\":\"reservationToSorJ_Test\",\"name\":\"集散混合\",\"remark\":\"\"}],\"veLicenseNo\":\"桂NCY990\"}";
+    /**过磅地点
+     LYZX002  联运进(内贸)
+     LYZX005  联运出(内贸)
+     DLPKK02  卡0进(外贸)
+     DLPKK04  卡0出(外贸)
+     */
+    public static void main(String[] args) {
+        String jin = "{\"grossWt\":16000.0,\"placeCode\":\"LYZX002\",\"veLicenseNo\":\"桂NCY990\",\"chnlNo\":\"LYZX001\",\"containerStatus\":0,\"crossCode\":\"LYZX001\",\"gateNo\":\"11\",\"ieFlag\":\"I\",\"isEmpty\":0,\"isLoaded\":0,\"isSendPlaceCode\":1,\"jsStatus\":0,\"steps\":[{\"api\":\"reservationToSorJ_Test\",\"name\":\"集散混合\",\"remark\":\"\"}]}";
         String jinencrypt = AesEncryptUtil.AESEncrypt(jin);
         System.out.println("进卡口:"+jinencrypt);
         System.out.println("--------------");
-        String chu = "{\"chnlNo\":\"LYZX003\",\"containerStatus\":1,\"crossCode\":\"LYZX003\",\"gateNo\":\"14\",\"grossWt\":30000.0,\"ieFlag\":\"E\",\"isEmpty\":0,\"isLoaded\":0,\"isSendPlaceCode\":1,\"jsStatus\":1,\"placeCode\":\"LYZX005\",\"steps\":[{\"api\":\"reservationToSorJ_Test\",\"name\":\"集散混合\",\"remark\":\"\"}],\"veLicenseNo\":\"桂NCY990\"}";
+        String chu = "{\"grossWt\":30000.0,\"placeCode\":\"LYZX005\",\"veLicenseNo\":\"桂NCY990\",\"chnlNo\":\"LYZX003\",\"containerStatus\":1,\"crossCode\":\"LYZX003\",\"gateNo\":\"14\",\"ieFlag\":\"E\",\"isEmpty\":0,\"isLoaded\":0,\"isSendPlaceCode\":1,\"jsStatus\":1,\"steps\":[{\"api\":\"reservationToSorJ_Test\",\"name\":\"集散混合\",\"remark\":\"\"}]}";
         String chuencrypt = AesEncryptUtil.AESEncrypt(chu);
         System.out.println("出卡口:"+chuencrypt);
 
     }
 }
-/**
+/**模拟走车——调用命令
+ 调用流程命令:
+curl "http://127.0.0.1:9292/interaction/process" -H "Content-Type:application/json;charset=UTF-8" -X POST -d 5A4832FB94A6ADBF80595676CED2D268D824E48FA85C70D10489D05F4D1A16088E058043944CFB4658B888CEB429455C867BC76EE6068EFB72C3D8CAEFDA078821C912350EFDDA1A837CD84C5A2C54A8F0F8F2DDFA42E99D0BB3E61020393FB0D4E7C1992C45B8BD812C94A6C074FEF87307C36F4C0F4C92AD9DC5C521EF94E392B3B2C7C08480439E36BEC226EEE9591CE078328A49FC076532CC509A55A7BA56411DCD5D2CE7924C54265C548B46C15E512B9A95442578CAC1C71A31DEC443229EFF20DBCAB63CF40C30E59E712DB55662C8272ED29C1B84678EFD60783777049A1A47AB160071525E55744D2565F0B1447F0F69A49C211A1FC43C433C007636506613043BE0F17EB5296FA3D03900E2C6E90C1C418F1141F83C869CC8A5F3891255C9D7F4C1CFCBDEF2C958B6258E
 
-curl "http://127.0.0.1:9292/interaction/process" -H "Content-Type:application/json;charset=UTF-8" -X POST -d C59EDA96487C750AEE056B41FE888FDFB228F42ECCDEE7C288E1B6A84405F9F2AF3505556F25D15BABAAD97631A0DE536CC9D5E02F94C2FFFB754BC12F0D2F75C556994960087433D3D8F358394C20D59FB2D668B3D73A832136A394624F125C4E9DD496E294EB9555C71D29C1967C5F56411DCD5D2CE7924C54265C548B46C15E512B9A95442578CAC1C71A31DEC443229EFF20DBCAB63CF40C30E59E712DB59948BFF5AF3E8C01177AA07BF0929FF67AE79E9AF08AF24E32C3A2E0CB522CCE1E08C9B6DD84E4AA7FDBCAD73B6C9EE0EBA004FB14286D032BB9C8D5D0D81C555C97A443F0FDF635B28AEF5BE28ECEBE6AF0DCB4770B66F4C4ED6149800E9400ED6D89A4C09025497606449659BF81C82A6CF2F40F7542B5EEBB4E4E4859F670AEFB29BEB2BC2DECF1CB56D259ACC00C
+登录命令:
+ curl "http://10.3.2.214:8097/api/v1/Common/LogOn" -H "Content-Type:application/json;charset=UTF-8" -X POST -d '{"UserName":"100011","AuthToken":"7mKQSmO83s8sMhu6v+/r43LU2AXida1fZWgUL9JsG98="}'
+进港预约校验命令:
+ curl "http://10.3.2.214:8097/api/v1/QZ/WMS/TruckIn/EnterpriseGate/Verification?TruckNo=桂NCY990&PLACE_CODE=LYZX002" -X GET -H "Content-Type:application/json;charset=UTF-8" -H "Authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJUb2tlbklkIjoiODk5NTIxNGU3MzYyNDMzY2JlZWRlYWI2OTk2YTQ1MjYiLCJOYW1lIjoiMTAwMDExIiwibmJmIjoxNzMwMjc0NzI2LCJleHAiOjE3MzA4Nzk1MjYsImlhdCI6MTczMDI3NDcyNiwiaXNzIjoiaGI1Ni5jb20iLCJhdWQiOiJ3ZWJBcGkifQ.EMoFIiQm-FJ7Y-7S3aSLK8M1BhQEuNj4lj1rd9kr9Ag"
 
- */
+  */