예제 #1
0
        /// <summary>
        /// 插入银行活动组配置
        /// </summary>
        /// <param name="config"></param>
        /// <param name="operateUser"></param>
        /// <returns></returns>
        public bool InsertBankActivityGroupConfig(BankActivityGroupConfig config, string operateUser)
        {
            bool result = false;

            try
            {
                TuhuGrouponDbScopeManager.Execute(conn => result = BankMRActivityDal.InsertBankActivityGroupConfig(conn, config));
                var log = new BeautyOprLog
                {
                    LogType     = "InsertBankActivityGroupConfig",
                    IdentityID  = config.ActivityId.ToString(),
                    OldValue    = null,
                    NewValue    = JsonConvert.SerializeObject(config),
                    Remarks     = $"插入银行活动组配置,活动ID:{config.ActivityId}",
                    OperateUser = operateUser,
                };
                LoggerManager.InsertLog("BeautyOprLog", log);
            }
            catch (Exception ex)
            {
                Logger.Error(ex.Message, ex);
            };

            return(result);
        }