添加轨迹发生事件

This commit is contained in:
李鹏军 2024-03-01 14:21:54 +08:00
parent 2a4a550fa8
commit 60c2b221ea
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,6 @@
namespace SJZY.Track.Application.Contract.Events;
public class TrackUpsertEvent
{
public int OrderId { get; set; }
}

View File

@ -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; return true;