fix
This commit is contained in:
@@ -27,6 +27,7 @@ import com.starry.admin.modules.system.service.SysUserRoleService;
|
|||||||
import com.starry.admin.modules.system.service.SysUserService;
|
import com.starry.admin.modules.system.service.SysUserService;
|
||||||
import com.starry.admin.modules.system.vo.*;
|
import com.starry.admin.modules.system.vo.*;
|
||||||
import com.starry.admin.utils.SecurityUtils;
|
import com.starry.admin.utils.SecurityUtils;
|
||||||
|
import com.starry.admin.utils.SmsUtils;
|
||||||
import com.starry.common.annotation.DataScope;
|
import com.starry.common.annotation.DataScope;
|
||||||
import com.starry.common.constant.UserConstants;
|
import com.starry.common.constant.UserConstants;
|
||||||
import com.starry.common.redis.RedisCache;
|
import com.starry.common.redis.RedisCache;
|
||||||
@@ -72,6 +73,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUserEntity
|
|||||||
private IPlayPersonnelWaiterInfoService playClerkWaiterInfoService;
|
private IPlayPersonnelWaiterInfoService playClerkWaiterInfoService;
|
||||||
@Resource
|
@Resource
|
||||||
private RedisCache redisCache;
|
private RedisCache redisCache;
|
||||||
|
@Resource
|
||||||
|
private SmsUtils smsUtils;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -289,6 +292,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUserEntity
|
|||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
throw new RuntimeException("该店员已经成为员工了,无法再次添加~");
|
throw new RuntimeException("该店员已经成为员工了,无法再次添加~");
|
||||||
}
|
}
|
||||||
|
smsUtils.checkSmsCode(param.getMobile(), param.getSmsCode());
|
||||||
PlayClerkUserInfoEntity clerk = clerkUserInfoService.selectById(param.getClerkId());
|
PlayClerkUserInfoEntity clerk = clerkUserInfoService.selectById(param.getClerkId());
|
||||||
SysUserEntity user = new SysUserEntity().setClerkId(param.getClerkId()).setMobile(param.getMobile()).setPassWord(SecurityUtils.encryptPassword(param.getMobile())).setUserCode(param.getMobile()).setUserNickname(clerk.getNickname()).setRealName(clerk.getNickname());
|
SysUserEntity user = new SysUserEntity().setClerkId(param.getClerkId()).setMobile(param.getMobile()).setPassWord(SecurityUtils.encryptPassword(param.getMobile())).setUserCode(param.getMobile()).setUserNickname(clerk.getNickname()).setRealName(clerk.getNickname());
|
||||||
user.setUserId(IdUtils.getUuid());
|
user.setUserId(IdUtils.getUuid());
|
||||||
|
|||||||
Reference in New Issue
Block a user