From 441a445223b4ec4a6517065d55f4a7f3bfb0a186 Mon Sep 17 00:00:00 2001
From: wanglizhong <wlz>
Date: 星期五, 02 五月 2025 23:28:18 +0800
Subject: [PATCH] feat:增加车辆及车辆配置GPS
---
ruoyi-common/src/main/java/com/ruoyi/common/utils/civilAviation/ServiceOrderUtil.java | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/civilAviation/ServiceOrderUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/civilAviation/ServiceOrderUtil.java
index ee1b6c0..e0bafdf 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/civilAviation/ServiceOrderUtil.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/civilAviation/ServiceOrderUtil.java
@@ -31,7 +31,7 @@
*/
public static ServiceOrderAppResultVo CreateServiceOrder(ServiceOrderAppVo model) {
if (AddServiceOrederAPI.isEmpty()) {
- log.info("AddServiceOrederAPI 鏈缃紝璇峰厛璁剧疆鎺ュ彛鍦板潃銆�");
+ // log.info("AddServiceOrederAPI 鏈缃紝璇峰厛璁剧疆鎺ュ彛鍦板潃銆�");
return null;
}
@@ -50,7 +50,7 @@
params.put(field.getName(), value.toString());
}
} catch (IllegalAccessException e) {
- log.error("鑾峰彇瀵硅薄灞炴�у�兼椂鍑洪敊", e);
+ // log.error("鑾峰彇瀵硅薄灞炴�у�兼椂鍑洪敊", e);
}
}
@@ -76,7 +76,7 @@
.append(value.toString());
}
} catch (Exception e) {
- log.error("鎷兼帴琛ㄥ崟鏁版嵁鏃跺嚭閿�", e);
+ // log.error("鎷兼帴琛ㄥ崟鏁版嵁鏃跺嚭閿�", e);
}
}
@@ -84,15 +84,15 @@
if (responseData != null && !responseData.isEmpty()) {
- log.info("鎺ュ彛鍝嶅簲: " + responseData);
+ // log.info("鎺ュ彛鍝嶅簲: " + responseData);
try {
// 浣跨敤 FastJSON 灏嗗搷搴旀暟鎹浆鎹负 ServiceOrderAppResultVo 瀵硅薄
return JSON.parseObject(responseData, ServiceOrderAppResultVo.class);
} catch (Exception e) {
- log.info("瑙f瀽鎺ュ彛鍝嶅簲鏁版嵁澶辫触: " + e.getMessage());
+ // log.info("瑙f瀽鎺ュ彛鍝嶅簲鏁版嵁澶辫触: " + e.getMessage());
}
} else {
- log.info("鎺ュ彛璋冪敤澶辫触锛屾湭鑾峰彇鍒版湁鏁堝搷搴旀暟鎹�");
+ // log.info("鎺ュ彛璋冪敤澶辫触锛屾湭鑾峰彇鍒版湁鏁堝搷搴旀暟鎹�");
}
return null;
@@ -107,7 +107,7 @@
*/
public static ServiceOrderAppResultVo CancelServiceOrder(ServiceOrderDelVo model) {
if (AddServiceOrederAPI.isEmpty()) {
- log.info("AddServiceOrederAPI 鏈缃紝璇峰厛璁剧疆鎺ュ彛鍦板潃銆�");
+ // log.info("AddServiceOrederAPI 鏈缃紝璇峰厛璁剧疆鎺ュ彛鍦板潃銆�");
return null;
}
@@ -126,7 +126,7 @@
params.put(field.getName(), value.toString());
}
} catch (IllegalAccessException e) {
- log.error("鑾峰彇瀵硅薄灞炴�у�兼椂鍑洪敊", e);
+ // log.error("鑾峰彇瀵硅薄灞炴�у�兼椂鍑洪敊", e);
}
}
@@ -150,21 +150,21 @@
.append(value.toString());
}
} catch (Exception e) {
- log.error("鎷兼帴琛ㄥ崟鏁版嵁鏃跺嚭閿�", e);
+ // log.error("鎷兼帴琛ㄥ崟鏁版嵁鏃跺嚭閿�", e);
}
}
String responseData = HttpUtils.sendPost(AddServiceOrederAPI, formData.toString(), "application/x-www-form-urlencoded");
if (responseData != null && !responseData.isEmpty()) {
- log.info("鎺ュ彛鍝嶅簲: " + responseData);
+ // log.info("鎺ュ彛鍝嶅簲: " + responseData);
try {
return JSON.parseObject(responseData, ServiceOrderAppResultVo.class);
} catch (Exception e) {
- log.info("瑙f瀽鎺ュ彛鍝嶅簲鏁版嵁澶辫触: " + e.getMessage());
+ // log.info("瑙f瀽鎺ュ彛鍝嶅簲鏁版嵁澶辫触: " + e.getMessage());
}
} else {
- log.info("鎺ュ彛璋冪敤澶辫触锛屾湭鑾峰彇鍒版湁鏁堝搷搴旀暟鎹�");
+ // log.info("鎺ュ彛璋冪敤澶辫触锛屾湭鑾峰彇鍒版湁鏁堝搷搴旀暟鎹�");
}
return null;
@@ -173,9 +173,9 @@
public static void main(String[] args) {
// 鍒涘缓鏈嶅姟鍗曞簲鐢ㄥ�煎璞″苟璁剧疆鐩稿叧妯℃嫙灞炴��
-// test();
+ test();
- testCancelServiceOrder();
+// testCancelServiceOrder();
}
//娴嬭瘯鍙栨秷鏈嶅姟鍗�
@@ -211,8 +211,8 @@
model.setPtAge((int) (Math.random() * 100) + "宀�"); // 闅忔満鐢熸垚鎮h�呭勾榫�
model.setPtSex(Math.random() > 0.5 ? "鐢�" : "濂�"); // 闅忔満鐢熸垚鎮h�呮�у埆
model.setPtNat("涓浗"); // 闅忔満璁剧疆鎮h�呭浗绫�
- model.setOutHosp("闅忔満杞嚭鍖婚櫌" + (int) (Math.random() * 10)); // 闅忔満璁剧疆杞嚭鍖婚櫌
- model.setInHosp("闅忔満杞叆鍖婚櫌" + (int) (Math.random() * 10)); // 闅忔満璁剧疆杞叆鍖婚櫌
+ model.setOutHosp("骞垮窞澶╂渤"); // 闅忔満璁剧疆杞嚭鍖婚櫌
+ model.setInHosp("骞垮窞娴风彔"); // 闅忔満璁剧疆杞叆鍖婚櫌
model.setPtServices("绉戝" + (int) (Math.random() * 10)); // 闅忔満璁剧疆鎮h�呮墍鍦ㄧ瀹�
model.setPtDiagnosis("闅忔満璇婃柇淇℃伅"); // 闅忔満璁剧疆璇婃柇淇℃伅
model.setCondition("闅忔満澶囨敞淇℃伅"); // 闅忔満璁剧疆澶囨敞淇℃伅
--
Gitblit v1.9.1