From 2a5568ecfc19ffe132a521d8a41dc0f33afd8c08 Mon Sep 17 00:00:00 2001 From: haoliang <821644@qq.com> Date: Thu, 30 Apr 2026 00:08:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E7=94=A8=E6=9C=BA=E5=BA=8A=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=94=B9=E4=B8=BA=E8=8E=B7=E5=8F=96=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E6=9C=BA=E5=BA=8A=EF=BC=88=E4=B8=8D=E9=99=90=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E7=8A=B6=E6=80=81=EF=BC=89=EF=BC=8C=E4=BF=AE=E5=A4=8Davailable?= =?UTF-8?q?-machines=E8=BF=94=E5=9B=9E=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CncService/Impl/WorkerService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CncService/Impl/WorkerService.cs b/src/CncService/Impl/WorkerService.cs index 62ee668..5222310 100644 --- a/src/CncService/Impl/WorkerService.cs +++ b/src/CncService/Impl/WorkerService.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using CncService.Interface; using CncModels.Dto; +using CncModels.Dto.Machine; using CncModels.Dto.Worker; using CncModels.Entity; using CncModels.Constants; @@ -215,8 +216,8 @@ namespace CncService.Impl /// public List GetAvailableMachines() { - // 获取所有在线且启用的机床,排除已绑定的 - var allMachines = _machineRepository.GetEnabledOnline(); + // 获取所有机床(不限在线状态),排除已绑定的 + var allMachines = _machineRepository.GetList(new MachineQuery { PageSize = 9999 }).Items; var result = new List(); foreach (var m in allMachines) {