Przeglądaj źródła

[sql][修改][为wx_shop表添加索引]

release_toaliyun_real
gongbiao 6 lat temu
rodzic
commit
f57900fdfd
2 zmienionych plików z 3 dodań i 5 usunięć
  1. +1
    -0
      mallinkAdmin/src/main/resources/db/migration/V201907151441__G_ALTER_SHOP.sql
  2. +2
    -5
      mallinkService/src/main/resources/mapper/WxShopMapper.xml

+ 1
- 0
mallinkAdmin/src/main/resources/db/migration/V201907151441__G_ALTER_SHOP.sql Wyświetl plik

@@ -0,0 +1 @@
alter table wx_shop add index t_i_t_s_b_f_c(tenant_id,is_del,type,status,building,floor,create_date);

+ 2
- 5
mallinkService/src/main/resources/mapper/WxShopMapper.xml Wyświetl plik

@@ -546,9 +546,6 @@

<select id="getCountByWxShop" parameterType="com.iformall.domain.po.WxShop" resultType="Long">
select count(*) from wx_shop w where w.is_del=0
<if test=" null != tenantId ">
and w.`tenant_id`= #{tenantId}
</if>
<if test="null != type">
and `type`=#{type}
</if>
@@ -562,10 +559,10 @@
and floor = #{floor}
</if>
<if test="null != startdate">
and ms.`create_date` >= #{startdate}
and `create_date` >= #{startdate}
</if>
<if test="null != enddate">
and ms.`create_date` &lt;= #{enddate}
and `create_date` &lt;= #{enddate}
</if>
</select>



Ładowanie…
Anuluj
Zapisz