update d_device_ser set status_=#{status},update_time_=now() where ip_=#{ip} and port_ = #{port}
update d_device_ser set status_=#{status},update_time_=now(), ip_=#{ip}, port_ = #{port} where sn_ = #{sn}
update d_device_ser set status_=#{status} where company_id_=#{companyId} and PROTOCOL_ != 'TCP_DEFAULT'
update d_device_ser set CONTROL_MODEL_=#{controlModel},STATUS_ = 'Y',update_time_=now() where id_=#{id} and company_id_ = #{companyId}
update d_device_ser set
CABLE_FORMAT_=#{ser.cableFormat},
CABLE_TYPE_=#{ser.cableType},
POWER_MODEL_=#{ser.powerModel},
CABLE_Z_=#{ser.cableZ},
CABLE_Y_=#{ser.cableY},
CABLE_X_=#{ser.cableX},
STATUS_ = 'Y',
IP_ = #{ser.ip},
PORT_ = #{ser.port},
SN_ = #{ser.sn},
ORG_ID_ = #{ser.orgId},
update_time_=now()
where id_=#{ser.id}
and company_id_ = #{ser.companyId}
update d_device_ser
STATUS_ = 'Y',
IP_ = #{data.ip},
PORT_ = #{data.port},
update_time_=now()
where COMPANY_ID_ = #{data.companyId}
AND ID_ = #{data.id}