master:系统会员优化;

pull/1121/head
liujiang 2025-09-02 00:00:20 +08:00
parent 705c6bff9c
commit c9352b7a3a
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public class StoreMemberController extends XktBaseController {
final IStoreMemberService storeMemberService;
@PreAuthorize("@ss.hasAnyRoles('admin,general_admin,store'||@ss.hasSupplierSubRole())")
@PreAuthorize("@ss.hasAnyRoles('admin,general_admin,store')||@ss.hasSupplierSubRole()")
@ApiOperation(value = "新增档口会员", httpMethod = "POST", response = R.class)
@Log(title = "新增档口会员", businessType = BusinessType.INSERT)
@PostMapping

View File

@ -71,7 +71,7 @@ public class StoreMemberServiceImpl implements IStoreMemberService {
store.setStoreWeight(ObjectUtils.defaultIfNull(store.getStoreWeight(), 0) + 1);
this.storeMapper.updateById(store);
// 将档口会员信息添加到 redis 中
redisCache.setCacheObject(CacheConstants.STORE_MEMBER + createDTO.getStoreId(), StoreMemberLevel.STRENGTH_CONSTRUCT.getValue());
redisCache.setCacheObject(CacheConstants.STORE_MEMBER + createDTO.getStoreId(), storeMember);
// 新增订购成功的消息通知
this.noticeService.createSingleNotice(SecurityUtils.getUserId(), "购买会员成功!", NoticeType.NOTICE.getValue(), NoticeOwnerType.SYSTEM.getValue(),
createDTO.getStoreId(), UserNoticeType.SYSTEM_MSG.getValue(), "恭喜您!购买:实力质造 会员成功!");