From 75a2623173bcc4a235aa1f99f7ef28519186160b Mon Sep 17 00:00:00 2001 From: yanghb <yanghb> Date: 星期五, 21 四月 2023 11:24:25 +0800 Subject: [PATCH] 代码调整 --- UserTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/MinistryOfTransport.java | 226 ++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 194 insertions(+), 32 deletions(-) diff --git a/UserTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/MinistryOfTransport.java b/UserTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/MinistryOfTransport.java index b9912d7..38b11ab 100644 --- a/UserTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/MinistryOfTransport.java +++ b/UserTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/MinistryOfTransport.java @@ -2,8 +2,10 @@ import com.alibaba.fastjson.JSONObject; +import com.stylefeng.guns.modular.system.util.httpClinet.HttpClientUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; +import sun.security.krb5.internal.PAData; import java.text.SimpleDateFormat; import java.util.Date; @@ -60,7 +62,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -83,7 +90,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -111,7 +123,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -144,7 +161,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -174,7 +196,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -220,7 +247,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -275,7 +307,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -304,7 +341,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -329,7 +371,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -389,7 +436,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -418,7 +470,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -447,7 +504,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -475,7 +537,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -502,7 +569,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -534,7 +606,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -562,7 +639,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -589,7 +671,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -614,7 +701,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -639,7 +731,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -668,7 +765,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -694,7 +796,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -751,7 +858,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -782,7 +894,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -815,7 +932,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -840,7 +962,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -863,7 +990,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -885,7 +1017,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -908,7 +1045,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -937,7 +1079,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -971,7 +1118,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -1004,7 +1156,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } @@ -1056,7 +1213,12 @@ data.put("Source", Source); data.put("IPCType", IPCType); data.put("baseInfoCompany", jsonObject); - String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json"); + String s = null; + try { + s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData(); + } catch (Exception e) { + e.printStackTrace(); + } System.err.println(s); } } -- Gitblit v1.7.1