insert into user_storehouse(res_name, res_code, store_id, stock, res_id, user_id, mini_stock, us_id, times_id) values (#{resName}, #{resCode}, #{storeId}, #{stock}, #{resId}, #{userId}, #{miniStock}, #{usId}, #{timesId}) update user_storehouse t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.res_name= #{resName} , t.res_code= #{resCode} , t.store_id= #{storeId} , t.stock= #{stock} , t.res_id= #{resId} , t.user_id= #{userId} , t.mini_stock= #{miniStock} , t.times_id= #{timesId} where 1=1 and t.us_id= #{usId}