|
|
@@ -90,8 +90,8 @@ public class PerformanceListServiceImpl implements PerformanceListService {
|
|
|
// 构建分页对象
|
|
|
IPage<BarPerformance> performancePage = new Page<>(page, size);
|
|
|
|
|
|
- // 构建查询条件
|
|
|
- LambdaQueryWrapper<BarPerformance> queryWrapper = buildQueryWrapper(storeId);
|
|
|
+ // 构建查询条件:仅店铺 + 已上线
|
|
|
+ LambdaQueryWrapper<BarPerformance> queryWrapper = buildOnlineListQueryWrapper(storeId);
|
|
|
|
|
|
// 执行查询
|
|
|
IPage<BarPerformance> result = barPerformanceMapper.selectPage(performancePage, queryWrapper);
|
|
|
@@ -132,7 +132,23 @@ public class PerformanceListServiceImpl implements PerformanceListService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 构建查询条件
|
|
|
+ * 构建用户端列表查询条件(/performance/list/query)
|
|
|
+ * 仅查询指定店铺下已上线、未删除的演出,不做审核/过期等额外筛选
|
|
|
+ *
|
|
|
+ * @param storeId 店铺ID
|
|
|
+ * @return 查询条件包装器
|
|
|
+ */
|
|
|
+ private LambdaQueryWrapper<BarPerformance> buildOnlineListQueryWrapper(Integer storeId) {
|
|
|
+ LambdaQueryWrapper<BarPerformance> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(BarPerformance::getStoreId, storeId)
|
|
|
+ .eq(BarPerformance::getDeleteFlag, CommonConstant.DELETE_FLAG_UNDELETE)
|
|
|
+ .eq(BarPerformance::getOnlineStatus, CommonConstant.PERFORMANCE_ONLINE_STATUS_ONLINE)
|
|
|
+ .orderByDesc(BarPerformance::getCreatedTime);
|
|
|
+ return queryWrapper;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 构建查询条件(按日期分组等场景:含审核通过、未过期等筛选)
|
|
|
*
|
|
|
* @param storeId 店铺ID
|
|
|
* @return 查询条件包装器
|