Browse Source

店铺管理商家ID 店铺ID 修改生成逻辑

wangxy 1 month ago
parent
commit
71656f61d5
1 changed files with 10 additions and 0 deletions
  1. 10 0
      fs-service/src/main/resources/mapper/hisStore/FsStoreScrmMapper.xml

+ 10 - 0
fs-service/src/main/resources/mapper/hisStore/FsStoreScrmMapper.xml

@@ -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>