diff --git a/mallinkAdmin/src/main/resources/db/migration/V201907151402__G_ALTER_SHOP.sql b/mallinkAdmin/src/main/resources/db/migration/V201907151402__G_ALTER_SHOP.sql
new file mode 100644
index 000000000..8c8140a9b
--- /dev/null
+++ b/mallinkAdmin/src/main/resources/db/migration/V201907151402__G_ALTER_SHOP.sql
@@ -0,0 +1 @@
+alter table wx_shop add index b_f(building,floor);
diff --git a/mallinkService/src/main/resources/mapper/WxShopMapper.xml b/mallinkService/src/main/resources/mapper/WxShopMapper.xml
index 1f905f1f7..5165550af 100644
--- a/mallinkService/src/main/resources/mapper/WxShopMapper.xml
+++ b/mallinkService/src/main/resources/mapper/WxShopMapper.xml
@@ -572,9 +572,15 @@
DATE_FORMAT(w.create_date,'%Y/%m') xTime
,count(distinct w.shop_id) xCount
- from wx_merchant_shop w
+ from wx_merchant_shop w left join wx_shop s on w.shop_id=s.id
where w.is_del=0
and w.tenant_id = #{tenantId}
+
+ and s.building=#{building}
+
+
+ and s.floor=#{floor}
+
group by xTime
order by xTime