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/service/HKService.java | 77 +++++++++++++++++++++++++++++++++----- 1 files changed, 67 insertions(+), 10 deletions(-) diff --git a/server/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java b/server/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java index 161ba1f..654f283 100644 --- a/server/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java +++ b/server/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java @@ -171,13 +171,12 @@ * @return */ public static BaseResponse<FaceAddOrEditesponse> addFace( FaceAddRequest param){ - log.info("銆愭捣搴锋坊鍔犱汉鑴镐俊鎭��================寮�濮�===="+JSONObject.toJSONString(param)); + log.info("銆愭捣搴锋坊鍔犱汉鑴镐俊鎭��================寮�濮�====" ); try { String res = HKTools.addFace(JSONObject.toJSONString(param)); - TypeReference typeReference = - new TypeReference< BaseResponse<FaceAddOrEditesponse>>(){}; + TypeReference typeReference = new TypeReference< BaseResponse<FaceAddOrEditesponse>>(){}; BaseResponse<FaceAddOrEditesponse> result = JSONObject.parseObject(res, typeReference.getType()); - logResult(result,"娴峰悍娣诲姞浜鸿劯淇℃伅"); + logResult(res,"娴峰悍娣诲姞浜鸿劯淇℃伅"); return result; }catch (Exception e){ log.error("銆愭捣搴锋坊鍔犱汉鑴镐俊鎭��================澶辫触====锛歕n"+ e.getMessage()); @@ -189,13 +188,14 @@ * @return */ public static BaseResponse<FaceAddOrEditesponse> editFace( FaceEditRequest param){ - log.info("銆愭捣搴风紪杈戜汉鑴镐俊鎭��================寮�濮�===="+JSONObject.toJSONString(param)); + log.info("銆愭捣搴风紪杈戜汉鑴镐俊鎭��================寮�濮�====" ); + String res =null; try { - String res = HKTools.editFace(JSONObject.toJSONString(param)); + res = HKTools.editFace(JSONObject.toJSONString(param)); TypeReference typeReference = new TypeReference< BaseResponse<FaceAddOrEditesponse>>(){}; BaseResponse<FaceAddOrEditesponse> result = JSONObject.parseObject(res, typeReference.getType()); - logResult(result,"娴峰悍缂栬緫浜鸿劯淇℃伅"); + logResult(res,"娴峰悍缂栬緫浜鸿劯淇℃伅"); return result; }catch (Exception e){ log.error("銆愭捣搴风紪杈戜汉鑴镐俊鎭��================澶辫触====锛歕n"+ e.getMessage()); @@ -802,6 +802,42 @@ return null; } /** + *娴峰悍璁垮棰勭害璁板綍鏌ヨICCM鐗堟湰锛堝垎椤碉級 + * @return + */ + public static BaseResponse<BaseListPageResponse<AppointmentIccmInfoResponse>> appointmentRecordsIccm(AppointmentListRequest param){ + log.info("銆愭捣搴疯瀹㈤绾﹁褰曟煡璇CCM鐗堟湰銆�================寮�濮�===="+JSONObject.toJSONString(param)); + try { + String res = HKTools.appointmentRecordsIccm(JSONObject.toJSONString(param)); + TypeReference typeReference = + new TypeReference<BaseResponse<BaseListPageResponse<AppointmentIccmInfoResponse>>>(){}; + BaseResponse<BaseListPageResponse<AppointmentIccmInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); + logResult(result,"娴峰悍璁垮棰勭害璁板綍鏌ヨICCM鐗堟湰"); + return result; + }catch (Exception e){ + log.error("銆愭捣搴疯瀹㈤绾﹁褰曟煡璇CCM鐗堟湰銆�================澶辫触====锛歕n"+ e.getMessage()); + } + return null; + } + /** + *娴峰悍璁垮浜嬩欢浠介鏌ヨICCM鐗堟湰锛堝垎椤碉級 + * @return + */ + public static BaseResponse<BaseListPageResponse<AppointmentEventInfoResponse>> appointmentEventQuery(AppointmentEventListRequest param){ + log.info("銆愭捣搴疯瀹簨浠朵唤棰濇煡璇CCM鐗堟湰銆�================寮�濮�===="+JSONObject.toJSONString(param)); + try { + String res = HKTools.appointmentEventQuery(JSONObject.toJSONString(param)); + TypeReference typeReference = + new TypeReference<BaseResponse<BaseListPageResponse<AppointmentEventInfoResponse>>>(){}; + BaseResponse<BaseListPageResponse<AppointmentEventInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); + logResult(result,"娴峰悍璁垮浜嬩欢浠介鏌ヨICCM鐗堟湰"); + return result; + }catch (Exception e){ + log.error("銆愭捣搴疯瀹簨浠朵唤棰濇煡璇CCM鐗堟湰銆�================澶辫触====锛歕n"+ e.getMessage()); + } + return null; + } + /** *鏌ヨ璁垮鏉ヨ璁板綍锛堝凡鐧昏锛夛紙鍒嗛〉锛� * @return */ @@ -874,6 +910,24 @@ return null; } /** + *鍏ㄩ噺浜哄憳鏌ヨ2锛堟牴鎹潯浠舵煡璇㈠垎椤碉級 + * @return + */ + public static BaseResponse<BaseListPageResponse<UserInfoResponse>> personList(UserByParamListRequest param){ + log.info("銆愭捣搴锋牴鎹潯浠舵煡璇汉鍛樺垪琛ㄣ��================寮�濮�===="+JSONObject.toJSONString(param)); + try { + String res = HKTools.personList(JSONObject.toJSONString(param)); + TypeReference typeReference = + new TypeReference< BaseResponse<BaseListPageResponse<UserInfoResponse>> >(){}; + BaseResponse<BaseListPageResponse<UserInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); + logResult(result,"娴峰悍鏍规嵁鏉′欢鏌ヨ浜哄憳鍒楄〃"); + return result; + }catch (Exception e){ + log.error("銆愭捣搴锋牴鎹潯浠舵煡璇汉鍛樺垪琛ㄣ��================澶辫触====锛歕n"+ e.getMessage()); + } + return null; + } + /** *澧為噺浜哄憳鏌ヨ锛堝垎椤碉級 * @return */ @@ -932,16 +986,16 @@ * @return */ public static BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> vehicleTimeRangeList(TimeRangeListRequest param){ - log.info("銆愭捣搴峰閲忎汉鍛樻煡璇€��================寮�濮�===="+JSONObject.toJSONString(param)); + log.info("銆愭捣搴峰閲忚溅杈嗘煡璇€��================寮�濮�===="+JSONObject.toJSONString(param)); try { String res = HKTools.vehicleTimeRangeList(JSONObject.toJSONString(param)); TypeReference typeReference = new TypeReference< BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> >(){}; BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); - logResult(result,"娴峰悍澧為噺浜哄憳鏌ヨ"); + logResult(result,"娴峰悍澧為噺杞﹁締鏌ヨ"); return result; }catch (Exception e){ - log.error("銆愭捣搴峰閲忎汉鍛樻煡璇€��================澶辫触====锛歕n"+ e.getMessage()); + log.error("銆愭捣搴峰閲忚溅杈嗘煡璇€��================澶辫触====锛歕n"+ e.getMessage()); } return null; } @@ -1006,6 +1060,9 @@ log.error("銆�"+name+"銆�================澶辫触====锛歕n"+ res); } } + private static void logResult(String res,String name) { + log.info("銆�"+name+"銆�================缁撴灉====\n"+res); + } } -- Gitblit v1.9.3