| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.UUID; |
| | | |
| | | @Service |
| | | public class GuideAccountService { |
| | | private final GuideUserMapper guideUserMapper; |
| | |
| | | if (user == null) { |
| | | throw new BusinessException(404, "导游用户不存在"); |
| | | } |
| | | user.setUsername("deleted_" + UUID.randomUUID().toString().replace("-", "").substring(0, 24)); |
| | | user.setMobile(null); |
| | | user.setCertificateNo(null); |
| | | user.setIdCardNo(null); |
| | | user.setStatus(GuideUserService.STATUS_CANCELLED); |
| | | user.setAutoDisableWhitelisted(0); |
| | | user.setAutoDisabled(0); |