格式更改

This commit is contained in:
liuyingfang
2024-04-18 11:52:42 +08:00
parent 19ff867dee
commit d2388d56ea

View File

@@ -82,7 +82,7 @@ public interface TbOrderInfoRepository extends JpaRepository<TbOrderInfo, Intege
"ORDER BY info.tradeDay DESC")
Page<TbOrderPayCountByDayVo> queryTbOrderPayCountByDay(@Param("shopId") String shopId, @Param("startTime") Long startTime, @Param("endTime") Long endTime, Pageable pageable);
@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," +
"SUM( CASE WHEN status = 'closed' THEN num ELSE 0 END ) as salesNum," +
"SUM( price ) " +