feat: 多系统新增扫码中间件与 AGV 对接,优化拧紧与退库流程
新增扫码中间件支持网络型扫码枪键盘注入,AGV 对接从 WMS 迁至 MES 统一管理;新增拧紧不合格人工处置与 PLC 对账机制,优化退库单关联与工位终端功能,同时清理旧 AGV 任务表,完善数据库与配置项。
This commit is contained in:
@@ -104,6 +104,21 @@ func UpdatedAt(v time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// TorqueNgPending applies equality check predicate on the "torque_ng_pending" field. It's identical to TorqueNgPendingEQ.
|
||||
func TorqueNgPending(v bool) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgPending, v))
|
||||
}
|
||||
|
||||
// TorqueNgAt applies equality check predicate on the "torque_ng_at" field. It's identical to TorqueNgAtEQ.
|
||||
func TorqueNgAt(v time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgAt, v))
|
||||
}
|
||||
|
||||
// TorqueNgBy applies equality check predicate on the "torque_ng_by" field. It's identical to TorqueNgByEQ.
|
||||
func TorqueNgBy(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// SnEQ applies the EQ predicate on the "sn" field.
|
||||
func SnEQ(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEQ(FieldSn, v))
|
||||
@@ -639,6 +654,141 @@ func UpdatedAtNotNil() predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldNotNull(FieldUpdatedAt))
|
||||
}
|
||||
|
||||
// TorqueNgPendingEQ applies the EQ predicate on the "torque_ng_pending" field.
|
||||
func TorqueNgPendingEQ(v bool) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgPending, v))
|
||||
}
|
||||
|
||||
// TorqueNgPendingNEQ applies the NEQ predicate on the "torque_ng_pending" field.
|
||||
func TorqueNgPendingNEQ(v bool) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldNEQ(FieldTorqueNgPending, v))
|
||||
}
|
||||
|
||||
// TorqueNgAtEQ applies the EQ predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtEQ(v time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgAt, v))
|
||||
}
|
||||
|
||||
// TorqueNgAtNEQ applies the NEQ predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtNEQ(v time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldNEQ(FieldTorqueNgAt, v))
|
||||
}
|
||||
|
||||
// TorqueNgAtIn applies the In predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtIn(vs ...time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldIn(FieldTorqueNgAt, vs...))
|
||||
}
|
||||
|
||||
// TorqueNgAtNotIn applies the NotIn predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtNotIn(vs ...time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldNotIn(FieldTorqueNgAt, vs...))
|
||||
}
|
||||
|
||||
// TorqueNgAtGT applies the GT predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtGT(v time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldGT(FieldTorqueNgAt, v))
|
||||
}
|
||||
|
||||
// TorqueNgAtGTE applies the GTE predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtGTE(v time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldGTE(FieldTorqueNgAt, v))
|
||||
}
|
||||
|
||||
// TorqueNgAtLT applies the LT predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtLT(v time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldLT(FieldTorqueNgAt, v))
|
||||
}
|
||||
|
||||
// TorqueNgAtLTE applies the LTE predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtLTE(v time.Time) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldLTE(FieldTorqueNgAt, v))
|
||||
}
|
||||
|
||||
// TorqueNgAtIsNil applies the IsNil predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtIsNil() predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldIsNull(FieldTorqueNgAt))
|
||||
}
|
||||
|
||||
// TorqueNgAtNotNil applies the NotNil predicate on the "torque_ng_at" field.
|
||||
func TorqueNgAtNotNil() predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldNotNull(FieldTorqueNgAt))
|
||||
}
|
||||
|
||||
// TorqueNgByEQ applies the EQ predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByEQ(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEQ(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByNEQ applies the NEQ predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByNEQ(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldNEQ(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByIn applies the In predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByIn(vs ...string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldIn(FieldTorqueNgBy, vs...))
|
||||
}
|
||||
|
||||
// TorqueNgByNotIn applies the NotIn predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByNotIn(vs ...string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldNotIn(FieldTorqueNgBy, vs...))
|
||||
}
|
||||
|
||||
// TorqueNgByGT applies the GT predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByGT(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldGT(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByGTE applies the GTE predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByGTE(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldGTE(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByLT applies the LT predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByLT(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldLT(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByLTE applies the LTE predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByLTE(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldLTE(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByContains applies the Contains predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByContains(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldContains(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByHasPrefix applies the HasPrefix predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByHasPrefix(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldHasPrefix(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByHasSuffix applies the HasSuffix predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByHasSuffix(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldHasSuffix(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByIsNil applies the IsNil predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByIsNil() predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldIsNull(FieldTorqueNgBy))
|
||||
}
|
||||
|
||||
// TorqueNgByNotNil applies the NotNil predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByNotNil() predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldNotNull(FieldTorqueNgBy))
|
||||
}
|
||||
|
||||
// TorqueNgByEqualFold applies the EqualFold predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByEqualFold(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldEqualFold(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// TorqueNgByContainsFold applies the ContainsFold predicate on the "torque_ng_by" field.
|
||||
func TorqueNgByContainsFold(v string) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.FieldContainsFold(FieldTorqueNgBy, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.Workpiece) predicate.Workpiece {
|
||||
return predicate.Workpiece(sql.AndPredicates(predicates...))
|
||||
|
||||
@@ -33,6 +33,12 @@ const (
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// FieldTorqueNgPending holds the string denoting the torque_ng_pending field in the database.
|
||||
FieldTorqueNgPending = "torque_ng_pending"
|
||||
// FieldTorqueNgAt holds the string denoting the torque_ng_at field in the database.
|
||||
FieldTorqueNgAt = "torque_ng_at"
|
||||
// FieldTorqueNgBy holds the string denoting the torque_ng_by field in the database.
|
||||
FieldTorqueNgBy = "torque_ng_by"
|
||||
// Table holds the table name of the workpiece in the database.
|
||||
Table = "workpiece"
|
||||
)
|
||||
@@ -50,6 +56,9 @@ var Columns = []string{
|
||||
FieldDoneAt,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
FieldTorqueNgPending,
|
||||
FieldTorqueNgAt,
|
||||
FieldTorqueNgBy,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
@@ -79,6 +88,10 @@ var (
|
||||
DefaultUpdatedAt func() time.Time
|
||||
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
|
||||
UpdateDefaultUpdatedAt func() time.Time
|
||||
// DefaultTorqueNgPending holds the default value on creation for the "torque_ng_pending" field.
|
||||
DefaultTorqueNgPending bool
|
||||
// TorqueNgByValidator is a validator for the "torque_ng_by" field. It is called by the builders before save.
|
||||
TorqueNgByValidator func(string) error
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
@@ -140,3 +153,18 @@ func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTorqueNgPending orders the results by the torque_ng_pending field.
|
||||
func ByTorqueNgPending(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTorqueNgPending, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTorqueNgAt orders the results by the torque_ng_at field.
|
||||
func ByTorqueNgAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTorqueNgAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTorqueNgBy orders the results by the torque_ng_by field.
|
||||
func ByTorqueNgBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTorqueNgBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user