| | |
| | | private void getUpdateModelByResponse( Visits c,Date date, List<DeviceRole> roleList,String path ) { |
| | | String code = null; |
| | | String id = null; |
| | | String recordid = null; |
| | | String qrcode = null; |
| | | String reson = ""; |
| | | //发起海康预约接口 |
| | |
| | | code =response!=null ?response.getCode():null; |
| | | if(response!=null && response.getData()!=null){ |
| | | id = response.getData().getOrderId(); |
| | | recordid = response.getData().getAppointRecordId(); |
| | | qrcode =response.getData().getQRCode(); |
| | | } |
| | | reson = response!=null?JSONObject.toJSONString(response):""; |
| | |
| | | if (code!= null && id!=null) { |
| | | //海康下发成功 |
| | | c.setHkId( id);//预约标识 |
| | | c.setHkRecordId(recordid);//访客预约记录标识(用户取消预约) |
| | | c.setQrcode(qrcode); |
| | | c.setRemark("下发海康成功!"); |
| | | c.setStatus(Constants.VisitStatus.xfSuccess);//下发海康成功 |
| | |
| | | public static void getUpdateModelByResponseIccm( Visits c,Date date, List<DeviceRole> roleList,String path ) { |
| | | String code = null; |
| | | String id = null; |
| | | String recordId = null; |
| | | String qrcode = null; |
| | | String reson = ""; |
| | | //发起海康预约接口 |
| | |
| | | && response.getData().getAppointmentInfoList() !=null |
| | | && response.getData().getAppointmentInfoList().size()>0)){ |
| | | id =response.getData().getOrderId(); |
| | | recordId = response.getData().getAppointRecordId(); |
| | | // qrcode =response.getData().getAppointmentInfoList().get(0).getQRCode(); |
| | | qrcode =response.getData().getAppointmentInfoList().get(0).getVerificationCode(); |
| | | } |
| | |
| | | code =response!=null ?response.getCode():null; |
| | | if(response!=null && response.getData()!=null){ |
| | | id = response.getData().getOrderId(); |
| | | recordId = response.getData().getAppointRecordId(); |
| | | qrcode =response.getData().getQRCode(); |
| | | } |
| | | reson = response!=null?JSONObject.toJSONString(response):""; |
| | |
| | | if (code!= null && id!=null) { |
| | | //海康下发成功 |
| | | c.setHkId( id);//预约标识 |
| | | c.setHkRecordId(recordId); |
| | | c.setQrcode(qrcode); |
| | | c.setRemark("下发海康成功!"); |
| | | c.setStatus(Constants.VisitStatus.xfSuccess);//下发海康成功 |