台桌统计导出数据处理订单筛选bug
This commit is contained in:
parent
5ef762f670
commit
c6aba2caa9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue