/// <summary> /// 更新分销商微信公众号菜单 /// </summary> /// <param name="customizeMenu">微信菜单实体</param> /// <returns></returns> public override int UpdateMkCustomizeMenu(MkCustomizeMenu customizeMenu) { int rowsAffected = Context.Update <MkCustomizeMenu>("MkCustomizeMenu", customizeMenu) .AutoMap(x => x.SysNo) .Where(x => x.SysNo) .Execute(); return(rowsAffected); }
/// <summary> /// 保存微信菜单 /// </summary> /// <param model>模型</param> /// <remarks>2016-1-11 王耀发 创建</remarks> public Result SaveMkCustomizeMenu(MkCustomizeMenu model, SyUser user) { Result r = new Result() { Status = false }; MkCustomizeMenu entity = IMkCustomizeMenuDao.Instance.GetEntity(model.SysNo); if (entity != null) { model.SysNo = entity.SysNo; int rowsAffected = IMkCustomizeMenuDao.Instance.UpdateMkCustomizeMenu(model); if (rowsAffected > 0) { r.Status = true; r.Message = "保存成功"; } else { r.Status = false; r.Message = "保存失败"; } } else { int rowsAffected = IMkCustomizeMenuDao.Instance.AddMkCustomizeMenu(model); if (rowsAffected > 0) { r.Status = true; r.Message = "保存成功"; } else { r.Status = false; r.Message = "保存失败"; } } return(r); }
/// <summary> /// 更新分销商微信公众号菜单 /// </summary> /// <param name="customizeMenu">微信菜单实体</param> /// <returns></returns> public int UpdateMkCustomizeMenu(MkCustomizeMenu customizeMenu) { return(IMkCustomizeMenuDao.Instance.UpdateMkCustomizeMenu(customizeMenu)); }
/// <summary> /// 添加分销商微信菜单 /// </summary> /// <param name="customizeMenu">微信菜单实体</param> /// <returns></returns> public int AddMkCustomizeMenu(MkCustomizeMenu customizeMenu) { return(IMkCustomizeMenuDao.Instance.AddMkCustomizeMenu(customizeMenu)); }
/// <summary> /// 更新分销商微信公众号菜单 /// </summary> /// <param name="customizeMenu">微信菜单实体</param> /// <returns></returns> public abstract int UpdateMkCustomizeMenu(MkCustomizeMenu customizeMenu);
/// <summary> /// 添加分销商微信菜单 /// </summary> /// <param name="customizeMenu">微信菜单实体</param> /// <returns></returns> public abstract int AddMkCustomizeMenu(MkCustomizeMenu customizeMenu);
/// <summary> /// 添加分销商微信菜单 /// </summary> /// <param name="customizeMenu">微信菜单实体</param> /// <returns></returns> public override int AddMkCustomizeMenu(MkCustomizeMenu customizeMenu) { return(Context.Insert <MkCustomizeMenu>("MkCustomizeMenu", customizeMenu) .AutoMap(x => x.SysNo) .ExecuteReturnLastId <int>()); }