| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.mzl.flower.config.exception.ValidationException; |
| | | import com.mzl.flower.config.security.SecurityUtils; |
| | | import com.mzl.flower.constant.Constants; |
| | | import com.mzl.flower.dto.request.menber.MemberDTO; |
| | | import com.mzl.flower.dto.request.menber.MemberQueryDTO; |
| | | import com.mzl.flower.dto.response.member.MemberVO; |
| | |
| | | |
| | | @Override |
| | | public void deleteMember(String id) { |
| | | if(id.equals(Constants.DEFAULT_MEMBER_ID)){ |
| | | throw new ValidationException("默认普通会员只能编辑,不能删除"); |
| | | } |
| | | Member member = memberMapper.selectById(id); |
| | | if (member == null) { |
| | | throw new ValidationException("会员等级信息不存在"); |