学 赵 1 year ago
parent
commit
4621dee0c0
  1. 12
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs
  2. 11
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs

12
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs

@ -24,6 +24,7 @@ using Win.Sfs.SettleAccount.CommonManagers;
using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
using Win.Sfs.SettleAccount.Entities.CodeSettings;
using Win.Sfs.SettleAccount.Entities.Controls;
using Win.Sfs.SettleAccount.Entities.ImportMap;
using Win.Sfs.SettleAccount.ExcelImporter;
using Win.Sfs.Shared.CacheBase;
@ -108,6 +109,17 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables
return result;
}
/// <summary>
/// 获取全部
/// </summary>
[HttpPost]
public async Task<ListResultDto<CodeSettingDto>> GetAllAsync()
{
var entities = await _repository.GetAllAsync(true);
var dtos = ObjectMapper.Map<List<CodeSetting>, List<CodeSettingDto>>(entities);
return new ListResultDto<CodeSettingDto>(dtos);
}
/// <summary>
/// 获取列表
/// </summary>

11
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs

@ -64,6 +64,17 @@ namespace Win.Sfs.SettleAccount.Entities.Controls
#endregion
#region CURD
/// <summary>
/// 获取全部
/// </summary>
[HttpPost]
public async Task<ListResultDto<CentralizedControlDto>> GetAllAsync()
{
var entities = await _repository.GetAllAsync(true);
var dtos = ObjectMapper.Map<List<CentralizedControl>, List<CentralizedControlDto>>(entities);
return new ListResultDto<CentralizedControlDto>(dtos);
}
/// <summary>
/// 获取列表
/// </summary>

Loading…
Cancel
Save