田爽 před 11 měsíci
rodič
revize
443b4cb34b

+ 1 - 1
src/Hotline.Api/Controllers/OrderController.cs

@@ -4779,7 +4779,7 @@ public class OrderController : BaseController
     /// <returns></returns>
 	[HttpPost("secondary_handling/apply_export")]
 	public async Task<FileStreamResult> OrderSecondaryHandlingApplyExport([FromBody] ExportExcelDto<MayScreenListDto> dto)
-	{
+	{   
 		var query = _orderSecondaryHandlingApplication.ApplyQuery(dto.QueryDto, HttpContext.RequestAborted);
 		List<OrderVisitDetail> visitDetails;
 		if (dto.IsExportAll)

+ 2 - 1
src/Hotline.Application/Orders/OrderSecondaryHandlingApplication.cs

@@ -155,8 +155,9 @@ namespace Hotline.Application.Orders
 					HandlerType = step.HandlerType,
 					BusinessType = step.BusinessType
 				};
+				var reTransactNum = order.ReTransactNum is null ? 1 : order.ReTransactNum + 1;
 				var expiredTime = _timeLimitDomainService.CalcEndTime(DateTime.Now, order.AcceptTypeCode);
-				await _orderRepository.Updateable().SetColumns(o => new Order() { ExpiredTime = expiredTime.ExpiredTime, NearlyExpiredTime = expiredTime.NearlyExpiredTime })
+				await _orderRepository.Updateable().SetColumns(o => new Order() { ExpiredTime = expiredTime.ExpiredTime, NearlyExpiredTime = expiredTime.NearlyExpiredTime, ReTransactNum = reTransactNum })
 					.Where(o => o.Id == order.Id).ExecuteCommandAsync(cancellationToken);
 				var orderDto = _mapper.Map<OrderDto>(order);
 				await _capPublisher.PublishAsync(Hotline.Share.Mq.EventNames.HotlineOrderExpiredTimeUpdate, orderDto, cancellationToken: cancellationToken);