现金支付统计

This commit is contained in:
wangw 2024-05-17 15:32:24 +08:00
parent f35c2b4c59
commit c8756d1104
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ public interface TbOrderInfoRepository extends JpaRepository<TbOrderInfo, Intege
"SUM( info.orderAmount)) " +
"FROM TbOrderInfo info " +
"WHERE info.shopId = :shopId " +
"AND info.tradeDay > :startTime AND info.tradeDay < :endTime " +
"AND info.createdAt > :startTime AND info.createdAt < :endTime " +
"AND info.orderType = 'cash' " +
"AND ((info.status = 'closed') OR ( info.status ='refund' AND info.orderType != 'return' )) ")
TbOrderPayCountVo queryOrderPayCash(@Param("shopId") String shopId, @Param("startTime") Long startTime, @Param("endTime") Long endTime);