From eea92f23bf8ead897f346ae6ccc8603ac039e566 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 30 七月 2024 09:48:47 +0800
Subject: [PATCH] 修复bug

---
 server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java |   75 +++++++++++++++++++++++++++++++------
 1 files changed, 62 insertions(+), 13 deletions(-)

diff --git a/server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java b/server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
index e1227e3..fb5af07 100644
--- a/server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
+++ b/server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
@@ -61,17 +61,20 @@
 	}
 	public static InterfaceLogService interfaceLogService = null;
 	private static void saveInterfaceLog(String s, String result,Map<String, String> path) {
-//		InterfaceLogService bean = SpringContextUtil.getBean(InterfaceLogService.class);
-		if(interfaceLogService !=null){
-			InterfaceLog hkMonitoryLogDO=new InterfaceLog();
-			hkMonitoryLogDO.setType(0);
-			hkMonitoryLogDO.setCreateDate(new Date());
-			hkMonitoryLogDO.setIsdeleted(0);
-			hkMonitoryLogDO.setRequest(s);
-			hkMonitoryLogDO.setRepose(result);
-			hkMonitoryLogDO.setName(path.get(HKConstants.https));
-			hkMonitoryLogDO.setUrl(HKConstants.https + ArtemisConfig.host+path.get(HKConstants.https));
-			interfaceLogService.create(hkMonitoryLogDO);
+		try {
+			if(interfaceLogService !=null){
+				InterfaceLog hkMonitoryLogDO=new InterfaceLog();
+				hkMonitoryLogDO.setType(0);
+				hkMonitoryLogDO.setCreateDate(new Date());
+				hkMonitoryLogDO.setIsdeleted(0);
+				hkMonitoryLogDO.setRequest(s);
+				hkMonitoryLogDO.setRepose(result);
+				hkMonitoryLogDO.setName(path.get(HKConstants.https));
+				hkMonitoryLogDO.setUrl(HKConstants.https + ArtemisConfig.host+path.get(HKConstants.https));
+				interfaceLogService.create(hkMonitoryLogDO);
+			}
+		}catch (Exception e){
+			e.printStackTrace();
 		}
 	}
 
@@ -188,7 +191,7 @@
 	public static String addFace(String body) {
 		Map<String, String> path = getPath(HKConstants.InterfacePath.addFace);
 		String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post璇锋眰application/json绫诲瀷鍙傛暟
-		saveInterfaceLog(body,result,path);
+		saveInterfaceLog(null,result,path);
 		return  result;
 	}
 	/**
@@ -199,7 +202,7 @@
 	public static String editFace(String body) {
 		Map<String, String> path = getPath(HKConstants.InterfacePath.editFace);
 		String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post璇锋眰application/json绫诲瀷鍙傛暟
-		saveInterfaceLog(body,result,path);
+		saveInterfaceLog(null,result,path);
 		return  result;
 	}
 	/**
@@ -618,6 +621,29 @@
 		saveInterfaceLog(body,result,path);
 		return  result;
 	}
+
+	/**
+	 *	鑾峰彇璁垮棰勭害璁板綍鍒楄〃
+	 * @param body
+	 * @return
+	 */
+	public static String appointmentRecordsIccm(String body) {
+		Map<String, String> path = getPath(HKConstants.InterfacePath.appointmentRecordsIccm);
+		String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post璇锋眰application/json绫诲瀷鍙傛暟
+		saveInterfaceLog(body,result,path);
+		return  result;
+	}
+	/**
+	 *	鑾峰彇璁垮杩涘嚭鍦轰簨浠舵煡璇㈠垎椤�
+	 * @param body
+	 * @return
+	 */
+	public static String appointmentEventQuery(String body) {
+		Map<String, String> path = getPath(HKConstants.InterfacePath.appointmentEventQuery);
+		String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post璇锋眰application/json绫诲瀷鍙傛暟
+		saveInterfaceLog(body,result,path);
+		return  result;
+	}
 	/**
 	 *	鑾峰彇鍏ㄩ噺缁勭粐鍒楄〃
 	 * @param body
@@ -636,6 +662,17 @@
 	 */
 	public static String userAllList(String body) {
 		Map<String, String> path = getPath(HKConstants.InterfacePath.userAllList);
+		String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post璇锋眰application/json绫诲瀷鍙傛暟
+		saveInterfaceLog(body,result,path);
+		return  result;
+	}
+	/**
+	 *	鑾峰彇鍏ㄩ噺鐢ㄦ埛鍒楄〃2(鏍规嵁鏉′欢鍒嗛〉鏌ヨ锛�
+	 * @param body
+	 * @return
+	 */
+	public static String personList(String body) {
+		Map<String, String> path = getPath(HKConstants.InterfacePath.personList);
 		String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post璇锋眰application/json绫诲瀷鍙傛暟
 		saveInterfaceLog(body,result,path);
 		return  result;
@@ -719,4 +756,16 @@
 		return  result;
 	}
 
+	/**
+	 * 鏌ヨ鍦哄唴杞﹀仠杞︿俊鎭�
+	 * @param body
+	 * @return
+	 */
+	public static String tempCarInRecords(String body) {
+		Map<String, String> path = getPath(HKConstants.InterfacePath.tempCarInRecords);
+		String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post璇锋眰application/json绫诲瀷鍙傛暟
+		saveInterfaceLog(body,result,path);
+		return  result;
+	}
+
 }

--
Gitblit v1.9.3