|
@@ -167,6 +167,9 @@ public class DistributionSellerServiceImpl extends ServiceImpl<DistributionSelle
|
|
|
if(Validator.isEmpty(seller)){
|
|
|
throw new CustomException("该手机号未注册");
|
|
|
}
|
|
|
+ if(Validator.isEmpty(seller.getSellerId())){
|
|
|
+ throw new CustomException("非业务员无法操作");
|
|
|
+ }
|
|
|
return iSysUserService.update(null,
|
|
|
new LambdaUpdateWrapper<SysUser>()
|
|
|
.set(SysUser::getPassword,SecurityUtils.encryptPassword(bo.getPwd()))
|
|
@@ -226,6 +229,9 @@ public class DistributionSellerServiceImpl extends ServiceImpl<DistributionSelle
|
|
|
{
|
|
|
throw new BaseException("登录信息错误");
|
|
|
}
|
|
|
+ if(Validator.isEmpty(sysUser.getSellerId())){
|
|
|
+ throw new CustomException("非业务员无法登录");
|
|
|
+ }
|
|
|
DistributionSeller seller = getOne(new LambdaQueryWrapper<DistributionSeller>()
|
|
|
.eq(DistributionSeller::getSellerId, sysUser.getSellerId()));
|
|
|
LoginUser loginSeller = new LoginUser();
|
|
@@ -302,6 +308,11 @@ public class DistributionSellerServiceImpl extends ServiceImpl<DistributionSelle
|
|
|
return baseMapper.findList(bo);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public DistributionSellerVo findDetail(Long sellerId) {
|
|
|
+ return baseMapper.findDetail(sellerId);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 实体类转化成视图对象
|
|
|
*
|