From 9ef944f83e337193293807cdcc6e7bbc1c494c25 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 20 八月 2024 15:09:27 +0800 Subject: [PATCH] 最新版本 --- server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java | 42 +++++++++++++++++++++++++++++++++++++++--- 1 files changed, 39 insertions(+), 3 deletions(-) diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java b/server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java index a4f6d22..5b158f4 100644 --- a/server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java +++ b/server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java @@ -412,6 +412,24 @@ return null; } /** + *璁垮棰勭害 + * @return + */ + public static BaseResponse<IccmAppointmentResponse> iccmAppointment(IccmAppointmentRequest param){ + log.info("銆愭捣搴疯瀹㈤绾︺��================寮�濮�===="+JSONObject.toJSONString(param)); + try { + String res = HKTools.iccmAppointment(JSONObject.toJSONString(param)); + TypeReference typeReference = + new TypeReference< BaseResponse<IccmAppointmentResponse>>(){}; + BaseResponse<IccmAppointmentResponse> result = JSONObject.parseObject(res, typeReference.getType()); + logResult(result,"娴峰悍璁垮棰勭害"); + return result; + }catch (Exception e){ + log.error("銆愭捣搴疯瀹㈤绾︺��================澶辫触====锛歕n"+ e.getMessage()); + } + return null; + } + /** *璁垮棰勭害鍙栨秷 * @return */ @@ -458,6 +476,24 @@ TypeReference typeReference = new TypeReference< BaseResponse<VisitAppointmentMDJResponse> >(){}; BaseResponse<VisitAppointmentMDJResponse> result = JSONObject.parseObject(res, typeReference.getType()); + logResult(result,"娴峰悍璁垮鍏嶇櫥璁伴绾�"); + return result; + }catch (Exception e){ + log.error("銆愭捣搴疯瀹㈠厤鐧昏棰勭害銆�================澶辫触====锛歕n"+ e.getMessage()); + } + return null; + } + /** + *璁垮鍏嶇櫥璁伴绾� + * @return + */ + public static BaseResponse<IccmAppointmentMDJResponse> iccmAppiontmentMDJ(IccmAppointmentMDJRequest param){ + log.info("銆愭捣搴疯瀹㈠厤鐧昏棰勭害銆�================寮�濮�===="+JSONObject.toJSONString(param)); + try { + String res = HKTools.visitAppiontmentMDJ(JSONObject.toJSONString(param)); + TypeReference typeReference = + new TypeReference< BaseResponse<IccmAppointmentMDJResponse> >(){}; + BaseResponse<IccmAppointmentMDJResponse> result = JSONObject.parseObject(res, typeReference.getType()); logResult(result,"娴峰悍璁垮鍏嶇櫥璁伴绾�"); return result; }catch (Exception e){ @@ -1097,13 +1133,13 @@ *鐢ㄤ簬璁剧疆骞挎挱鐨勮嚜瀹氭挱鏀惧拰鍋滄 * @return */ - public static BaseResponse<BaseListPageResponse<LedRecordsInfoResponse>> customBroadcast(CustomBroadcastRequest param){ + public static BaseResponse customBroadcast(CustomBroadcastRequest param){ log.info("銆愭捣搴风敤浜庤缃箍鎾殑鑷畾鎾斁鍜屽仠姝€��================寮�濮�===="+JSONObject.toJSONString(param)); try { String res = HKTools.customBroadcast(JSONObject.toJSONString(param)); TypeReference typeReference = - new TypeReference< BaseResponse<BaseListPageResponse<LedRecordsInfoResponse>> >(){}; - BaseResponse<BaseListPageResponse<LedRecordsInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); + new TypeReference< BaseResponse>(){}; + BaseResponse result = JSONObject.parseObject(res, typeReference.getType()); logResult(result,"娴峰悍鐢ㄤ簬璁剧疆骞挎挱鐨勮嚜瀹氭挱鏀惧拰鍋滄"); return result; }catch (Exception e){ -- Gitblit v1.9.3