提交 db771aa6 authored 作者: 000516's avatar 000516

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

...@@ -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);
} }
......
spring:
application:
name: wangxiaolu-sfa-system
cloud:
nacos:
discovery:
server-addr: 10.0.0.170:8848
group: sfa
namespace: e2996044-6ddc-4988-8810-602e05d01ccf
config:
server-addr: 10.0.0.170:8848
file-extension: yaml
group: sfa
namespace: e2996044-6ddc-4988-8810-602e05d01ccf
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论