feat: 重构 AGV 对接与在制品查询,新增 PLC 手动监控功能
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user