Browse Source

推荐图片为空修复

zhangchen 1 week ago
parent
commit
7eae5ebd35

+ 1 - 0
alien-store/src/main/java/shop/alien/store/service/impl/StoreInfoServiceImpl.java

@@ -2976,6 +2976,7 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
         calendar.set(Calendar.MILLISECOND, 0);
         // 加上 30 天
         calendar.add(Calendar.DAY_OF_MONTH, 30);
+        queryWrapper.lt("a.expiration_time", currentDate);
 
         // 构建一级分类
         if(StringUtils.isNotEmpty(businessSection)){