diff --git a/src/Shentun.Peis.Application/Reports/ReportAppService.cs b/src/Shentun.Peis.Application/Reports/ReportAppService.cs
index f606452..27ecf8f 100644
--- a/src/Shentun.Peis.Application/Reports/ReportAppService.cs
+++ b/src/Shentun.Peis.Application/Reports/ReportAppService.cs
@@ -80,21 +80,30 @@ namespace Shentun.Peis.Reports
///
///
[HttpPost("api/app/Report/GetList")]
- public async Task> GetListAsync(PagedAndSortedResultRequestDto input)
+ public async Task> GetListAsync(ReportIdInputDto input)
{
- var reportList = await _repository.GetListAsync();
+ // var reportList = await _repository.GetListAsync();
+ var entity = await _repository.GetAsync(input.Id);
+ var aEntity = ObjectMapper.Map(entity);
- List reports= new List();
+ var userList = await _userRepository.GetListAsync();
+ aEntity.IsActived = entity.IsActive.Equals('Y');
+ aEntity.CreatorName = EntityHelper.GetSurnameNoSql(userList, entity.CreatorId);
+ aEntity.LastModifierName = EntityHelper.GetSurnameNoSql(userList, entity.LastModifierId);
- foreach(var report in reportList)
+ List reports = new List
{
- var aEntity= ObjectMapper.Map(report);
- var userList = await _userRepository.GetListAsync();
- aEntity.IsActived = report.IsActive.Equals('Y');
- aEntity.CreatorName = EntityHelper.GetSurnameNoSql(userList, report.CreatorId);
- aEntity.LastModifierName = EntityHelper.GetSurnameNoSql(userList, report.LastModifierId);
- reports.Add(aEntity);
- }
+ aEntity
+ };
+ //foreach(var report in reportList)
+ //{
+ // var aEntity= ObjectMapper.Map(report);
+ // var userList = await _userRepository.GetListAsync();
+ // aEntity.IsActived = report.IsActive.Equals('Y');
+ // aEntity.CreatorName = EntityHelper.GetSurnameNoSql(userList, report.CreatorId);
+ // aEntity.LastModifierName = EntityHelper.GetSurnameNoSql(userList, report.LastModifierId);
+ // reports.Add(aEntity);
+ //}
return reports;
}