insert into business_floor(floor_id, operate, name, remark, b_id, user_id, floor_num, community_id, floor_area)
values (#{floorId}, #{operate}, #{name}, #{remark}, #{bId}, #{userId}, #{floorNum}, #{communityId},
#{floorArea})
insert into f_floor(
floor_id,name,status_cd,remark,b_id,user_id,floor_num,community_id,floor_area
) select t.floor_id,t.name,'0',t.remark,t.b_id,t.user_id,t.floor_num,t.community_id,t.floor_area
from business_floor t where 1=1
and t.floor_id= #{floorId}
and t.operate= 'ADD'
and t.name= #{name}
and t.remark= #{remark}
and t.b_id= #{bId}
and t.user_id= #{userId}
and t.floor_num= #{floorNum}
and t.community_id= #{communityId}
update f_floor t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.name= #{name}
, t.floor_area= #{floorArea}
, t.remark= #{remark}
, t.user_id= #{userId}
, t.floor_num= #{floorNum}
where 1=1
and t.floor_id= #{floorId}
and t.community_id= #{communityId}
and t.b_id= #{bId}