fix 订单聚合返回状态
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using Kurisu.AspNetCore.Utils.Extensions;
|
using Dlhis.Entity.Canteen.Enums;
|
||||||
|
using Kurisu.AspNetCore.Utils.Extensions;
|
||||||
|
|
||||||
namespace Dlhis.Canteen.Order.Response;
|
namespace Dlhis.Canteen.Order.Response;
|
||||||
|
|
||||||
@@ -55,4 +56,12 @@ public class OrderAggregationResponse
|
|||||||
public DateTime CreateTime { get; set; }
|
public DateTime CreateTime { get; set; }
|
||||||
|
|
||||||
public string Remark { get; set; }
|
public string Remark { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 订单状态
|
||||||
|
/// </summary>
|
||||||
|
public CanteenOrderStatusEnumType OrderStatus { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public string OrderStatusDesc => OrderStatus.GetDescription();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -303,6 +303,7 @@ public class OrderService : BaseOrderService, IOrderService
|
|||||||
BusinessPlaceName = bplace.Name,
|
BusinessPlaceName = bplace.Name,
|
||||||
CreateTime = x.CreateTime,
|
CreateTime = x.CreateTime,
|
||||||
Remark = x.Remark,
|
Remark = x.Remark,
|
||||||
|
OrderStatus = x.OrderStatus,
|
||||||
})
|
})
|
||||||
.ToPageListAsync(page);
|
.ToPageListAsync(page);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user