陶杰
2024-11-10 63607e10ec3f4a7d6264a52c3e783a98be68368d
src/main/resources/mapper/customer/FollowMapper.xml
@@ -21,4 +21,11 @@
        </if>
        ORDER BY f.create_time DESC
    </select>
    <select id="getStatisFansCount" resultType="java.lang.Integer">
        SELECT IFNULL(COUNT(DISTINCT f.user_id), 0)
        FROM t_follow_supplier f
        WHERE f.deleted = 0
        AND f.supplier_id = #{supplierId};
    </select>
</mapper>