MSSQL非个别计价的材料要自动配对(二)
ckon_cursor2
if (@vquantity > 0.0000001)
begin
exec throwexception 'mnf_finishedautobaterror';
break
end
fetch next from ar_reckon_cursor1
into @vitemno,@vgoodsid,@vquantity;
end--while @@fetch_status = 0
close ar_reckon_cursor1
deallocate ar_reckon_cursor1;
deallocate ar_reckon_cursor2;
end