|
@@ -10,6 +10,8 @@ import com.usky.common.mybatis.core.AbstractCrudService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 用户人员关联 服务实现类
|
|
@@ -32,7 +34,7 @@ public class SysUserPersonServiceImpl extends AbstractCrudService<SysUserPersonM
|
|
|
throw new BusinessException("参数设置错误");
|
|
|
}
|
|
|
// 判断要修改的用户是否为登录用户
|
|
|
- if (userId.equals(SecurityUtils.getUserId())) {
|
|
|
+ if (!Objects.equals(userId, SecurityUtils.getUserId())) {
|
|
|
throw new BusinessException("你不能修改非本人的登录通知设置!");
|
|
|
}
|
|
|
|