提交 9f09aebd authored 作者: 000516's avatar 000516

修改账号信息时,如果促销状态未使用,则不进行促销账号开通

上级 145a4f3e
...@@ -12,6 +12,8 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -12,6 +12,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.Objects;
/** /**
* @author : liqiulin * @author : liqiulin
* @date : 2024-10-30 17 * @date : 2024-10-30 17
...@@ -57,6 +59,9 @@ public class SysUserCoreController { ...@@ -57,6 +59,9 @@ public class SysUserCoreController {
userVo.setUpdateBy(SecurityUtils.getUsername()); userVo.setUpdateBy(SecurityUtils.getUsername());
sysUserService.updateUser(userVo); sysUserService.updateUser(userVo);
if (Objects.isNull(userVo.getPrivilegeId())){
return;
}
// 开通促销账号 // 开通促销账号
sysUserService.openPromotion(userVo); sysUserService.openPromotion(userVo);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论