insert into lamp_pole(name,number,height,areaid,sectionid,longitude,latitude,createtime,create_id,install_date,expiration_date
)
values
(#{name},#{number},#{height},#{areaId},#{sectionId},#{longitude},#{latitude},#{createTime},#{createId},#{installDate},#{expirationDate}
)
update lamp_pole
set
sn = #{sn},
name = #{name},
number = #{number},
height = #{height},
areaid = #{areaId},
devtype = #{devType},
sectionid = #{sectionId},
longitude = #{longitude},
latitude = #{latitude},
install_date = #{installDate},
expiration_date = #{expirationDate},
id=#{id}
where id = #{id}
delete from lamp_pole
where id=#{id}
update
lamp_pole l
set
l.longitude = #{longitude},
l.latitude = #{latitude}
where l.id = #{id}
update
lamp_pole l
set
l.devtype = #{devType}
where
l.id = #{id}
update
lamp_pole l
set
l.dir = #{dir},
l.icon_info = #{iconInfo}
where
l.id = #{id}
update lamp_pole
set
sn = #{sn},
name = #{name},
number = #{number},
height = #{height},
areaid = #{areaId},
devtype = #{devType},
sectionid = #{sectionId},
longitude = #{longitude},
latitude = #{latitude},
install_date = #{installDate},
expiration_date = #{expirationDate},
id=#{id}
where id = #{id}