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

[电表][修复]:采集器绑定解绑接口问题

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

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

@@ -106,20 +106,20 @@
</update> </update>


<update id="unbindBatch" parameterType="java.lang.Long"> <update id="unbindBatch" parameterType="java.lang.Long">
update kw_merchant_meter set bind_status = 1, box_id = 0
update kw_meter set bind_status = 1, box_id = 0
where bind_status = 0 where bind_status = 0
and `box_id` = #{boxId} and `box_id` = #{boxId}
</update> </update>




<update id="unbind" parameterType="java.lang.Long"> <update id="unbind" parameterType="java.lang.Long">
update kw_merchant_meter set bind_status = 1, box_id = 0
update kw_meter set bind_status = 1, box_id = 0
where bind_status = 0 where bind_status = 0
and `id` = #{meterId} and `id` = #{meterId}
</update> </update>


<update id="bindBatch" parameterType="map"> <update id="bindBatch" parameterType="map">
update kw_merchant_meter set bind_status = 0, box_id = #{boxId}
update kw_meter set bind_status = 0, box_id = #{boxId}
where id in where id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
#{idItem} #{idItem}
@@ -127,7 +127,7 @@
</update> </update>


<update id="bind" parameterType="map"> <update id="bind" parameterType="map">
update kw_merchant_meter set bind_status = 0, box_id = #{boxId}
update kw_meter set bind_status = 0, box_id = #{boxId}
where `id` = #{id} where `id` = #{id}
</update> </update>




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