From 7f5f52c7da961591746ec98be8fd56132ab38107 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 31 Jul 2023 16:21:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E7=AD=96=E7=95=A5=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs index b00ed6a4..f93d0f53 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs @@ -193,13 +193,13 @@ namespace Tnb.WarehouseMgr .ToExpression(); var policy = await _db.Queryable().Where(it => it.status == 1).FirstAsync(); if (policy == null) throw new AppFriendlyException("没有可用策略", 500); - var result = await _db.Queryable().InnerJoin((a, b) => a.id == b.carry_id) + var items = await _db.Queryable().InnerJoin((a, b) => a.id == b.carry_id) .InnerJoin((a, b, c) => a.location_id == c.id) .Where(whereExpr) .OrderBy(policy.policy) .Select() .ToListAsync(); - return await Task.FromResult(true); + return items.Take(input.Size).ToList(); } /// /// 生成任务执行