|
|
|
@ -129,7 +129,7 @@ namespace Myshipping.Application
|
|
|
|
|
private readonly IBookingGoodsStatusConfigService _GoodsConfig;
|
|
|
|
|
private readonly SqlSugarRepository<BookingLineOpMgrConfig> _repLineOpMgrConfig;
|
|
|
|
|
private readonly SqlSugarRepository<SysEmp> _repSysEmp;
|
|
|
|
|
private readonly SqlSugarRepository<Booking_AutoYardImport> _repAutoYard;
|
|
|
|
|
private readonly SqlSugarRepository<BookingAutoYardImport> _repAutoYard;
|
|
|
|
|
|
|
|
|
|
private readonly SqlSugarRepository<BookingExtendState> _repextendstate;
|
|
|
|
|
|
|
|
|
@ -156,7 +156,7 @@ namespace Myshipping.Application
|
|
|
|
|
SqlSugarRepository<BookingExcelTemplate> excelrep, SqlSugarRepository<DjyUserMailAccount> repUserMail, SqlSugarRepository<BookingGoodsStatus> goodsStatus, SqlSugarRepository<BookingGoodsStatusConfig> goodsStatusConfig,
|
|
|
|
|
SqlSugarRepository<SysTenant> repTenant, SqlSugarRepository<BookingStatus> repBookingStatus, SqlSugarRepository<BookingEDIExt> bookingEDIExt, SqlSugarRepository<BookingServiceItem> serviceItem,
|
|
|
|
|
SqlSugarRepository<ParaContractNoInfo> paraContractNoInfoRepository, IHttpContextAccessor httpContextAccessor, IBookingGoodsStatusConfigService GoodsConfig, SqlSugarRepository<DjyWebsiteAccountConfig> djyWebsiteAccountConfigRepository,
|
|
|
|
|
ISysOrgService orgService, SqlSugarRepository<BookingLineOpMgrConfig> repLineOpMgrConfig, SqlSugarRepository<SysEmp> repSysEmp, SqlSugarRepository<Booking_AutoYardImport> repAutoYard,
|
|
|
|
|
ISysOrgService orgService, SqlSugarRepository<BookingLineOpMgrConfig> repLineOpMgrConfig, SqlSugarRepository<SysEmp> repSysEmp, SqlSugarRepository<BookingAutoYardImport> repAutoYard,
|
|
|
|
|
IServiceWorkFlowManageService serviceWorkFlowManageService)
|
|
|
|
|
{
|
|
|
|
|
this._logger = logger;
|
|
|
|
@ -926,7 +926,7 @@ namespace Myshipping.Application
|
|
|
|
|
entity.VOYNO = entity.VOYNOINNER;
|
|
|
|
|
}
|
|
|
|
|
entity.VERSION = Guid.NewGuid().ToString();
|
|
|
|
|
|
|
|
|
|
//判断如果船名航次船公司变动 同步更新船期字段
|
|
|
|
|
if (entity.CARRIERID != mlist.CARRIERID || entity.VOYNO != mlist.VOYNO || entity.VESSEL != mlist.VESSEL)
|
|
|
|
|
{
|
|
|
|
|
var vess = await _vesselInfo.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID && x.CARRIERID == entity.CARRIERID &&
|
|
|
|
@ -978,6 +978,7 @@ namespace Myshipping.Application
|
|
|
|
|
it.ATA
|
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
|
var ctnlist = await _repCtn.AsQueryable().Filter(null, true).Where(x => x.BILLID == input.Id && x.IsDeleted == false).Select(x => x.Id).ToListAsync();
|
|
|
|
|
//删除箱信息 重新插入
|
|
|
|
|
await _repCtn.DeleteAsync(x => x.BILLID == input.Id);
|
|
|
|
|
await _ctndetailrep.DeleteAsync(x => ctnlist.Contains((long)x.CTNID));
|
|
|
|
|
if (input.ctnInputs != null)
|
|
|
|
@ -7928,12 +7929,15 @@ HLCUTA12307DPXJ3 以这票为例 6个柜
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"{bookId}({order.MBLNO})的箱封号自动引入完成");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//写入提示
|
|
|
|
|
await SaveAutoYardData(bookId, true, $"已自动引入", ctns.ToJson(), rtn.ToJson());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//写入提示
|
|
|
|
|
await SaveAutoYardData(bookId, true, $"已自动引入", ctns.ToJson(), rtn.ToJson(), read: true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -7942,17 +7946,23 @@ HLCUTA12307DPXJ3 以这票为例 6个柜
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[NonAction]
|
|
|
|
|
private async Task SaveAutoYardData(long bookId, bool success, string content, string ctnJson, string yardJson)
|
|
|
|
|
private async Task SaveAutoYardData(long bookId, bool success, string content, string ctnJson, string yardJson, bool read = false)
|
|
|
|
|
{
|
|
|
|
|
await _repAutoYard.DeleteAsync(x => x.Id == bookId);
|
|
|
|
|
|
|
|
|
|
//写入提示
|
|
|
|
|
var autoYard = new Booking_AutoYardImport();
|
|
|
|
|
var autoYard = new BookingAutoYardImport();
|
|
|
|
|
autoYard.Id = bookId;
|
|
|
|
|
autoYard.Status = success ? "已导入" : "未导入";
|
|
|
|
|
autoYard.Content = content;
|
|
|
|
|
autoYard.CtnJson = ctnJson;
|
|
|
|
|
autoYard.YardJson = yardJson;
|
|
|
|
|
if (read) //未开启自动写入的用户,自动已读
|
|
|
|
|
{
|
|
|
|
|
autoYard.IsRead = true;
|
|
|
|
|
autoYard.ReadTime = DateTime.Now;
|
|
|
|
|
autoYard.ReadUser = "系统";
|
|
|
|
|
}
|
|
|
|
|
await _repAutoYard.InsertAsync(autoYard);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -9235,6 +9245,7 @@ HLCUTA12307DPXJ3 以这票为例 6个柜
|
|
|
|
|
extends.noApply = noApply;
|
|
|
|
|
extends.applyNoPrint = applyNoPrint;
|
|
|
|
|
extends.print = print;
|
|
|
|
|
extends.IsLockBooking = false;
|
|
|
|
|
await _repextendstate.InsertAsync(extends);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|