出库策略代码调整
This commit is contained in:
@@ -193,13 +193,13 @@ namespace Tnb.WarehouseMgr
|
|||||||
.ToExpression();
|
.ToExpression();
|
||||||
var policy = await _db.Queryable<WmsInstockPolicies>().Where(it => it.status == 1).FirstAsync();
|
var policy = await _db.Queryable<WmsInstockPolicies>().Where(it => it.status == 1).FirstAsync();
|
||||||
if (policy == null) throw new AppFriendlyException("没有可用策略", 500);
|
if (policy == null) throw new AppFriendlyException("没有可用策略", 500);
|
||||||
var result = await _db.Queryable<WmsCarryH>().InnerJoin<WmsCarryCode>((a, b) => a.id == b.carry_id)
|
var items = await _db.Queryable<WmsCarryH>().InnerJoin<WmsCarryCode>((a, b) => a.id == b.carry_id)
|
||||||
.InnerJoin<BasLocation>((a, b, c) => a.location_id == c.id)
|
.InnerJoin<BasLocation>((a, b, c) => a.location_id == c.id)
|
||||||
.Where(whereExpr)
|
.Where(whereExpr)
|
||||||
.OrderBy(policy.policy)
|
.OrderBy(policy.policy)
|
||||||
.Select<WmsCarryH>()
|
.Select<WmsCarryH>()
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
return await Task.FromResult<dynamic>(true);
|
return items.Take(input.Size).ToList();
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 生成任务执行
|
/// 生成任务执行
|
||||||
|
|||||||
Reference in New Issue
Block a user