Esempio n. 1
0
 /// <summary>
 /// 删除配置(逻辑删除
 /// </summary>
 /// <param name="model">model</param>
 /// <returns></returns>
 public int DeleteWxAppConfig(WxAppUserEventConfigModel model)
 {
     model.UpdateBy = ThreadIdentity.Operator.Name;
     using (var conn = ProcessConnection.OpenConfiguration)
     {
         return(dal.DeleteWxAppConfig(conn, model));
     }
 }
 /// <summary>
 /// 删除配置(逻辑删除
 /// </summary>
 /// <param name="model">model</param>
 /// <returns></returns>
 public int DeleteWxAppConfig(WxAppUserEventConfigModel model)
 {
     model.UpdateBy = ThreadIdentity.Operator.Name;
     using (var conn = ProcessConnection.OpenConfiguration)
     {
         var result = dal.DeleteWxAppConfig(conn, model);
         if (result > 0)
         {
             new CommonConfigLogManager().AddCommonConfigLogInfo(new CommonConfigLogModel
             {
                 BeforeValue = $"Config:{model.PKID}",
                 AfterValue  = "",
                 ObjectId    = model.OriginId,
                 ObjectType  = "WxAppConfigLog",
                 Remark      = $"删除【{model.PKID}】小程序配置",
                 Creator     = ThreadIdentity.Operator.Name
             });
         }
         return(result);
     }
 }