积分 发放

This commit is contained in:
2025-12-11 15:12:21 +08:00
parent e43cda28b7
commit 27ff6ae2d7
11 changed files with 161 additions and 149 deletions

View File

@@ -36,6 +36,7 @@ public class MemberTask {
// @Scheduled(cron = "0 0 1 * * ? ")
public void task() {
shopUserService.list(new QueryWrapper().eq(ShopUser::getIsVip, 1).lt(ShopUser::getNextDeliverTime, DateUtil.date().toLocalDateTime())).forEach(item -> {
//周任务
memberConfigService.deliver(item, TableValueConstant.MemberExpFlow.Type.MEMBER_TASK, null, null, null);
});
}
@@ -46,9 +47,7 @@ public class MemberTask {
.isNotNull(ShopUser::getEndTime)
.eq(ShopUser::getIsVip, 1)
.lt(ShopUser::getEndTime, LocalDateTime.now()));
shopUsers.forEach(item -> {
item.setIsVip(0);
});
shopUsers.forEach(item -> item.setIsVip(0));
shopUserService.updateBatch(shopUsers);
}