李昊 4 years ago
parent
commit
740495539b

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/VipEquity/VipEquityRepository.cs

@@ -34,7 +34,7 @@ namespace GxPress.Repository.Implement.VipEquity
         public async Task<IEnumerable<VipEquityResult>> GetAllAsync()
         {
             var result = await _repository.GetAllAsync(Q.OrderByDesc(nameof(Entity.tede2.VipEquity.VipEquity.CreatedDate)));
-            var items= result.Select(n => _mapper.Map<VipEquityResult>(n));
+            var items= result.Select(n => _mapper.Map<VipEquityResult>(n)).ToList();
             foreach (var item in items)
             {
                 item.VipTypeValue=((GxPress.EnumConst.VipCardTypeConst)item.VipType).GetDescriptionOriginal();