You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.9 KiB
79 lines
1.9 KiB
3 years ago
|
using ce.autofac.extension;
|
||
|
using learun.iapplication;
|
||
|
using learun.util;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace learun.application
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 版 本 EasyCode EC管理后台
|
||
|
/// Copyright (c) 2019-present EC管理有限公司
|
||
|
/// 创建人:tobin
|
||
|
/// 日 期:2019.10.23
|
||
|
/// 描 述:常用字段
|
||
|
/// </summary>
|
||
|
public class DbFieldBLL : BLLBase, DbFieldIBLL, BLL
|
||
|
{
|
||
|
private readonly DbFieldService commonFieldService = new DbFieldService();
|
||
|
|
||
|
#region 获取数据
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取列表数据
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public Task<IEnumerable<DbFieldEntity>> GetList(string queryJson)
|
||
|
{
|
||
|
return commonFieldService.GetList(queryJson);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取列表分页数据
|
||
|
/// </summary>
|
||
|
/// <param name="pagination">分页参数</param>
|
||
|
/// <param name="queryJson">查询参数</param>
|
||
|
/// <returns></returns>
|
||
|
public Task<IEnumerable<DbFieldEntity>> GetPageList(Pagination pagination, string queryJson)
|
||
|
{
|
||
|
return commonFieldService.GetPageList(pagination, queryJson);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取实体数据
|
||
|
/// </summary>
|
||
|
/// <param name="keyValue">主键</param>
|
||
|
/// <returns></returns>
|
||
|
public Task<DbFieldEntity> GetEntity(string keyValue)
|
||
|
{
|
||
|
return commonFieldService.GetEntity(keyValue);
|
||
|
}
|
||
|
|
||
|
#endregion 获取数据
|
||
|
|
||
|
#region 提交数据
|
||
|
|
||
|
/// <summary>
|
||
|
/// 删除实体数据
|
||
|
/// </summary>
|
||
|
/// <param name="keyValue">主键</param>
|
||
|
/// <returns></returns>
|
||
|
public async Task DeleteEntity(string keyValue)
|
||
|
{
|
||
|
await commonFieldService.DeleteEntity(keyValue);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 保存实体数据(新增、修改)
|
||
|
/// </summary>
|
||
|
/// <param name="keyValue">主键</param>
|
||
|
/// <param name="entity">实体</param>
|
||
|
/// <returns></returns>
|
||
|
public async Task SaveEntity(string keyValue, DbFieldEntity entity)
|
||
|
{
|
||
|
await commonFieldService.SaveEntity(keyValue, entity);
|
||
|
}
|
||
|
|
||
|
#endregion 提交数据
|
||
|
}
|
||
|
}
|