| | |
| | | |
| | | |
| | | @Override |
| | | public void visitsSelfCancel(Integer visitId,Integer memberId){ |
| | | public void visitsSelfCancel(Integer visitId,Integer memberId,String openid){ |
| | | Visits visits = visitsMapper.selectById(visitId); |
| | | if(Objects.isNull(visits)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | |
| | | if(!(Constants.equalsInteger(memberId,visits.getMemberId()))){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"无此操作权限"); |
| | | } |
| | | if(!StringUtils.equals(openid,visits.getOpenid())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"无此操作权限"); |
| | | } |
| | | this.visitsCancelBiz(visits); |
| | | } |
| | | |