Jason 1 éve
szülő
commit
2838205072

+ 3 - 2
src/Hotline.Api/Controllers/OrderController.cs

@@ -795,12 +795,13 @@ public class OrderController : BaseController
     /// <returns></returns>
     //[Permission(EPermission.DelayEntity)]
     [HttpGet("delay/{id}")]
-    public async Task<OrderDelay> DelayEntity(string id)
+    public async Task<OrderDelayDto> DelayEntity(string id)
     {
-        return await _orderDelayRepository.Queryable()
+        var model = await _orderDelayRepository.Queryable()
             .Includes(x => x.Order)
             .Includes(x => x.Employee)
             .FirstAsync(x => x.Id == id);
+        return _mapper.Map<OrderDelayDto>(model);
     }
 
     /// <summary>

+ 1 - 1
src/Hotline.Share/Dtos/Order/QueryOrderDto.cs

@@ -300,7 +300,7 @@ namespace Hotline.Share.Dtos.Order
         /// </summary>
         public ETimeType DelayUnit { get; set; }
 
-        public string DelayUnitText => DelayState.GetDescription();
+        public string DelayUnitText => DelayUnit.GetDescription();
 
         /// <summary>
         /// 延期申请理由