optimize
wet 2 years ago
parent d14184724f
commit c4ccdfd2b0

@ -45,5 +45,7 @@ namespace Myshipping.Application
Task BachUpdate(BatchUpdate dto); Task BachUpdate(BatchUpdate dto);
Task<string> InnerBookingOrClosingEDI(BookingOrClosingEDIOrderDto model); Task<string> InnerBookingOrClosingEDI(BookingOrClosingEDIOrderDto model);
Task<dynamic> SendBookingOrder(long[] ids);
} }
} }

@ -68,7 +68,7 @@ namespace Myshipping.Application
private readonly SqlSugarRepository<CodeForwarder> _codeForwarder; private readonly SqlSugarRepository<CodeForwarder> _codeForwarder;
private readonly SqlSugarRepository<BookingFile> _bookingfile; private readonly SqlSugarRepository<BookingFile> _bookingfile;
private readonly SqlSugarRepository<DjyWebsiteAccountConfig> _accountconfig; private readonly SqlSugarRepository<DjyWebsiteAccountConfig> _accountconfig;
private readonly IBookingOrderService _bookingorderservice;
public DataSyncService(ILogger<DataSyncService> logger, ISysCacheService cache, SqlSugarRepository<BookingOrder> rep, SqlSugarRepository<BookingCtn> repCtn, public DataSyncService(ILogger<DataSyncService> logger, ISysCacheService cache, SqlSugarRepository<BookingOrder> rep, SqlSugarRepository<BookingCtn> repCtn,
@ -78,7 +78,7 @@ namespace Myshipping.Application
SqlSugarRepository<BookingGoodsStatus> goodsStatus, SqlSugarRepository<BookingGoodsStatusConfig> goodsStatusConfig, SqlSugarRepository<DjyTenantLine> repline, SqlSugarRepository<BookingGoodsStatus> goodsStatus, SqlSugarRepository<BookingGoodsStatusConfig> goodsStatusConfig, SqlSugarRepository<DjyTenantLine> repline,
SqlSugarRepository<BookingRemark> bookingremark, SqlSugarRepository<MappingCarrier> mapcarrier, SqlSugarRepository<CodeForwarder> codeForwarder, SqlSugarRepository<BookingRemark> bookingremark, SqlSugarRepository<MappingCarrier> mapcarrier, SqlSugarRepository<CodeForwarder> codeForwarder,
SqlSugarRepository<CodePort> codePortRep, SqlSugarRepository<CodeLane> codeLaneRep, ICommonDBService commonDBService, SqlSugarRepository<RelaPortCarrierLane> relaPortLane, SqlSugarRepository<CodePort> codePortRep, SqlSugarRepository<CodeLane> codeLaneRep, ICommonDBService commonDBService, SqlSugarRepository<RelaPortCarrierLane> relaPortLane,
SqlSugarRepository<DjyWebsiteAccountConfig> accountconfig, SqlSugarRepository<BookingFile> bookingfile) SqlSugarRepository<DjyWebsiteAccountConfig> accountconfig, SqlSugarRepository<BookingFile> bookingfile, IBookingOrderService bookingorderservice)
{ {
this._logger = logger; this._logger = logger;
this._rep = rep; this._rep = rep;
@ -105,6 +105,7 @@ namespace Myshipping.Application
this._codeForwarder = codeForwarder; this._codeForwarder = codeForwarder;
this._accountconfig = accountconfig; this._accountconfig = accountconfig;
this._bookingfile = bookingfile; this._bookingfile = bookingfile;
this._bookingorderservice = bookingorderservice;
} }
@ -1762,6 +1763,7 @@ namespace Myshipping.Application
await _rep.AsUpdateable(it).IgnoreColumns().ExecuteCommandAsync(); await _rep.AsUpdateable(it).IgnoreColumns().ExecuteCommandAsync();
} }
await _bookingorderservice.SendBookingOrder(order.Select(x => x.Id).ToArray());
} }

Loading…
Cancel
Save