mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-15 21:56:38 +08:00
添加库存管理,入库、出库,收款、回款接口
This commit is contained in:
@@ -31,14 +31,14 @@ namespace Yi.Framework.Service.Base.Crud
|
||||
public IRepository<TEntity> Repository { get; set; }
|
||||
|
||||
|
||||
public async Task<List<TGetListOutputDto>> GetListAsync()
|
||||
public virtual async Task<List<TGetListOutputDto>> GetListAsync()
|
||||
{
|
||||
var entitys = await Repository.GetListAsync();
|
||||
var entityDtos = await MapToGetListOutputDtosAsync(entitys);
|
||||
return entityDtos;
|
||||
}
|
||||
|
||||
public async Task<TGetOutputDto> GetByIdAsync(TKey id)
|
||||
public virtual async Task<TGetOutputDto> GetByIdAsync(TKey id)
|
||||
{
|
||||
var entity = await GetEntityByIdAsync(id);
|
||||
if (entity is null)
|
||||
|
||||
Reference in New Issue
Block a user