delete
from ac_dev_info
where id in
#{ids}
insert into ac_dev_info(deviceName,
acAddress,
type,
networkIP,
areaid,
sectionid,
latitude,
longitude,
createtime,
updatetime)
values (#{deviceName},
#{acAddress},
#{type},
#{networkIP},
#{areaId},
#{sectionId},
#{latitude},
#{longitude},
#{createTime},
#{updateTime})
update
ac_dev_info a
set
a.deviceName = #{deviceName},
a.acAddress = #{acAddress},
a.type = #{type},
a.networkIP = #{networkIP},
a.areaid = #{areaId},
a.sectionid = #{sectionId},
a.longitude = #{longitude},
a.latitude = #{latitude},
a.updatetime = #{updateTime}
where
a.id = #{id}
update
ac_dev_info
set
access_token = #{accessToken},refresh_token = #{refreshToken},updatetime = #{updateTime}
where
id = #{id}