个人页bug

This commit is contained in:
2024-12-05 18:40:03 +08:00
parent 82116e7a75
commit c931128be0
2 changed files with 8 additions and 1 deletions

View File

@@ -393,6 +393,13 @@ public class UserPersonalBackgroundService extends ServiceImpl<UserPersonalBackg
public List<DressShopVo> listUserPersonalBackground(Integer page, Integer pageSize, Long uid, Byte dressType) {
PageHelper.startPage(page, pageSize, false);
List<DressShopVo> cards = baseMapper.listUserPersonalBackground(uid, dressType);
if (CollectionUtils.isNotEmpty(cards)) {
for (DressShopVo card : cards) {
if (card.getExpireTime().before(new Date())) {
card.setHasExpired(Boolean.TRUE);
}
}
}
return cards;
}
}

View File

@@ -16,7 +16,7 @@ public class UserPersonalBackgroundTask {
/**
* 清理到期的个人页背景
*/
@Scheduled(cron = "0 0 */1 * * ?")
@Scheduled(cron = "0 */5 * * * ?")
public void clearExpireUserInfoCard() {
log.info("开始清理到期的个人页背景...");
userPersonalBackgroundService.clearExpirePersonalBackground();