insert into reserve_catalog(
catalog_id,name,sort,state,community_id,type
) values (
#{catalogId},#{name},#{sort},#{state},#{communityId},#{type}
)
update reserve_catalog t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.name= #{name}
, t.sort= #{sort}
, t.state= #{state}
, t.community_id= #{communityId}
, t.type= #{type}
where 1=1
and t.catalog_id= #{catalogId}