Browse Source

CodeSettingAppService GetAll方法

master
mahao 1 year ago
parent
commit
3575818ba0
  1. 13
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs
  2. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs

13
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.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
using Win.Sfs.SettleAccount.Entities.CodeSettings; using Win.Sfs.SettleAccount.Entities.CodeSettings;
using Win.Sfs.SettleAccount.Entities.Controls;
using Win.Sfs.SettleAccount.Entities.ImportMap; using Win.Sfs.SettleAccount.Entities.ImportMap;
using Win.Sfs.SettleAccount.ExcelImporter; using Win.Sfs.SettleAccount.ExcelImporter;
using Win.Sfs.Shared.CacheBase; using Win.Sfs.Shared.CacheBase;
@ -108,6 +109,18 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables
return result; return result;
} }
/// <summary>
/// 获取全部
/// </summary>
/// <returns>实体DTO列表</returns>
[HttpGet]
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>
/// 获取列表 /// 获取列表
/// </summary> /// </summary>

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

@ -65,7 +65,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls
#region CURD #region CURD
/// <summary> /// <summary>
/// 获取全部实体列表 /// 获取全部
/// </summary> /// </summary>
/// <returns>实体DTO列表</returns> /// <returns>实体DTO列表</returns>
[HttpGet] [HttpGet]

Loading…
Cancel
Save