insert into business_resource_store_type(rst_id, name, description, b_id, store_id, create_time, operate, parent_id) values (#{rstId}, #{name}, #{description}, #{bId}, #{storeId}, #{createTime}, #{operate}, #{parentId}) insert into resource_store_type( rst_id,name,description,status_cd,b_id,store_id,create_time,parent_id ) select t.rst_id,t.name,t.description,'0',t.b_id,t.store_id,t.create_time,t.parent_id from business_resource_store_type t where 1=1 and t.rst_id= #{rstId} and t.name= #{name} and t.description= #{description} and t.b_id= #{bId} and t.store_id= #{storeId} and t.parent_id= #{parentId} update resource_store_type t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.name= #{name} , t.description= #{description} , t.store_id= #{storeId} , t.parent_id= #{parentId} where 1=1 and t.rst_id= #{rstId} and t.b_id= #{bId}