|
|
|
@ -1530,6 +1530,7 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
q1.id,
|
|
|
|
|
q1.ctnCode,
|
|
|
|
|
q1.numAll,
|
|
|
|
|
numResidue = SqlFunc.IsNull(q1.numAll - q2.numUse, q1.numAll)
|
|
|
|
|
})
|
|
|
|
|
.MergeTable()
|
|
|
|
@ -1565,6 +1566,7 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
CTNCODE = c.ctnCode,
|
|
|
|
|
CTNNUM = c.numResidue,
|
|
|
|
|
TOTALNUM = c.numAll,
|
|
|
|
|
CTNALL = ctnCodeCache.FirstOrDefault(e => e.Code == c.ctnCode)?.Name ?? throw new Exception($"舱位信息中存在未收录的箱型:{c.ctnCode},需要在箱型字典中补充"),
|
|
|
|
|
}).ToList();
|
|
|
|
|
}
|
|
|
|
@ -1765,6 +1767,12 @@ namespace Myshipping.Application
|
|
|
|
|
newSlotAllocation.SHIPPER = generateModel.SHIPPER;
|
|
|
|
|
newSlotAllocation.GOODSNAME = generateModel.GOODSNAME;
|
|
|
|
|
newSlotAllocation.SELLING_PRICE = generateModel.SELLING_PRICE;
|
|
|
|
|
newSlotAllocation.SPLIT_OR_MERGE_FLAG = generateModel.SplitOrMerge;
|
|
|
|
|
|
|
|
|
|
if(generateModel.SplitOrMerge == 1 || generateModel.SplitOrMerge == 2)
|
|
|
|
|
{
|
|
|
|
|
newSlotAllocation.ALLO_BILL_NO = generateModel.NewMBlNo;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await _repAllocation.InsertAsync(newSlotAllocation);
|
|
|
|
|