| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- using Lottomat.Application.Entity.SystemManage;
- using Lottomat.Application.IService.SystemManage;
- using Lottomat.Application.Service.SystemManage;
- using Lottomat.Util.WebControl;
- using System.Collections.Generic;
- using System;
- using System.Linq.Expressions;
- using Lottomat.Application.Code;
- namespace Lottomat.Application.Busines.SystemManage
- {
- /// <summary>
- /// 版 本 1.0
- /// Copyright (c) 2016-2017
- /// 创 建:超级管理员
- /// 日 期:2017-10-25 16:17
- /// 描 述:系统接口密钥管理
- /// </summary>
- public class AppKeyBLL
- {
- private IAppKeyService service = new AppKeyService();
- #region 获取数据
- /// <summary>
- /// 获取列表
- /// </summary>
- /// <param name="pagination">分页</param>
- /// <param name="queryJson">查询参数</param>
- /// <returns>返回分页列表</returns>
- public IEnumerable<AppKeyEntity> GetPageList(Pagination pagination, string queryJson)
- {
- return service.GetPageList(pagination, queryJson);
- }
- /// <summary>
- /// 获取列表
- /// </summary>
- /// <param name="queryJson">查询参数</param>
- /// <returns>返回列表</returns>
- public IEnumerable<AppKeyEntity> GetList(string queryJson)
- {
- return service.GetList(queryJson);
- }
- /// <summary>
- /// 获取实体
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <returns></returns>
- public AppKeyEntity GetEntity(string keyValue)
- {
- return service.GetEntity(keyValue);
- }
- public AppKeyEntity GetEntity(Expression<Func<AppKeyEntity, bool>> condition)
- {
- return service.GetEntity(condition);
- }
- #endregion
- #region 提交数据
- /// <summary>
- /// 删除数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void RemoveForm(string keyValue)
- {
- try
- {
- service.RemoveForm(keyValue);
- }
- catch (Exception)
- {
- throw;
- }
- }
- /// <summary>
- /// 保存表单(新增、修改)
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <param name="entity">实体对象</param>
- /// <returns></returns>
- public void SaveForm(string keyValue, AppKeyEntity entity)
- {
- try
- {
- service.SaveForm(keyValue, entity);
- }
- catch (Exception)
- {
- throw;
- }
- }
- #endregion
- }
- }
|