master:系统会员优化;
parent
705c6bff9c
commit
c9352b7a3a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(), "恭喜您!购买:实力质造 会员成功!");
|
||||
|
|
|
|||
Loading…
Reference in New Issue