insert into business_resource_store_specification( rss_id,rst_id,operate,spec_name,description,b_id,store_id,parent_rst_id ) values ( #{rssId},#{rstId},#{operate},#{specName},#{description},#{bId},#{storeId},#{parentRstId} ) insert into resource_store_specification( rss_id,rst_id,spec_name,description,status_cd,b_id,store_id,parent_rst_id ) select t.rss_id,t.rst_id,t.spec_name,t.description,'0',t.b_id,t.store_id,t.parent_rst_id from business_resource_store_specification t where 1=1 and t.rss_id= #{rssId} and t.rst_id= #{rstId} and t.parent_rst_id= #{parentRstId} and t.operate= 'ADD' and t.spec_name= #{specName} and t.description= #{description} and t.b_id= #{bId} and t.store_id= #{storeId} update resource_store_specification t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.rst_id= #{rstId} , t.parent_rst_id= #{parentRstId} , t.spec_name= #{specName} , t.description= #{description} , t.store_id= #{storeId} where 1=1 and t.rss_id= #{rssId} and t.b_id= #{bId}