shop_user问题

This commit is contained in:
2025-11-11 15:23:39 +08:00
parent 70b7d38bad
commit 21a40b8ddb
3 changed files with 14 additions and 1 deletions

View File

@@ -41,7 +41,7 @@
group by shop_id
</select>
<select id="getNewMemberCount" resultType="java.lang.Long">
select count(1) from tb_shop_user where shop_id = #{shopId} and is_vip = 1
select count(1) from tb_shop_user where main_shop_id = #{mainShopId} and is_vip = 1
<if test="beginDate != null and beginDate != ''">
and join_time >= str_to_date(#{beginDate}, '%Y-%m-%d %H:%i:%s')
</if>