From 56cd9a53cb4110b0c214f9b66a993eec7e57b4e5 Mon Sep 17 00:00:00 2001 From: nidapeng <jp@doumee.com> Date: 星期四, 11 四月 2024 11:47:48 +0800 Subject: [PATCH] 最新版本 --- server/dmvisit_service/src/main/java/com/doumee/core/haikang/service/HKService.java | 62 +++++++++++++++++++++++++++++-- 1 files changed, 58 insertions(+), 4 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 633cfdf..161ba1f 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 @@ -153,16 +153,16 @@ * @return */ public static BaseResponse<List<UserDelResponse>> delBatchUser(UserDelRequest param){ - log.info("銆愭捣搴锋壒閲忔柊澧炰汉鍛樸��================寮�濮�===="+JSONObject.toJSONString(param)); + log.info("銆愭捣搴锋壒閲忓垹闄や汉鍛樸��================寮�濮�===="+JSONObject.toJSONString(param)); try { String res = HKTools.delBatchUser(JSONObject.toJSONString(param)); TypeReference typeReference = new TypeReference< BaseResponse<List<UserDelResponse>>>(){}; BaseResponse<List<UserDelResponse >> 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; } @@ -209,7 +209,7 @@ public static BaseResponse delFace(List<FaceEditRequest> param){ log.info("銆愭捣搴峰垹闄や汉鑴镐俊鎭��================寮�濮�===="+JSONObject.toJSONString(param)); try { - String res = HKTools.editFace(JSONObject.toJSONString(param)); + String res = HKTools.delFace(JSONObject.toJSONString(param)); TypeReference typeReference = new TypeReference< BaseResponse>(){}; BaseResponse result = JSONObject.parseObject(res, typeReference.getType()); @@ -945,6 +945,60 @@ } return null; } + /** + *澧為噺杞﹁締鏌ヨ锛堝垎椤碉級 + * @return + */ + public static BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> facePictureCheck(TimeRangeListRequest param){ + log.info("銆愭捣搴峰閲忎汉鍛樻煡璇€��================寮�濮�===="+JSONObject.toJSONString(param)); + try { + String res = HKTools.facePictureCheck(JSONObject.toJSONString(param)); + TypeReference typeReference = + new TypeReference< BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> >(){}; + BaseResponse<BaseListPageResponse<VehicleTimeRangeInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); + logResult(result,"娴峰悍澧為噺浜哄憳鏌ヨ"); + return result; + }catch (Exception e){ + log.error("銆愭捣搴峰閲忎汉鍛樻煡璇€��================澶辫触====锛歕n"+ e.getMessage()); + } + return null; + } + /** + *鑾峰彇闂ㄧ璁惧鍦ㄧ嚎鐘舵�侊紙鍒嗛〉锛� + * @return + */ + public static BaseResponse<BaseListPageResponse<AscDeviceStatusInfoResponse>> acsDeviceStatus(AcsDeviceStatusListRequest param){ + log.info("銆愭捣搴疯幏鍙栭棬绂佽澶囧湪绾跨姸鎬併��================寮�濮�===="+JSONObject.toJSONString(param)); + try { + String res = HKTools.acsDeviceStatus(JSONObject.toJSONString(param)); + TypeReference typeReference = + new TypeReference< BaseResponse<BaseListPageResponse<AscDeviceStatusInfoResponse>> >(){}; + BaseResponse<BaseListPageResponse<AscDeviceStatusInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); + logResult(result,"娴峰悍鑾峰彇闂ㄧ璁惧鍦ㄧ嚎鐘舵��"); + return result; + }catch (Exception e){ + log.error("銆愭捣搴疯幏鍙栭棬绂佽澶囧湪绾跨姸鎬併��================澶辫触====锛歕n"+ e.getMessage()); + } + return null; + } + /** + *鏌ヨ鍦哄唴杞﹀仠杞︿俊鎭紙鍒嗛〉锛� + * @return + */ + public static BaseResponse<BaseListPageResponse<TempCarInRecordInfoResponse>> tempCarInRecords(TempCarInRecordListRequest param){ + log.info("銆愭捣搴锋煡璇㈠満鍐呰溅鍋滆溅淇℃伅銆�================寮�濮�===="+JSONObject.toJSONString(param)); + try { + String res = HKTools.tempCarInRecords(JSONObject.toJSONString(param)); + TypeReference typeReference = + new TypeReference< BaseResponse<BaseListPageResponse<TempCarInRecordInfoResponse>> >(){}; + BaseResponse<BaseListPageResponse<TempCarInRecordInfoResponse>> result = JSONObject.parseObject(res, typeReference.getType()); + logResult(result,"娴峰悍鏌ヨ鍦哄唴杞﹀仠杞︿俊鎭�"); + return result; + }catch (Exception e){ + log.error("銆愭捣搴锋煡璇㈠満鍐呰溅鍋滆溅淇℃伅銆�================澶辫触====锛歕n"+ e.getMessage()); + } + return null; + } private static void logResult(BaseResponse res,String name) { if(StringUtils.equals(res.getCode(),HKConstants.RESPONSE_SUCCEE)){ log.info("銆�"+name+"銆�================鎴愬姛====\n"+res); -- Gitblit v1.9.3