Merge branch 'refs/heads/dev' into test
This commit is contained in:
commit
0186055934
|
|
@ -207,7 +207,7 @@ public interface TbOrderDetailRepository extends JpaRepository<TbOrderDetail, In
|
||||||
"LEFT JOIN TbShopCategory cate ON cate.id = pro.categoryId " +
|
"LEFT JOIN TbShopCategory cate ON cate.id = pro.categoryId " +
|
||||||
"WHERE info.shopId = :shopId " +
|
"WHERE info.shopId = :shopId " +
|
||||||
"AND info.createTime > :startTime AND info.createTime < :endTime " +
|
"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 " +
|
"GROUP BY info.productId, info.productSkuId, orders.tableId " +
|
||||||
"ORDER BY salesNum DESC")
|
"ORDER BY salesNum DESC")
|
||||||
List<TbOrderSalesCountByTable> queryTbOrderSalesCountByTable(@Param("shopId") Integer shopId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
List<TbOrderSalesCountByTable> queryTbOrderSalesCountByTable(@Param("shopId") Integer shopId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue