|
|
|
@@ -106,20 +106,20 @@ |
|
|
|
</update> |
|
|
|
|
|
|
|
<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 |
|
|
|
and `box_id` = #{boxId} |
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<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 |
|
|
|
and `id` = #{meterId} |
|
|
|
</update> |
|
|
|
|
|
|
|
<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 |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
#{idItem} |
|
|
|
@@ -127,7 +127,7 @@ |
|
|
|
</update> |
|
|
|
|
|
|
|
<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} |
|
|
|
</update> |
|
|
|
|
|
|
|
|