insert into TestTb(userxxid,deptxxid,grade,co_code,fo_co_code,modidate,modxxuserid)
values((select userxxid from #tb1),(select deptxxid from #tb2),(select grade from #tb1),(select co_code from #tb1),(select fo_co_code from #tb2),(select modidate from #tb1),(select modxxuserid from #tb1))