个人页bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ public class UserPersonalBackgroundTask {
|
||||
/**
|
||||
* 清理到期的个人页背景
|
||||
*/
|
||||
@Scheduled(cron = "0 0 */1 * * ?")
|
||||
@Scheduled(cron = "0 */5 * * * ?")
|
||||
public void clearExpireUserInfoCard() {
|
||||
log.info("开始清理到期的个人页背景...");
|
||||
userPersonalBackgroundService.clearExpirePersonalBackground();
|
||||
|
Reference in New Issue
Block a user