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
@@ -205,7 +205,7 @@ func (s *Service) StationLogin(ctx context.Context, req StationLoginReq) (Statio
}
stations := s.UserStations(ctx, usr.ID)
if len(stations) == 0 {
// 未配置工位权限时兜底授权全部物理工位(不含 0/13 虚拟上下线位)
// 未配置工位权限时兜底授权全部启用的非线下位工位(OFFLINE 类型不参与)
if dbStations, e := s.ctx.EntClient.Station.Query().
Where(station.StationTypeNEQ("OFFLINE"), station.Status("ENABLED")).All(ctx); e == nil {
for _, st := range dbStations {