fix: 茅台预约商品,修改账号bug解决。

This commit is contained in:
tianyongbao
2024-12-13 19:43:39 +08:00
parent c4a45c72f8
commit dc2144ffaf

View File

@@ -155,9 +155,9 @@ public class IUserServiceImpl implements IUserService {
@Override
public int updateIUser(IUser iUser) {
if (SecurityUtils.getUserId() != 1 && !iUser.getCreateUser().equals(SecurityUtils.getUserId())) {
throw new ServiceException("只能修改自己创建的用户");
}
// if (!iUser.getCreateBy().equals(SecurityUtils.getUsername())) {
// throw new ServiceException("只能修改自己创建的用户");
// }
return iUserMapper.updateIUser(iUser);
}