insert into parking_space(
area,parking_type,num,pa_id,ps_id,remark,state,community_id
) values (
#{area},#{parkingType},#{num},#{paId},#{psId},#{remark},#{state},#{communityId}
)
update parking_space t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.area= #{area}
, t.parking_type= #{parkingType}
, t.num= #{num}
, t.pa_id= #{paId}
, t.remark= #{remark}
, t.state= #{state}
, t.community_id= #{communityId}
where 1=1
and t.ps_id= #{psId}