| | |
| | | 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; |
| | |
| | | // 对相应状态下的数据进行【已签离】处理 |
| | | if(!Constants.equalsInteger(c.getStatus(),Constants.VisitStatus.signout)){ |
| | | Visits update = new Visits(); |
| | | //已失效 |
| | | //已签离 |
| | | update.setStatus(Constants.VisitStatus.signout); |
| | | update.setEditDate(date); |
| | | update.setId(c.getId()); |
| | | update.setInDate(DateUtil.getISO8601DateByStr2(data.getVisitStartTime())); |
| | | update.setOutDate(DateUtil.getISO8601DateByStr2(data.getVisitEndTime())); |
| | | update.setOutInfo(model.getVisitorStatus().equals(5)?"过期自动签离":"查询已签离"); |
| | | update.setRemark("已签离"); |
| | | visitsMapper.updateById(update); |
| | | |
| | |
| | | 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; |
| | | } |
| | | |