优化
This commit is contained in:
@@ -75,9 +75,9 @@ namespace Tnb.WarehouseMgr
|
||||
foreach (var ko in kittingOuts)
|
||||
{
|
||||
var carrys = await _db.Queryable<WmsCarryH>()
|
||||
.InnerJoin<WmsCollocationSchemeH>((a,b) => a.collocation_scheme_id == b.id)
|
||||
.InnerJoin<WmsCollocationSchemeH>((a, b) => a.collocation_scheme_id == b.id)
|
||||
.Where(a => a.collocation_scheme_id == ko.collocation_scheme_id && a.is_lock == 0)
|
||||
.OrderBy((a,b)=>b.seq)
|
||||
.OrderBy((a, b) => b.seq)
|
||||
.ToListAsync();
|
||||
if (carrys?.Count > 0)
|
||||
{
|
||||
@@ -237,7 +237,6 @@ namespace Tnb.WarehouseMgr
|
||||
var carryId = input.carryIds[^input.carryIds.Count];
|
||||
var carry = await _db.Queryable<WmsCarryH>().SingleAsync(it => it.id == carryId);
|
||||
var kods = await _db.Queryable<WmsKittingoutD>().Where(it => it.bill_id == input.requireId).ToListAsync();
|
||||
|
||||
//载具为料架时,取所有料箱的条码
|
||||
List<string> carryMIds = new();
|
||||
if (carry.carrystd_id == WmsWareHouseConst.CARRY_LJSTD_ID)
|
||||
|
||||
Reference in New Issue
Block a user