华三的可靠性试验申请的流程

第一环节创建

第二环节提交到第三环节的时候,调用d_YWZC_new_Main_Flow,

首先往td_YWZC_Main_Flow表中插入数据,把ISLatest、ToOtherPerson、当前创建人、创建时间、

将之前的流程,设置为不是最新状态,之前的同样环节的激活状态,设置为0

更新主表(td_YWZC_Main)的状态,[更新主表的状态以及当前责任人]

然后更新当前责任人td_YWZC_Main_ChargePerson的激活状态,

更新第二环节的状态为IsNowFlowNode=0,IsNowChargePerson=0

然后更新第三环节的状态为IsNowFlowNode=1,IsNowChargePerson=1

然后插入读者权限td_YWZC_Main_Reader

d_YWZC_set_Main_Flow_token1,

更新td_YWZC_Main_ChargePerson表中,IsNowChargePerson=0

where MainAID=@AID and FlowCode=@FlowNode and IsNowFlowNode=1 and ChargePerson=@UserName



 

原文地址:https://www.cnblogs.com/sanshengshitouhua/p/14480637.html