From 4f40a6aeee4a09a663409a6e4fc60350b5fd48a0 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期二, 21 四月 2026 13:12:16 +0800
Subject: [PATCH] feat: 添加AGV任务管理和托盘组功能 feat(task): 新增AGV任务页面和路由配置 feat(stock): 添加托盘组管理页面及进站出站操作 feat(task): 在任务历史页面添加操作类型列 refactor: 优化AGV任务查询条件及过滤逻辑
---
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/FakeBatteryPositionRepository.cs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/FakeBatteryPositionRepository.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/FakeBatteryPositionRepository.cs
index f66fef7..e674dfc 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/FakeBatteryPositionRepository.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/FakeBatteryPositionRepository.cs
@@ -78,6 +78,18 @@
}
/// <inheritdoc/>
+ public bool MarkAsAvailable(List<int> positions)
+ {
+ if (positions == null || positions.Count == 0)
+ return true;
+
+ return Db.Updateable<Dt_FakeBatteryPosition>()
+ .SetColumns(x => x.IsUsed, false)
+ .Where(x => positions.Contains(x.PositionIndex))
+ .ExecuteCommand() > 0;
+ }
+
+ /// <inheritdoc/>
public int? GetPositionIndex(int row, int col)
{
var entity = Db.Queryable<Dt_FakeBatteryPosition>()
--
Gitblit v1.9.3