select location_id, mac, onenet_msg, longitude, latitude, create_time, at, status, lock_status from et_location_log
insert into et_location_log
mac,
onenet_msg,
longitude,
latitude,
create_time,
at,
status,
lock_status,
#{mac},
#{onenetMsg},
#{longitude},
#{latitude},
#{createTime},
#{at},
#{status},
#{lockStatus},
update et_location_log
mac = #{mac},
onenet_msg = #{onenetMsg},
longitude = #{longitude},
latitude = #{latitude},
create_time = #{createTime},
at = #{at},
status = #{status},
lock_status = #{lockStatus},
where location_id = #{locationId}
delete from et_location_log where location_id = #{locationId}
delete from et_location_log where location_id in
#{locationId}
delete from et_location_log
where create_time <= now() - INTERVAL 7 DAY