insert into network(network_name,devicesn,protocoltype,areaid,sectionid,createtime,net_type,gatewaytype,devicetype,userId)
values
(#{networkName},#{deviceSn},#{protocolType},#{areaId},#{sectionId},#{createTime},#{netType},#{gatewayType},#{deviceType},#{userId})
update network
set
network_name=#{networkName},
devicesn=#{deviceSn},
protocoltype=#{protocolType},
areaid=#{areaId},
sectionid=#{sectionId},
devicetype=#{deviceType}
where id = #{id}