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...))
|
||||
|
||||
Reference in New Issue
Block a user