| | |
| | | import com.doumee.core.haikang.model.param.request.CarPictureRequest; |
| | | import com.doumee.core.haikang.model.param.request.FacePictureCheckRequest; |
| | | import com.doumee.core.haikang.model.param.request.ParkReservationAddRequest; |
| | | import com.doumee.core.haikang.model.param.request.VisitAppointmentCancelRequest; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | |
| | | ArtemisConfig.appSecret = "88wFsg3xfn7o8QMsWEO2"; |
| | | HKConstants.https = "https://"; |
| | | |
| | | ParkReservationAddRequest request = new ParkReservationAddRequest(); |
| | | request.setPlateNo("皖A90LL0"); |
| | | request.setParkSyscode("1c4cdb8b66ed4c23bacb385c3fb6c46b"); |
| | | request.setPhoneNo("15345690849"); |
| | | request.setOwner("施旭辉"); |
| | | request.setAllowTimes(Constants.ONE+""); |
| | | request.setIsCharge(Constants.ONE+""); |
| | | request.setStartTime( DateUtil.getISO8601Timestamp2(new Date()) ); |
| | | request.setEndTime( "2025-03-27T00:00:00+08:00" ); |
| | | String response = parkAddition(JSONObject.toJSONString(request)); |
| | | VisitAppointmentCancelRequest request = new VisitAppointmentCancelRequest(); |
| | | request.setAppointRecordIds(new String[]{"皖A90LL0"}); |
| | | String response = iccmCancelAppointment(JSONObject.toJSONString(request)); |
| | | System.out.println(response); |
| | | |
| | | /* CarPictureRequest param = new CarPictureRequest(); |
| | |
| | | public static String startDoPostStringArtemis(String[] pathStr,String body ){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | Map<String, String> header = new HashMap<>(); |
| | | header.put("tagId", UUID.randomUUID().toString().replace("-", "")); |
| | | header.put("tagId","frs"); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请求application/json类型参数 |
| | | saveInterfaceLog(body,result,path,pathStr[1]); |
| | | return result; |
| | |
| | | public static String startDoGetStringArtemis(String[] pathStr,Map<String,String> body ){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | Map<String, String> header = new HashMap<>(); |
| | | header.put("tagId", UUID.randomUUID().toString().replace("-", "")); |
| | | header.put("tagId", "frs"); |
| | | String result = ArtemisHttpUtil.doGetArtemis(path, body, null, null, header); |
| | | saveInterfaceLog(JSONObject.toJSONString(body),result,path,pathStr[1]); |
| | | return result; |
| | |
| | | public static String startDoPostStringArtemis(String[] pathStr,String param,String body ){ |
| | | Map<String, String> path = getPath(pathStr[0]+StringUtils.defaultString(param,"")); |
| | | Map<String, String> header = new HashMap<>(); |
| | | header.put("tagId", UUID.randomUUID().toString().replace("-", "")); |
| | | header.put("tagId","frs"); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请求application/json类型参数 |
| | | saveInterfaceLog(body,result,path,pathStr[1]); |
| | | return result; |
| | |
| | | |
| | | public static String startDoPostStringArtemis(String[] pathStr,Map<String, String> querys,Map<String, String> header,String body){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | header.put("tagId", UUID.randomUUID().toString().replace("-", "")); |
| | | header.put("tagId","frs"); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, querys, null, "application/json", header);// post请求application/json类型参数 |
| | | saveInterfaceLog(body,result,path,pathStr[1]); |
| | | return result; |
| | |
| | | */ |
| | | public static String authItemList(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.authItemList,body); |
| | | } |
| | | /** |
| | | * 按业务编号查询下发记录 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String authResultPage(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.authResultPage,body); |
| | | } |
| | | /** |
| | | * 批量开卡 |
| | |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.findDeviceStatistics,body); |
| | | } |
| | | /** |
| | | * 【海康消防看板】根据条件查询目录下有权限的资源列表 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String resourcesByParams(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.resourcesByParams,body); |
| | | } |
| | | /** |
| | | *消防看板-4报警信息统计 |
| | | * @param body |
| | | * @return |