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