Merge branch 'ww' into test

This commit is contained in:
wangw 2024-09-29 10:30:23 +08:00
commit 45907f107d
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public interface TbShopUserFlowMapper extends BaseMapper<TbShopUserFlow> {
" LEFT JOIN ( " +
" SELECT shop_user_id, SUM(amount) AS total_amount " +
" FROM tb_shop_user_flow " +
" WHERE biz_code IN ('cashMemberIn','scanMemberIn', 'scanMemberAwardIn') " +
" WHERE biz_code IN ('cashMemberIn', 'inMoneyIn', 'scanMemberIn') " +
" AND create_time BETWEEN #{startTime} AND #{endTime} " +
" GROUP BY shop_user_id " +
" ) AS flow ON flow.shop_user_id = a.id " +

View File

@ -17,7 +17,7 @@ import java.util.List;
**/
public interface TbShopTableRepository extends JpaRepository<TbShopTable, Integer>, JpaSpecificationExecutor<TbShopTable> {
@Query
@Query("select count(1) from TbShopTable table where table.shopId = :shopId")
int countAllByShopId(@Param("shopId")Integer shopId);
@Query("select table from TbShopTable table where table.qrcode = :qrcode")