예제 #1
0
        /// <summary>
        /// 根据ID删除银行活动组配置
        /// </summary>
        /// <param name="id"></param>
        /// <param name="operateUser"></param>
        /// <returns></returns>
        public bool DeleteBankActivityGroupConfigByPKID(int pkid, string operateUser)
        {
            bool result = false;

            try
            {
                var oldValue = TuhuGrouponDbScopeManager.Execute(conn => BankMRActivityDal.SelectBankActivityGroupConfigByPKID(conn, pkid));
                TuhuGrouponDbScopeManager.Execute(conn => result = BankMRActivityDal.DeleteBankActivityGroupConfigByPKID(conn, pkid));
                var log = new BeautyOprLog
                {
                    LogType     = "DeleteBankActivityGroupConfigByPKID",
                    IdentityID  = pkid.ToString(),
                    OldValue    = JsonConvert.SerializeObject(oldValue),
                    NewValue    = null,
                    Remarks     = $"删除银行活动组配置,{pkid}:{pkid}",
                    OperateUser = operateUser,
                };
                LoggerManager.InsertLog("BeautyOprLog", log);
            }
            catch (Exception ex)
            {
                Logger.Error(ex.Message, ex);
            }
            return(result);
        }