Merge branch 'S03-轨迹中台' into dev
This commit is contained in:
commit
33b9726416
@ -37,11 +37,11 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
|
|||||||
var order = await _orderRepository.GetFirstAsync(x =>
|
var order = await _orderRepository.GetFirstAsync(x =>
|
||||||
x.Id == @event.OrderId, x => new
|
x.Id == @event.OrderId, x => new
|
||||||
{
|
{
|
||||||
x.SubSystemId, x.LatestPushTrackCode, x.CustomId
|
x.SubSystemId, x.LatestPushTrackCode, x.QuestionType, x.CustomId
|
||||||
});
|
});
|
||||||
if (order == null) return;
|
if (order == null || order.QuestionType == (int)TrackProblemType.Error) return; // 是否通知?
|
||||||
|
|
||||||
TrackPushContentConfigDto? config = null;
|
TrackPushContentConfigDto? config;
|
||||||
|
|
||||||
var log = new TrackPushRecordIndex
|
var log = new TrackPushRecordIndex
|
||||||
{
|
{
|
||||||
@ -58,7 +58,6 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
|
|||||||
CreateTime = DateTime.Now
|
CreateTime = DateTime.Now
|
||||||
};
|
};
|
||||||
|
|
||||||
var allPush = false;
|
|
||||||
switch (@event.OptionType)
|
switch (@event.OptionType)
|
||||||
{
|
{
|
||||||
case OptionType.无:
|
case OptionType.无:
|
||||||
|
|||||||
@ -132,7 +132,9 @@ public class TrackOrderService : ApplicationService
|
|||||||
|
|
||||||
if (order == default) throw new BusinessException(message: "订单不存在");
|
if (order == default) throw new BusinessException(message: "订单不存在");
|
||||||
|
|
||||||
return await _orderRepository.UpdateColumnAsync(order, x => x.IsCompleted == input.IsCompleted);
|
order.IsCompleted = input.IsCompleted;
|
||||||
|
|
||||||
|
return await _orderRepository.UpdateColumnAsync(order, x => new { x.IsCompleted });
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user