sql skuId问题

This commit is contained in:
wangw 2024-08-12 13:57:41 +08:00
parent 220c717085
commit 5cf796ac83
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ public interface TbOrderDetailRepository extends JpaRepository<TbOrderDetail, In
"AND od.createTime > :startTime \n" +
"AND od.createTime < :endTime \n" +
"AND (:productId is null or od.productId = :productId)\n" +
"AND (:productId is null or od.productSkuId = :productSkuId)")
"AND (:productSkuId is null or od.productSkuId = :productSkuId)")
List<TbOrderSaleVO> querySaleOrderInfo(@Param("startTime") Timestamp startTime, @Param("endTime") Timestamp endTime, @Param("productId") Integer productId, @Param("productSkuId") Integer productSkuId, @Param("shopId") Integer shopId);
@Query("SELECT new cn.ysk.cashier.vo.TbOrderSalesCountByDayVo(" +