insert into business_resource_store( res_name,operate,price,res_code,description,store_id,stock,warning_stock,b_id,res_id, unit_code,remark,out_low_price,out_high_price,show_mobile,create_time,sh_id,average_price,rst_id,rss_id ) values ( #{resName},#{operate},#{price},#{resCode},#{description},#{storeId},#{stock},#{warningStock},#{bId},#{resId}, #{unitCode},#{remark},#{outLowPrice},#{outHighPrice},#{showMobile},#{createTime},#{shId}, #{averagePrice},#{rstId},#{rssId} ) insert into resource_store( res_name,price,res_code,description,status_cd,store_id,stock,warning_stock,b_id,res_id,unit_code,remark, out_low_price,out_high_price,show_mobile,create_time,sh_id,average_price,rst_id,rss_id ) select t.res_name,t.price,t.res_code,t.description,'0',t.store_id,t.stock,t.warning_stock,t.b_id,t.res_id, t.unit_code,t.remark,t.out_low_price,t.out_high_price,t.show_mobile,t.create_time,t.sh_id,t.average_price,t.rst_id,t.rss_id from business_resource_store t where 1=1 and t.res_name= #{resName} and t.operate= 'ADD' and t.price= #{price} and t.res_code= #{resCode} and t.rst_id= #{rstId} and t.rss_id= #{rssId} and t.description= #{description} and t.store_id= #{storeId} and t.stock= #{stock} and t.warning_stock= #{warningStock} and t.b_id= #{bId} and t.res_id= #{resId} and t.unit_code= #{unitCode} and t.remark= #{remark} and t.out_low_price= #{outLowPrice} and t.out_high_price= #{outHighPrice} and t.show_mobile= #{showMobile} and t.average_price= #{averagePrice} and t.create_time= #{createTime} update resource_store t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.res_name= #{resName} , t.price= #{price} , t.rst_id= #{rstId} , t.rss_id= #{rssId} , t.out_low_price= #{outLowPrice} , t.out_high_price= #{outHighPrice} , t.unit_code= #{unitCode} , t.show_mobile= #{showMobile} , t.remark= #{remark} , t.res_code= #{resCode} , t.description= #{description} , t.store_id= #{storeId} , t.stock= #{stock} , t.warning_stock= #{warningStock} , t.sh_id= #{shId} , t.average_price= #{averagePrice} where 1=1 and t.b_id= #{bId} and t.res_id= #{resId}