--创建update触发器
create trigger trig_update
on ICStockBill
for update
as
if exists(select 1 from inserted where isnull(fcheckerid,0)>0 )
if exists(select 1 from Deleted where isnull(fcheckerid,0)=0 )
begin
update ICStockBillEntry set FQty=E.FQty+100 from ICStockBillEntry E , Deleted d ,Inserted i
where E.FInterID = d.FInterID
end
select * from ICStockBillEntry
drop trigger trig_update
金蝶kis云触发器解决审核和反审核的问题
最新推荐文章于 2023-08-05 10:33:41 发布