Commit a6528837 by 杨林龙

优化激活数据更新 仅对没有删除的 并且绑定的数据进行更新

1 parent ea7ba07d
...@@ -103,12 +103,14 @@ ...@@ -103,12 +103,14 @@
<update id="updateVehicleDeviceBysn"> <update id="updateVehicleDeviceBysn">
update t_vehicle_device update t_vehicle_device
set set
active_location_date = #{activeLocationDate}, active_location_date = #{activeLocationDate},
active_location_type = #{activeLocationType}, active_location_type = #{activeLocationType},
active_location_lat = #{activeLocationLat}, active_location_lat = #{activeLocationLat},
active_location_lng = #{activeLocationLng}, active_location_lng = #{activeLocationLng},
active_location_address = #{activeLocationAddress} active_location_address = #{activeLocationAddress}
where sn = #{sn} where sn = #{sn}
and del_flag = 0
and bind_status = 1
</update> </update>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!