/// <summary>
        /// 删除之前判断是否关联了业务
        /// </summary>
        /// <param name="dynamicData"></param>
        public override void BeforeDynamicObjectDelete(FapDynamicObject fapDynamicData)
        {
            string fid   = fapDynamicData.Get("Fid").ToString();
            bool   allow = _wfService.AllowDeleteProcessTemplate(fid);

            if (allow)
            {
                _dbContext.Execute($"delete from WfProcess where Fid='{fid}'");
            }
            else
            {
                WfProcess wft = _dbContext.Get <WfProcess>(fid);
                throw new Exception($"流程[{wft.ProcessName}]已关联业务,不能删除");
            }
        }