格式更改
This commit is contained in:
@@ -82,7 +82,7 @@ public interface TbOrderInfoRepository extends JpaRepository<TbOrderInfo, Intege
|
|||||||
"ORDER BY info.tradeDay DESC")
|
"ORDER BY info.tradeDay DESC")
|
||||||
Page<TbOrderPayCountByDayVo> queryTbOrderPayCountByDay(@Param("shopId") String shopId, @Param("startTime") Long startTime, @Param("endTime") Long endTime, Pageable pageable);
|
Page<TbOrderPayCountByDayVo> queryTbOrderPayCountByDay(@Param("shopId") String shopId, @Param("startTime") Long startTime, @Param("endTime") Long endTime, Pageable pageable);
|
||||||
@Query(value = "SELECT " +
|
@Query(value = "SELECT " +
|
||||||
"row_number() over ( ORDER BY SUM( num ) DESC ) AS productId," +
|
"row_number() over (ORDER BY SUM(num) DESC) AS productId," +
|
||||||
"product_name," +
|
"product_name," +
|
||||||
"SUM( CASE WHEN status = 'closed' THEN num ELSE 0 END ) as salesNum," +
|
"SUM( CASE WHEN status = 'closed' THEN num ELSE 0 END ) as salesNum," +
|
||||||
"SUM( price ) " +
|
"SUM( price ) " +
|
||||||
|
|||||||
Reference in New Issue
Block a user