出库策略代码调整
This commit is contained in:
@@ -193,13 +193,13 @@ namespace Tnb.WarehouseMgr
|
||||
.ToExpression();
|
||||
var policy = await _db.Queryable<WmsInstockPolicies>().Where(it => it.status == 1).FirstAsync();
|
||||
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)
|
||||
.Where(whereExpr)
|
||||
.OrderBy(policy.policy)
|
||||
.Select<WmsCarryH>()
|
||||
.ToListAsync();
|
||||
return await Task.FromResult<dynamic>(true);
|
||||
return items.Take(input.Size).ToList();
|
||||
}
|
||||
/// <summary>
|
||||
/// 生成任务执行
|
||||
|
||||
Reference in New Issue
Block a user