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

[电表][修复]:电表列表增加参数过滤

release_toaliyun_real
hupeng 6 лет назад
Родитель
Сommit
ba4967474b
1 измененных файлов: 7 добавлений и 3 удалений
  1. +7
    -3
      mallinkService/src/main/resources/mapper/KwMeterMapper.xml

+ 7
- 3
mallinkService/src/main/resources/mapper/KwMeterMapper.xml Просмотреть файл

@@ -67,6 +67,13 @@
and `bind_status` = #{bindStatus} and `bind_status` = #{bindStatus}
</if> </if>


<if test=" null != merchantMeterStatus and 1 == merchantMeterStatus">
and `id` not in (select meter_id from kw_merchant_meter where status = 0)
</if>
<if test=" null != merchantMeterStatus and 0 == merchantMeterStatus">
and `id` in (select meter_id from kw_merchant_meter where status = 0)
</if>

<if test=" null != ids "> <if test=" null != ids ">
and id in and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
@@ -80,9 +87,6 @@
select select
<include refid="allColumns"/> <include refid="allColumns"/>
from kw_meter from kw_meter
<if test=" null != merchantMeterStatus ">
inner join kw_merchant_meter mm on mm.meter_id = id and mm.status = #{merchantMeterStatus}
</if>
<include refid="dynamicWhereConditions"/> <include refid="dynamicWhereConditions"/>
</select> </select>




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