INSERT INTO sys_equipment (deviceName,deviceNumber,deviceType,ownership,ownerId,devicestate,stime,coordinate,parent_id,jd,wd,addvcd,street,dtype,manufacturers) VALUES (#{deviceName},#{deviceNumber},#{deviceType},#{ownership},#{yname},#{devicestate},#{stime},POINT(#{jd},#{wd}),#{parentId},#{jd},#{wd},#{addvcd},#{streeName},#{dtype},#{manufacturers}) INSERT INTO sys_depl (deviceName,deviceNumber,contacts,calls,paddress,deploymentTime) VALUES (#{deviceName},#{deviceNumber},#{contacts},#{call},#{paddress},#{deploymentTime}) update sys_equipment SET deviceName=#{deviceName},deviceNumber=#{deviceNumber},deviceType=#{deviceType}, ownership=#{ownership},ownerId=#{yname},devicestate=#{devicestate},stime=#{stime},coordinate=POINT(#{jd},#{wd}), parent_id=#{parentId},jd=#{jd},wd=#{wd},addvcd=#{addvnm},street=#{streeName},dtype=#{dtype},manufacturers=#{manufacturers} where id=#{id} update sys_equipment SET devicestate = 1 where id in (${arr}) update sys_equipment SET devicestate = 0 where id in (${arr}) update sys_equipment SET heartbeat=#{heartbeat} where deviceNumber=#{deviceNumber} update sys_equipment SET expireTime=#{expireTime} where deviceNumber=#{deviceNumber} update sys_equipment SET dtype=#{dtype},reason=#{reason} where deviceNumber=#{deviceNumber} UPDATE sys_equipment SET dtype = 1 WHERE id IN #{id} UPDATE sys_equipment SET dtype = 0 WHERE id IN #{id} INSERT INTO equipment_play_info (number, serial_number, manufacturer, bmp, address, create_time) VALUES (#{number}, #{serialNumber}, #{manufacturer}, #{bmp}, #{address}, #{createTime}); update equipment_play_info set bmp=#{bmp},address=#{address} where id=#{id}