添加库存管理,入库、出库,收款、回款接口

This commit is contained in:
橙子
2023-01-08 21:52:18 +08:00
parent 8077450be0
commit 27ca377762
28 changed files with 1285 additions and 10 deletions

View File

@@ -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)