|
|
@@ -494,4 +494,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</foreach>
|
|
|
GROUP BY ss.store_id
|
|
|
</select>
|
|
|
+ <select id="countNewMerchantsByDate" resultType="java.lang.Long">
|
|
|
+ SELECT COUNT(DISTINCT business_code) FROM fs_store_scrm
|
|
|
+ WHERE merchant_id LIKE CONCAT(#{datePrefix}, '%')
|
|
|
+ AND business_code IS NOT NULL
|
|
|
+ AND business_code != ''
|
|
|
+ </select>
|
|
|
+ <select id="countStoresByMerchant" resultType="java.lang.Integer">
|
|
|
+ SELECT COUNT(*) FROM fs_store_scrm
|
|
|
+ WHERE merchant_id = #{merchantId}
|
|
|
+ </select>
|
|
|
</mapper>
|