insert into bm_area(length,width,area,lon,lat,ma_type,house_id,is_active) values (#{length},#{width},#{area},#{lon},#{lat},#{orgId},#{houseName},1) update bm_area set length = #{length}, width = #{width}, area = #{area}, lon = #{lon}, lat = #{lat}, ma_type = #{orgId}, house_id = #{houseName} where ID = #{id} delete from bm_area where ID = #{id} DELETE FROM bm_area WHERE id in( #{o.id} )