diff --git a/eladmin-system/src/main/resources/mapper/plus/TbShopTableBookingMapper.xml b/eladmin-system/src/main/resources/mapper/plus/TbShopTableBookingMapper.xml index d12a883c..d898e886 100644 --- a/eladmin-system/src/main/resources/mapper/plus/TbShopTableBookingMapper.xml +++ b/eladmin-system/src/main/resources/mapper/plus/TbShopTableBookingMapper.xml @@ -9,7 +9,7 @@ count( case when x.`status` = 10 then 1 end) AS consumeOrders, count( case when x.`status` = -1 or x.`status` = 999 then 1 end) AS cancelOrders from tb_shop_table_booking x - where x.shopId = #{shopId} + where x.shop_id = #{shopId} and x.phone_number in #{phoneNumber, jdbcType=VARCHAR}