insert into u_org(belong_community_id, org_name, parent_org_id, allow_operation, description, org_level,
store_id, org_id)
values (#{belongCommunityId}, #{orgName}, #{parentOrgId}, #{allowOperation}, #{description}, #{orgLevel},
#{storeId}, #{orgId})
update u_org t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.belong_community_id= #{belongCommunityId}
, t.org_name= #{orgName}
, t.parent_org_id= #{parentOrgId}
, t.allow_operation= #{allowOperation}
, t.description= #{description}
, t.org_level= #{orgLevel}
, t.store_id= #{storeId}
where 1=1
and t.org_id= #{orgId}