库存统计、计费时间

master
zhangxiaofeng 7 months ago
parent 3d8066c359
commit 613413efac

@ -64,10 +64,6 @@ namespace Myshipping.Application.Event
&& x.PLACERECEIPT == paraObj.PLACERECEIPT)
.OrderByDescending(x => x.UpdatedTime)
.ToListAsync();
if (!baseList.Any())
{
return;
}
var stockObj = await _repStock.AsQueryable()
.Filter(null, true)
@ -79,6 +75,15 @@ namespace Myshipping.Application.Event
&& x.CARRIERID == paraObj.CARRIERID
&& x.PLACEDELIVERY == paraObj.PLACEDELIVERY
&& x.PLACERECEIPT == paraObj.PLACERECEIPT);
if (!baseList.Any())
{
// 从库存表删除这7项维度的库存数据
return;
}
if (stockObj == null)
{
stockObj = new BookingSlotStock();
@ -222,5 +227,10 @@ namespace Myshipping.Application.Event
/// 交货地
/// </summary>
public string PLACEDELIVERY { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long? TenantId { get; set; }
}
}

@ -11925,7 +11925,8 @@ namespace Myshipping.Application
x.VESSEL,
x.VOYNO,
x.PLACERECEIPT,
x.PLACEDELIVERY
x.PLACEDELIVERY,
x.TenantId
}).ToListAsync();
if (slotList.Count > 0)
@ -11958,7 +11959,8 @@ namespace Myshipping.Application
VESSEL = item.VESSEL,
VOYNO = item.VOYNO,
PLACERECEIPT = item.PLACERECEIPT,
PLACEDELIVERY = item.PLACEDELIVERY
PLACEDELIVERY = item.PLACEDELIVERY,
TenantId = item.TenantId
}));
}
}

@ -170,7 +170,8 @@ namespace Myshipping.Application
VESSEL = oldObj.VESSEL,
VOYNO = oldObj.VOYNO,
PLACERECEIPT = oldObj.PLACERECEIPT,
PLACEDELIVERY = oldObj.PLACEDELIVERY
PLACEDELIVERY = oldObj.PLACEDELIVERY,
TenantId = model.TenantId
}));
}
await _repCtn.DeleteAsync(x => x.SLOT_ID == model.Id);
@ -212,7 +213,8 @@ namespace Myshipping.Application
VESSEL = model.VESSEL,
VOYNO = model.VOYNO,
PLACERECEIPT = model.PLACERECEIPT,
PLACEDELIVERY = model.PLACEDELIVERY
PLACEDELIVERY = model.PLACEDELIVERY,
TenantId = model.TenantId
}));
return await Detail(model.Id);
@ -537,7 +539,8 @@ namespace Myshipping.Application
VESSEL = oldObj.VESSEL,
VOYNO = oldObj.VOYNO,
PLACERECEIPT = oldObj.PLACERECEIPT,
PLACEDELIVERY = oldObj.PLACEDELIVERY
PLACEDELIVERY = oldObj.PLACEDELIVERY,
TenantId = model.TenantId
}));
}
@ -659,7 +662,8 @@ namespace Myshipping.Application
VESSEL = model.VESSEL,
VOYNO = model.VOYNO,
PLACERECEIPT = model.PLACERECEIPT,
PLACEDELIVERY = model.PLACEDELIVERY
PLACEDELIVERY = model.PLACEDELIVERY,
TenantId = model.TenantId
}));
}
else
@ -1044,7 +1048,8 @@ namespace Myshipping.Application
VESSEL = latestSlot.VESSEL,
VOYNO = latestSlot.VOYNO,
PLACERECEIPT = latestSlot.PLACERECEIPT,
PLACEDELIVERY = latestSlot.PLACEDELIVERY
PLACEDELIVERY = latestSlot.PLACEDELIVERY,
TenantId = latestSlot.TenantId,
}));
}
}

@ -328,6 +328,18 @@ namespace Myshipping.Application.Service.BookingSlot.Dto
/// </summary>
[Description("客户样单截止日期")]
public Nullable<DateTime> CUSTOM_SI_CUT_DATE { get; set; }
/// <summary>
/// 备注
/// </summary>
[Description("备注")]
public string REMARK { get; set; }
/// <summary>
/// 计费日期
/// </summary>
[Description("计费日期")]
public DateTime? PRICE_CALCULATION_DATE { get; set; }
}
/// <summary>

Loading…
Cancel
Save