台桌统计导出数据处理订单筛选bug

This commit is contained in:
GYJ 2024-10-31 14:42:54 +08:00
parent 5ef762f670
commit c6aba2caa9
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public interface TbOrderDetailRepository extends JpaRepository<TbOrderDetail, In
"LEFT JOIN TbShopCategory cate ON cate.id = pro.categoryId " +
"WHERE info.shopId = :shopId " +
"AND info.createTime > :startTime AND info.createTime < :endTime " +
"AND (info.status = 'closed' OR info.status = 'refund') " +
"AND (orders.status = 'closed' OR orders.orderType = 'return') " +
"GROUP BY info.productId, info.productSkuId, orders.tableId " +
"ORDER BY salesNum DESC")
List<TbOrderSalesCountByTable> queryTbOrderSalesCountByTable(@Param("shopId") Integer shopId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);