修改舱位查询,增加原始箱量

master
jianghaiqing 5 months ago
parent 271a13eec5
commit 948921d51f

@ -329,5 +329,10 @@ namespace Myshipping.Application
/// 卖价 /// 卖价
/// </summary> /// </summary>
public decimal? SELLING_PRICE { get; set; } public decimal? SELLING_PRICE { get; set; }
/// <summary>
/// 拆票或合票标记 1-拆票 2-合票
/// </summary>
public Nullable<int> SPLIT_OR_MERGE_FLAG { get; set; }
} }
} }

@ -2070,6 +2070,14 @@ namespace Myshipping.Application
SaleName = main.SALE, SaleName = main.SALE,
GOODSNAME = main.GOODSNAME, GOODSNAME = main.GOODSNAME,
}; };
if (input.Slots.Any(k => k.SplitOrMerge == 1 || k.SplitOrMerge == 2))
{
generateDto.BookingReferNo = entity.CUSTNO;
generateDto.NewMBlNo = entity.MBLNO;
generateDto.NewSubBlNo = entity.HBLNO;
}
if (long.TryParse(main.CUSTSERVICEID, out long t1)) generateDto.CustServiceId = t1; if (long.TryParse(main.CUSTSERVICEID, out long t1)) generateDto.CustServiceId = t1;
if (long.TryParse(main.SALEID, out long t2)) generateDto.SaleId = t2; if (long.TryParse(main.SALEID, out long t2)) generateDto.SaleId = t2;
await bookingSlotService.ImportSlots(input.Slots, entity.Id, false, generateDto); await bookingSlotService.ImportSlots(input.Slots, entity.Id, false, generateDto);

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

@ -142,5 +142,25 @@ namespace Myshipping.Application
/// 舱位箱信息 /// 舱位箱信息
/// </summary> /// </summary>
public List<BookingSlotCtnDto> CtnList { get; set; } public List<BookingSlotCtnDto> CtnList { get; set; }
/// <summary>
/// 订舱编号
/// </summary>
public string BookingReferNo { get; set; }
/// <summary>
/// 新提单号
/// </summary>
public string NewMBlNo { get; set; }
/// <summary>
/// 新分单号
/// </summary>
public string NewSubBlNo { get; set; }
/// <summary>
/// 拆票或合票标志 1-拆票 2-合票
/// </summary>
public int SplitOrMerge { get; set; }
} }
} }

@ -78,6 +78,11 @@ namespace Myshipping.Application.Service.BookingSlot.Dto
/// 称重联系人 /// 称重联系人
/// </summary> /// </summary>
public string WEIGHATTN { get; set; } public string WEIGHATTN { get; set; }
/// <summary>
/// 总计箱量
/// </summary>
public int TOTALNUM { get; set; }
} }
/// <summary> /// <summary>

Loading…
Cancel
Save