|  |  | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; | 
 |  |  | import com.doumee.biz.system.SystemDictDataBiz; | 
 |  |  | import com.doumee.core.constants.ResponseStatus; | 
 |  |  | import com.doumee.core.exception.BusinessException; | 
 |  |  | import com.doumee.core.haikang.model.HKConstants; | 
 |  |  | import com.doumee.core.haikang.model.param.BaseListPageResponse; | 
 |  |  | import com.doumee.core.haikang.model.param.BaseResponse; | 
 |  |  | import com.doumee.core.haikang.model.param.request.*; | 
 |  |  | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitInfoRequest; | 
 |  |  | import com.doumee.core.haikang.model.param.respose.*; | 
 |  |  | import com.doumee.core.haikang.service.HKService; | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | 
 |  |  |             return   ; | 
 |  |  |         } | 
 |  |  |         Constants.DEALING_HK_VISIT =true; | 
 |  |  |         String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode() | 
 |  |  |         String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_LOCAL_RESOURCE_PATH).getCode() | 
 |  |  |                 +systemDictDataBiz.queryByCode(Constants.FTP,Constants.MEMBER_IMG).getCode(); | 
 |  |  |         List<DeviceRole> roleList = deviceRoleMapper.selectList(new QueryWrapper<DeviceRole>().lambda() | 
 |  |  |                 .eq(DeviceRole::getType, Constants.ONE)); | 
 |  |  | 
 |  |  | //                getUpdateModelByResponse(c,date,roleList,path); | 
 |  |  |                 getUpdateModelByResponseIccm(c,date,roleList,path); | 
 |  |  |                 visitsMapper.updateById(c); | 
 |  |  |                 if(Objects.isNull(c.getParentId())){ | 
 |  |  |                     wxPlatNotice.sendVisitAuditTemplateNotice(c, | 
 |  |  |                             systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_PREFIX).getCode(), | 
 |  |  |                             systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_AUDIT_VISIT).getCode()); | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             e.printStackTrace(); | 
 |  |  | 
 |  |  |                     && response.getData().getAppointmentInfoList() !=null | 
 |  |  |                     && response.getData().getAppointmentInfoList().size()>0)){ | 
 |  |  |                 id =response.getData().getAppointmentInfoList().get(0).getOrderId(); | 
 |  |  |                 qrcode =response.getData().getAppointmentInfoList().get(0).getQRCode(); | 
 |  |  |                 qrcode =response.getData().getAppointmentInfoList().get(0).getVerificationCode(); | 
 |  |  | //                qrcode =response.getData().getAppointmentInfoList().get(0).getQRCode(); | 
 |  |  |             } | 
 |  |  |             reson = response!=null?JSONObject.toJSONString(response):""; | 
 |  |  |         }else{ | 
 |  |  | 
 |  |  |                     && response.getData().getAppointmentInfoList() !=null | 
 |  |  |                     && response.getData().getAppointmentInfoList().size()>0)){ | 
 |  |  |                 id =response.getData().getOrderId(); | 
 |  |  |                 qrcode =response.getData().getAppointmentInfoList().get(0).getQRCode(); | 
 |  |  | //                qrcode =response.getData().getAppointmentInfoList().get(0).getQRCode(); | 
 |  |  |                 qrcode =response.getData().getAppointmentInfoList().get(0).getVerificationCode(); | 
 |  |  |             } | 
 |  |  |             reson = response!=null?JSONObject.toJSONString(response):""; | 
 |  |  |         }else{ | 
 |  |  | 
 |  |  |             return  null; | 
 |  |  |         } | 
 |  |  |         if(StringUtils.isNotBlank(c.getFaceImg())){ | 
 |  |  |             log.info("===================================="+path+c.getFaceImg()+"======start===="); | 
 |  |  |             info.setVisitorPhoto(ImageBase64Util.Image2Base64(path+c.getFaceImg())); | 
 |  |  |             log.info("===================================="+path+c.getFaceImg()+"========end==="); | 
 |  |  |         } | 
 |  |  |         if(info.getVisitorPhoto() == null){ | 
 |  |  |             log.info("===================================="+path+c.getFaceImg()+"======imgerror====="); | 
 |  |  |             return  null; | 
 |  |  |         } | 
 |  |  |         if(StringUtils.isNotBlank(c.getName())){ | 
 |  |  | 
 |  |  |                 info.setVisitorName(c.getName()); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         if(StringUtils.isNotBlank(c.getCompanyName())){ | 
 |  |  |             char[] charArray = c.getCompanyName().toCharArray(); | 
 |  |  |             int length = charArray.length; | 
 |  |  | 
 |  |  |             info.setCertificateType(HKConstants.CertificateType.HUZHAO.getKey()+""); | 
 |  |  |             info.setCertificateNo(DESUtil.decrypt(Constants.EDS_PWD,  c.getIdcardNo())); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         return info; | 
 |  |  |     } | 
 |  |  |  |