Przeglądaj źródła

[Sql][修改][租金账单及物业账单索引]

release_toaliyun_real
gongbiao 7 lat temu
rodzic
commit
7516f66a1d
3 zmienionych plików z 8 dodań i 2 usunięć
  1. +6
    -0
      mallinkAdmin/src/main/resources/db/migration/V201907031432__G_ALTER_BILL_RENT_PROPERTY.sql
  2. +1
    -1
      mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml
  3. +1
    -1
      mallinkService/src/main/resources/mapper/WxBillRentMapper.xml

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

@@ -0,0 +1,6 @@
alter table wx_bill_rent add index m(merchant_id);
alter table wx_bill_rent add index s_e(starttime,endtime);

alter table wx_bill_property add index m(merchant_id);
alter table wx_bill_property add index s_e(starttime,endtime);


+ 1
- 1
mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml Wyświetl plik

@@ -216,7 +216,7 @@
</update>
<select id="selectBillOne" parameterType="com.iformall.domain.po.WxBillProperty">
select * from wx_bill_rent where tenant_id#{tenantId} and merchant_id=#{merchantId}
select * from wx_bill_rent where merchant_id=#{merchantId}
AND rent_shop_type = #{rentShopType} AND is_preview = #{isPreview}
AND date_format(starttime,'%Y-%m-%d 00:00:00.0') = #{starttime} AND date_format(endtime,'%Y-%m-%d 00:00:00.0') = #{endtime}
</select>


+ 1
- 1
mallinkService/src/main/resources/mapper/WxBillRentMapper.xml Wyświetl plik

@@ -216,7 +216,7 @@
</update>
<select id="selectBillOne" parameterType="com.iformall.domain.po.WxBillRent">
select * from wx_bill_rent where tenant_id#{tenantId} and merchant_id=#{merchantId}
select * from wx_bill_rent where merchant_id=#{merchantId}
AND rent_shop_type = #{rentShopType} AND is_preview = #{isPreview}
AND date_format(starttime,'%Y-%m-%d 00:00:00.0') = #{starttime} AND date_format(endtime,'%Y-%m-%d 00:00:00.0') = #{endtime}
</select>


Ładowanie…
Anuluj
Zapisz