|
|
|
@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.exceptions.ApiException; |
|
|
|
|
import org.springblade.common.constant.CommonConstant; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.secure.utils.SecureUtil; |
|
|
|
|
import org.springblade.core.tool.constant.BladeConstant; |
|
|
|
|
import org.springblade.core.tool.utils.DigestUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
@ -87,4 +88,12 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
|
|
|
return this.update(user, Wrappers.<User>update().lambda().in(User::getId, Func.toLongList(userIds))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean removeUser(String userIds) { |
|
|
|
|
if (Func.contains(Func.toLongArray(userIds), SecureUtil.getUserId())) { |
|
|
|
|
throw new ApiException("不能删除本账号!"); |
|
|
|
|
} |
|
|
|
|
return deleteLogic(Func.toLongList(userIds)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|