|
|
@ -143,7 +143,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
|
/// </remarks>
|
|
|
|
/// <param name="id">ID</param>
|
|
|
|
/// <returns>实体DTO</returns>
|
|
|
|
[HttpGet] |
|
|
|
[HttpPost] |
|
|
|
virtual public async Task<CodeSettingDto> GetAsync(Guid id) |
|
|
|
{ |
|
|
|
var result = await _repository.GetAsync(id); |
|
|
@ -179,7 +179,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
|
/// </remarks>
|
|
|
|
/// <param name="input">请求条件</param>
|
|
|
|
/// <returns>实体DTO列表</returns>
|
|
|
|
[HttpGet] |
|
|
|
[HttpPost] |
|
|
|
virtual public async Task<PagedResultDto<CodeSettingDto>> GetListAsync(CodeSettingRequestDto input) |
|
|
|
{ |
|
|
|
var entities = await _repository.GetListByFilterAsync(input.BranchId, input.Filters, input.Sorting, input.MaxResultCount, |
|
|
@ -196,7 +196,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
|
/// 获取实体总数
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>实体总数</returns>
|
|
|
|
[HttpGet] |
|
|
|
[HttpPost] |
|
|
|
virtual public async Task<long> GetTotalCountAsync(Guid branchId) |
|
|
|
{ |
|
|
|
return await _repository.GetCountAsync(branchId); |
|
|
@ -206,7 +206,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
|
/// 获取全部实体列表
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>实体DTO列表</returns>
|
|
|
|
[HttpGet] |
|
|
|
[HttpPost] |
|
|
|
virtual public async Task<ListResultDto<CodeSettingDto>> GetAllAsync(Guid branchId) |
|
|
|
{ |
|
|
|
var entities = await _repository.GetAllAsync(branchId, true); |
|
|
|