From 8048a3147c9c0bdcd9749dbd7d412021fe3ea2db Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 11 六月 2025 10:14:19 +0800 Subject: [PATCH] fix:运营端--订单管理--退款管理,供应商订单状态为充值失败,退款审核操作驳回后,退款管理列表该笔订单消失 --- LifePayment/LifePayment.Application/Promoter/PromoterService.cs | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/LifePayment/LifePayment.Application/Promoter/PromoterService.cs b/LifePayment/LifePayment.Application/Promoter/PromoterService.cs index e43e167..ac00aea 100644 --- a/LifePayment/LifePayment.Application/Promoter/PromoterService.cs +++ b/LifePayment/LifePayment.Application/Promoter/PromoterService.cs @@ -153,8 +153,8 @@ query = query.Where(s => s.Name.Contains(input.SearchKey) || s.PhoneNumber.Contains(input.SearchKey) - || s.Name.Contains(input.SearchKey) - || s.PhoneNumber.Contains(input.SearchKey)); + || s.PromoterName.Contains(input.SearchKey) + || s.PromoterPhoneNumber.Contains(input.SearchKey)); } var result = await query.GetPageResult(input.PageModel); @@ -225,7 +225,7 @@ /// <param name="input"></param> /// <returns></returns> /// <exception cref="FormatException"></exception> - public async Task<Guid> CreateOrUpdatePromoter(CreateOrUpdatePromoterInput input) + public async Task<CreateOrUpdatePromoterOutput> CreateOrUpdatePromoter(CreateOrUpdatePromoterInput input) { CheckExtensions.IfTrueThrowUserFriendlyException(string.IsNullOrWhiteSpace(input.Name), "璇疯緭鍏ユ帹骞夸汉"); CheckExtensions.IfTrueThrowUserFriendlyException(string.IsNullOrWhiteSpace(input.PhoneNumber), "璇疯緭鍏ヨ仈绯绘柟寮�"); @@ -248,7 +248,11 @@ var entity = new LifePayPromoter(); ObjectMapper.Map(input, entity); await lifePayPromoterRepository.InsertAsync(entity); - return entity.Id; + return new CreateOrUpdatePromoterOutput + { + Id = entity.Id, + IdNumber = entity.IdNumber, + }; } else { @@ -256,7 +260,11 @@ CheckExtensions.IfTrueThrowUserFriendlyException(entity == null, "璇ユ帹骞垮憳涓嶅瓨鍦�"); ObjectMapper.Map(input, entity); await lifePayPromoterRepository.UpdateAsync(entity); - return entity.Id; + return new CreateOrUpdatePromoterOutput + { + Id = entity.Id, + IdNumber = entity.IdNumber, + }; } } -- Gitblit v1.9.1