|
|
|
@ -418,7 +418,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
var mapcarrier = _mapcarrier.Where(x => x.Module == "HeChuan").ToList();
|
|
|
|
|
var userlist = _repUser.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID).ToList();
|
|
|
|
|
var mlist = _vesselinfo.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID&&x.IsDeleted==false).ToList();
|
|
|
|
|
var mlist = _vesselinfo.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false).ToList();
|
|
|
|
|
var orderlist = _rep.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false).ToList();
|
|
|
|
|
foreach (var item in model)
|
|
|
|
|
{
|
|
|
|
@ -458,9 +458,14 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
if (m == null)
|
|
|
|
|
{
|
|
|
|
|
var e= mlist.Where(x => x.CARRIERID == entity.CARRIERID && x.Vessel == entity.Vessel && x.Voyno == entity.Voyno && x.VoynoInside == entity.VoynoInside).FirstOrDefault();
|
|
|
|
|
var e = mlist.Where(x => x.CARRIERID == entity.CARRIERID && x.Vessel == entity.Vessel && x.Voyno == entity.Voyno && x.VoynoInside == entity.VoynoInside).FirstOrDefault();
|
|
|
|
|
if (e == null)
|
|
|
|
|
{
|
|
|
|
|
//2023年7月27日,王书岚:航次为V.开头的不查询船期
|
|
|
|
|
if (!string.IsNullOrEmpty(entity.VoynoInside) && entity.VoynoInside.StartsWith("V."))
|
|
|
|
|
{
|
|
|
|
|
entity.Sign = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await _vesselinfo.InsertAsync(entity);
|
|
|
|
|
}
|
|
|
|
@ -522,7 +527,7 @@ namespace Myshipping.Application
|
|
|
|
|
it.LstShipOrderCompareMode
|
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
|
await _bookingorderservice.SaveLog(it, old);
|
|
|
|
|
await _bookingorderservice.SendBookingOrder(new long[] { it.Id});
|
|
|
|
|
await _bookingorderservice.SendBookingOrder(new long[] { it.Id });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1651,7 +1656,7 @@ namespace Myshipping.Application
|
|
|
|
|
[SqlSugarUnitOfWork]
|
|
|
|
|
public async Task SaveSyncVesselDate(List<DjyVesselDto> dto)
|
|
|
|
|
{
|
|
|
|
|
var infolist = _vesselinfo.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID&&x.IsDeleted==false).ToList();
|
|
|
|
|
var infolist = _vesselinfo.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false).ToList();
|
|
|
|
|
var orderlist = await _rep.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false).ToListAsync();
|
|
|
|
|
foreach (var item in dto)
|
|
|
|
|
{
|
|
|
|
@ -2263,7 +2268,7 @@ namespace Myshipping.Application
|
|
|
|
|
o.ATD = item.OpTime;
|
|
|
|
|
await _rep.UpdateAsync(o);
|
|
|
|
|
flag = true;
|
|
|
|
|
await _bookingorderservice.SaveLog(o,oldorder);
|
|
|
|
|
await _bookingorderservice.SaveLog(o, oldorder);
|
|
|
|
|
}
|
|
|
|
|
if (!string.IsNullOrEmpty(o.VESSEL) && !string.IsNullOrEmpty(o.VOYNO) && !string.IsNullOrEmpty(o.CARRIERID))
|
|
|
|
|
{
|
|
|
|
@ -2271,7 +2276,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
foreach (var it in order)
|
|
|
|
|
{
|
|
|
|
|
var _oldorder= it;
|
|
|
|
|
var _oldorder = it;
|
|
|
|
|
var _oldatd = it.ATD;
|
|
|
|
|
if (_oldatd != item.OpTime)
|
|
|
|
|
{
|
|
|
|
@ -2351,7 +2356,8 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
if (flag) {
|
|
|
|
|
if (flag)
|
|
|
|
|
{
|
|
|
|
|
await _bookingorderservice.SendBookingOrder(new long[] { all[0].BookingId });
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -2380,7 +2386,7 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
var list = await _vesselinfo.AsQueryable().Filter(null, true)
|
|
|
|
|
.Where(x => x.Sign == false && x.ATD == null
|
|
|
|
|
&&x.IsDeleted==false
|
|
|
|
|
&& x.IsDeleted == false
|
|
|
|
|
&& x.TenantId == UserManager.TENANT_ID
|
|
|
|
|
&& (x.Voyno != null && x.Voyno != "")
|
|
|
|
|
&& x.ETD < DateTime.Today.AddDays(15)) //2023年7月19日,根据吴悦蓉反馈,查询3周左右的即可,再远的无效,而且也会产生无效提醒;2023年7月25日,改为2周
|
|
|
|
|