delete from charge where id = #{id}; update charge c set c.num = #{num}, c.model = #{model}, c.install_date = #{installDate}, c.expiration_date = #{expirationDate}, c.power = #{power}, c.chargeModel = #{chargeModel} where 1=1 and c.lamp_pole_id = #{lampPoleId} and c.id = #{id}