Procházet zdrojové kódy

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

release_toaliyun_real
gongbiao před 6 roky
rodič
revize
f57900fdfd
2 změnil soubory, kde provedl 3 přidání a 5 odebrání
  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 Zobrazit soubor

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

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



Načítá se…
Zrušit
Uložit