|
@@ -16,6 +16,7 @@ using Hotline.Share.Enums.FlowEngine;
|
|
|
using Hotline.Share.Enums.Order;
|
|
|
using Hotline.Share.Enums.Snapshot;
|
|
|
using Hotline.Share.Tools;
|
|
|
+using Hotline.Snapshot;
|
|
|
using Hotline.Snapshot.Interfaces;
|
|
|
using Mapster;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
@@ -137,10 +138,11 @@ public class SnapshotOrderController : BaseController
|
|
|
public async Task<SignOrderSnapshotDetailOutDto> GetSignOrderSnapshotDetailAsync(string id)
|
|
|
{
|
|
|
var order = await _orderRepository.Queryable()
|
|
|
- .Where(m => m.Id == id)
|
|
|
- .Select(m => new SignOrderSnapshotDetailOutDto { Id = m.Id, Title = m.Title})
|
|
|
+ .LeftJoin<OrderSnapshot>((order, snapshot) => order.Id == snapshot.Id)
|
|
|
+ .Where((order, snapshot) => order.Id == id)
|
|
|
+ .Select((order, snapshot) => new SignOrderSnapshotDetailOutDto { Id = order.Id, Title = order.Title, Lables =snapshot.Labels })
|
|
|
.FirstAsync();
|
|
|
- order.Lables = _systemDicDataCacheManager.SnapshotOrderLabel;
|
|
|
+ order.LabelsBaseData = _systemDicDataCacheManager.SnapshotOrderLabel;
|
|
|
return order;
|
|
|
}
|
|
|
|