Просмотр исходного кода

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

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
7516f66a1d
3 измененных файлов: 8 добавлений и 2 удалений
  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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

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


Загрузка…
Отмена
Сохранить