添加轨迹发生事件
This commit is contained in:
parent
2a4a550fa8
commit
60c2b221ea
@ -0,0 +1,6 @@
|
||||
namespace SJZY.Track.Application.Contract.Events;
|
||||
|
||||
public class TrackUpsertEvent
|
||||
{
|
||||
public int OrderId { get; set; }
|
||||
}
|
||||
@ -81,7 +81,12 @@ public class TrackService : ApplicationService
|
||||
}
|
||||
|
||||
// 根据订单关联关系向下刷,不同子系统还需要做内容映射
|
||||
var links = await _orderRepository.GetLinkedOrderIdsAsync(orderId);
|
||||
var linkedOrderIds = await _orderRepository.GetLinkedOrderIdsAsync(orderId);
|
||||
|
||||
if (linkedOrderIds.Count > 0)
|
||||
{
|
||||
await _capPublisher.PublishAsync(TrackCustomer.CapSubscribe, new TrackUpsertEvent { });
|
||||
}
|
||||
|
||||
// 推送
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user