feat: 重构 AGV 对接与在制品查询,新增 PLC 手动监控功能
This commit is contained in:
@@ -89,8 +89,8 @@ func (s *Service) ListSemiFlows(ctx context.Context, sn, orderNo string) ([]*ent
|
||||
return q.Order(ent.Desc(semiflow.FieldID)).All(ctx)
|
||||
}
|
||||
|
||||
// CountSemiIn 半成品入库次数 = workpiece_lifecycle_log.action='SEMI_IN' 记录数(三.3:替代原 CountSemiStored)。
|
||||
// 问题.md 一.5:上线次数=状态驱动、入库一次解锁一次、入库次数有记录可追溯;
|
||||
// CountSemiIn 半成品入库次数 = workpiece_lifecycle_log.action='SEMI_IN' 记录数(见业务定稿·一.5 入库次数可追溯;替代原 CountSemiStored)。
|
||||
// 业务定稿·一.5:上线次数=状态驱动、入库一次解锁一次、入库次数有记录可追溯;
|
||||
// 入库次数统一以 lifecycle 状态流水为权威源,不再依赖 semiflow 业务流水。
|
||||
func (s *Service) CountSemiIn(ctx context.Context, sn string) int {
|
||||
n, err := s.ctx.EntClient.WorkpieceLifecycleLog.Query().
|
||||
|
||||
Reference in New Issue
Block a user