feat: 重构 AGV 对接与在制品查询,新增 PLC 手动监控功能

This commit is contained in:
SunYF
2026-10-17 17:49:47 +08:00
parent f65a52d9e1
commit f743cf21fb
96 changed files with 6130 additions and 1781 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ func (s *Service) buildEquipment(ctx context.Context, today time.Time) []Station
}
}
}
// 工位主数据缺失时兜底:按 DB 物理工位生成(不含 0/13 虚拟上下线位);DB 完全空时回退 1~12
// 工位主数据缺失时兜底:按 DB 非线下位工位生成;DB 完全空时回退 1~12
if len(stMap) == 0 {
if dbStations, e := s.ctx.EntClient.Station.Query().
Where(station.StationTypeNEQ("OFFLINE")).All(ctx); e == nil && len(dbStations) > 0 {