|
|
@ -70,7 +70,7 @@ namespace Myshipping.Application
|
|
|
|
private readonly SqlSugarRepository<BookingLogDetail> _bookinglogdetail;
|
|
|
|
private readonly SqlSugarRepository<BookingLogDetail> _bookinglogdetail;
|
|
|
|
private readonly SqlSugarRepository<BookingRemark> _bookingremark;
|
|
|
|
private readonly SqlSugarRepository<BookingRemark> _bookingremark;
|
|
|
|
private readonly SqlSugarRepository<BookingFile> _bookingfile;
|
|
|
|
private readonly SqlSugarRepository<BookingFile> _bookingfile;
|
|
|
|
|
|
|
|
private readonly ISysDataUserMenu _right;
|
|
|
|
private readonly SqlSugarRepository<BookingPrintTemplate> _repPrint;
|
|
|
|
private readonly SqlSugarRepository<BookingPrintTemplate> _repPrint;
|
|
|
|
private readonly ILogger<BookingOrderService> _logger;
|
|
|
|
private readonly ILogger<BookingOrderService> _logger;
|
|
|
|
private readonly ISysCacheService _cache;
|
|
|
|
private readonly ISysCacheService _cache;
|
|
|
@ -98,8 +98,8 @@ namespace Myshipping.Application
|
|
|
|
SqlSugarRepository<BookingLog> bookinglog, SqlSugarRepository<BookingLogDetail> bookinglogdetail, SqlSugarRepository<BookingRemark> bookingremark,
|
|
|
|
SqlSugarRepository<BookingLog> bookinglog, SqlSugarRepository<BookingLogDetail> bookinglogdetail, SqlSugarRepository<BookingRemark> bookingremark,
|
|
|
|
SqlSugarRepository<BookingFile> bookingfile, SqlSugarRepository<DjyUserConfig> repUserConfig, SqlSugarRepository<BookingPrintTemplate> repPrint,
|
|
|
|
SqlSugarRepository<BookingFile> bookingfile, SqlSugarRepository<DjyUserConfig> repUserConfig, SqlSugarRepository<BookingPrintTemplate> repPrint,
|
|
|
|
SqlSugarRepository<SysDictData> dicdata, SqlSugarRepository<BookingStatusLog> statuslog, SqlSugarRepository<BookingStatusLogDetail> statuslogdetail,
|
|
|
|
SqlSugarRepository<SysDictData> dicdata, SqlSugarRepository<BookingStatusLog> statuslog, SqlSugarRepository<BookingStatusLogDetail> statuslogdetail,
|
|
|
|
ILogger<BookingOrderService> logger, ISysCacheService cache, IDjyWebsiteAccountConfigService webAccountConfig,
|
|
|
|
ILogger<BookingOrderService> logger, ISysCacheService cache, IDjyWebsiteAccountConfigService webAccountConfig, ISysDataUserMenu right,
|
|
|
|
SqlSugarRepository<BookingPrintTemplate> repPrintTemplate, SqlSugarRepository<BookingLetteryard> repLetterYard, SqlSugarRepository<SysUser> repUser,
|
|
|
|
SqlSugarRepository<BookingPrintTemplate> repPrintTemplate, SqlSugarRepository<BookingLetteryard> repLetterYard, SqlSugarRepository<SysUser> repUser,
|
|
|
|
SqlSugarRepository<BookingOrderUrl> repOrderUrl, SqlSugarRepository<BookingOrderContact> repOrderContact, SqlSugarRepository<BookingSampleBill> repSampleBill,
|
|
|
|
SqlSugarRepository<BookingOrderUrl> repOrderUrl, SqlSugarRepository<BookingOrderContact> repOrderContact, SqlSugarRepository<BookingSampleBill> repSampleBill,
|
|
|
|
SqlSugarRepository<DjyUserMailAccount> repUserMail, SqlSugarRepository<SysTenant> repTenant, SqlSugarRepository<BookingStatus> repBookingStatus, SqlSugarRepository<BookingEDIExt> bookingEDIExt,
|
|
|
|
SqlSugarRepository<DjyUserMailAccount> repUserMail, SqlSugarRepository<SysTenant> repTenant, SqlSugarRepository<BookingStatus> repBookingStatus, SqlSugarRepository<BookingEDIExt> bookingEDIExt,
|
|
|
|
IHttpContextAccessor httpContextAccessor)
|
|
|
|
IHttpContextAccessor httpContextAccessor)
|
|
|
@ -113,7 +113,7 @@ namespace Myshipping.Application
|
|
|
|
this._bookingremark = bookingremark;
|
|
|
|
this._bookingremark = bookingremark;
|
|
|
|
this._bookingfile = bookingfile;
|
|
|
|
this._bookingfile = bookingfile;
|
|
|
|
this._repPrint = repPrint;
|
|
|
|
this._repPrint = repPrint;
|
|
|
|
|
|
|
|
this._right = right;
|
|
|
|
this._cache = cache;
|
|
|
|
this._cache = cache;
|
|
|
|
this._webAccountConfig = webAccountConfig;
|
|
|
|
this._webAccountConfig = webAccountConfig;
|
|
|
|
this._repStatuslog = statuslog;
|
|
|
|
this._repStatuslog = statuslog;
|
|
|
@ -141,7 +141,7 @@ namespace Myshipping.Application
|
|
|
|
[HttpGet("/BookingOrder/Page")]
|
|
|
|
[HttpGet("/BookingOrder/Page")]
|
|
|
|
public async Task<dynamic> Page([FromQuery] BookingOrderInput input)
|
|
|
|
public async Task<dynamic> Page([FromQuery] BookingOrderInput input)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
List<long> userlist = await DataFilterExtensions.GetDataScopeIdList();
|
|
|
|
List<long> userlist = await _right.GetDataScopeList(351064299098181);
|
|
|
|
|
|
|
|
|
|
|
|
var entities = await _rep.AsQueryable().Where(x => x.ParentId == 0)
|
|
|
|
var entities = await _rep.AsQueryable().Where(x => x.ParentId == 0)
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.BSNO), u => u.BSNO.Contains(input.BSNO))
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.BSNO), u => u.BSNO.Contains(input.BSNO))
|
|
|
@ -290,8 +290,8 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var item in list.Items)
|
|
|
|
foreach (var item in list.Items)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var sta= await _repBookingStatus.AsQueryable().Where(x => x.BookingId == item.Id).ToListAsync();
|
|
|
|
var sta = await _repBookingStatus.AsQueryable().Where(x => x.BookingId == item.Id).ToListAsync();
|
|
|
|
if (sta!=null) { item.bookstatus = sta; }
|
|
|
|
if (sta != null) { item.bookstatus = sta; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1029,9 +1029,6 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 放舱(入货通知)
|
|
|
|
#region 放舱(入货通知)
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -2461,6 +2458,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
await _bookingfile.InsertAsync(bookFile);
|
|
|
|
await _bookingfile.InsertAsync(bookFile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#region 下载订舱、截单EDI
|
|
|
|
#region 下载订舱、截单EDI
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 下载订舱、截单EDI
|
|
|
|
/// 下载订舱、截单EDI
|
|
|
|