insert into business_bus( business_type_cd,name,description,id ) values ( #{businessTypeCd},#{name},#{description},#{id} ) insert into c_business_type( business_type_cd,name,description,id ) select t.business_type_cd,t.name,t.description,t.id from business_bus t where 1=1 and t.business_type_cd= #{businessTypeCd} and t.name= #{name} and t.description= #{description} and t.id= #{id} update c_business_type t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.business_type_cd= #{businessTypeCd} , t.name= #{name} , t.description= #{description} where 1=1 and t.id= #{id}