| | |
| | | if(visits.getEndtime().getTime() <= visits.getStarttime().getTime()){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对不起,离厂时间必须大于入厂时间!");// |
| | | } |
| | | if(!DateUtil.getDateLong(visits.getEndtime()).equals(DateUtil.getDateLong(visits.getStarttime()))){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对不起,预约日期不可以跨天!"); |
| | | }; |
| | | |
| | | if(visits.getSourceType().equals(Constants.ZERO)){ |
| | | String code = systemDictDataBiz.queryByCode(Constants.VISIT_CONFIG,Constants.VALIDATE_VISIT).getCode(); |
| | | int codenum =0; |
| | |
| | | }else{ |
| | | if(!Constants.equalsInteger(Constants.ZERO,member.getStatus() )){ |
| | | //如果用户状态异常,则提示 |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "对不起,身份证号【"+cardno+"】被禁止访问申请,如有疑问,请联系您的拜访人进行核实"); |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "对不起,【"+member.getName()+"】身份证号【"+cardno+"】在黑名单内,无法申请进入园区"); |
| | | } |
| | | //核查预约用户是否存在未签离的预约记录 |
| | | // isExsitNoOutVisisRecord(member); |