| | |
| | | List<DeviceRole> roles = null; |
| | | if(StringUtils.equals(mustSelectDoors,Constants.ZERO+"")){ |
| | | //如果设置不选择门禁,则提供默认门禁组信息 |
| | | |
| | | if(StringUtils.isBlank(visits.getDoors())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对不起,请选择访问门禁!"); |
| | | } |
| | |
| | | |
| | | }else{ |
| | | //如果必须选择门禁,但未选择 |
| | | if(StringUtils.isNotBlank(visits.getDoors())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对不起,请选择有效访问门禁!"); |
| | | } |
| | | String[] dIds = visits.getDoors().split(","); |
| | | roles = deviceRoleMapper.selectList(new QueryWrapper<DeviceRole>().lambda() |
| | | .eq(DeviceRole::getIsdeleted,Constants.ZERO) |