只需要修改对应的单据Id(STK_MISCELLANEOUS --> FBILLFORMID)就可以简单的选择扫码出库
select *
--- update a set FBILLFORMID='STK_InStock'
from T_BD_SERIALBILLTRACE a left join T_BD_SERIALMASTER b on a.FSERIALID=b.FSERIALID
where b.fnumber in ('K20100800002340','K20100800002341')