feat: 新增 AgvPoint 点位表及客户端,支持点位编码与接驳台绑定
This commit is contained in:
@@ -69,6 +69,14 @@ const (
|
||||
FieldInspectionNo = "inspection_no"
|
||||
// FieldProductWorkNo holds the string denoting the product_work_no field in the database.
|
||||
FieldProductWorkNo = "product_work_no"
|
||||
// FieldVoided holds the string denoting the voided field in the database.
|
||||
FieldVoided = "voided"
|
||||
// FieldVoidReason holds the string denoting the void_reason field in the database.
|
||||
FieldVoidReason = "void_reason"
|
||||
// FieldVoidedBy holds the string denoting the voided_by field in the database.
|
||||
FieldVoidedBy = "voided_by"
|
||||
// FieldVoidedAt holds the string denoting the voided_at field in the database.
|
||||
FieldVoidedAt = "voided_at"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the outboundorder in the database.
|
||||
@@ -107,6 +115,10 @@ var Columns = []string{
|
||||
FieldBorrowFrom,
|
||||
FieldInspectionNo,
|
||||
FieldProductWorkNo,
|
||||
FieldVoided,
|
||||
FieldVoidReason,
|
||||
FieldVoidedBy,
|
||||
FieldVoidedAt,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -133,6 +145,12 @@ var (
|
||||
DefaultSnMode int
|
||||
// DefaultQuantity holds the default value on creation for the "quantity" field.
|
||||
DefaultQuantity int
|
||||
// DefaultVoided holds the default value on creation for the "voided" field.
|
||||
DefaultVoided bool
|
||||
// DefaultVoidReason holds the default value on creation for the "void_reason" field.
|
||||
DefaultVoidReason string
|
||||
// DefaultVoidedBy holds the default value on creation for the "voided_by" field.
|
||||
DefaultVoidedBy string
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
)
|
||||
@@ -285,6 +303,26 @@ func ByProductWorkNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProductWorkNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByVoided orders the results by the voided field.
|
||||
func ByVoided(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldVoided, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByVoidReason orders the results by the void_reason field.
|
||||
func ByVoidReason(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldVoidReason, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByVoidedBy orders the results by the voided_by field.
|
||||
func ByVoidedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldVoidedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByVoidedAt orders the results by the voided_at field.
|
||||
func ByVoidedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldVoidedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
|
||||
@@ -193,6 +193,26 @@ func ProductWorkNo(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// Voided applies equality check predicate on the "voided" field. It's identical to VoidedEQ.
|
||||
func Voided(v bool) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldVoided, v))
|
||||
}
|
||||
|
||||
// VoidReason applies equality check predicate on the "void_reason" field. It's identical to VoidReasonEQ.
|
||||
func VoidReason(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidedBy applies equality check predicate on the "voided_by" field. It's identical to VoidedByEQ.
|
||||
func VoidedBy(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedAt applies equality check predicate on the "voided_at" field. It's identical to VoidedAtEQ.
|
||||
func VoidedAt(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldVoidedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldCreatedAt, v))
|
||||
@@ -2098,6 +2118,196 @@ func ProductWorkNoContainsFold(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldContainsFold(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// VoidedEQ applies the EQ predicate on the "voided" field.
|
||||
func VoidedEQ(v bool) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldVoided, v))
|
||||
}
|
||||
|
||||
// VoidedNEQ applies the NEQ predicate on the "voided" field.
|
||||
func VoidedNEQ(v bool) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNEQ(FieldVoided, v))
|
||||
}
|
||||
|
||||
// VoidReasonEQ applies the EQ predicate on the "void_reason" field.
|
||||
func VoidReasonEQ(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonNEQ applies the NEQ predicate on the "void_reason" field.
|
||||
func VoidReasonNEQ(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNEQ(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonIn applies the In predicate on the "void_reason" field.
|
||||
func VoidReasonIn(vs ...string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldIn(FieldVoidReason, vs...))
|
||||
}
|
||||
|
||||
// VoidReasonNotIn applies the NotIn predicate on the "void_reason" field.
|
||||
func VoidReasonNotIn(vs ...string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNotIn(FieldVoidReason, vs...))
|
||||
}
|
||||
|
||||
// VoidReasonGT applies the GT predicate on the "void_reason" field.
|
||||
func VoidReasonGT(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldGT(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonGTE applies the GTE predicate on the "void_reason" field.
|
||||
func VoidReasonGTE(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldGTE(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonLT applies the LT predicate on the "void_reason" field.
|
||||
func VoidReasonLT(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldLT(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonLTE applies the LTE predicate on the "void_reason" field.
|
||||
func VoidReasonLTE(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldLTE(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonContains applies the Contains predicate on the "void_reason" field.
|
||||
func VoidReasonContains(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldContains(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonHasPrefix applies the HasPrefix predicate on the "void_reason" field.
|
||||
func VoidReasonHasPrefix(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldHasPrefix(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonHasSuffix applies the HasSuffix predicate on the "void_reason" field.
|
||||
func VoidReasonHasSuffix(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldHasSuffix(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonEqualFold applies the EqualFold predicate on the "void_reason" field.
|
||||
func VoidReasonEqualFold(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEqualFold(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidReasonContainsFold applies the ContainsFold predicate on the "void_reason" field.
|
||||
func VoidReasonContainsFold(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldContainsFold(FieldVoidReason, v))
|
||||
}
|
||||
|
||||
// VoidedByEQ applies the EQ predicate on the "voided_by" field.
|
||||
func VoidedByEQ(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByNEQ applies the NEQ predicate on the "voided_by" field.
|
||||
func VoidedByNEQ(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNEQ(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByIn applies the In predicate on the "voided_by" field.
|
||||
func VoidedByIn(vs ...string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldIn(FieldVoidedBy, vs...))
|
||||
}
|
||||
|
||||
// VoidedByNotIn applies the NotIn predicate on the "voided_by" field.
|
||||
func VoidedByNotIn(vs ...string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNotIn(FieldVoidedBy, vs...))
|
||||
}
|
||||
|
||||
// VoidedByGT applies the GT predicate on the "voided_by" field.
|
||||
func VoidedByGT(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldGT(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByGTE applies the GTE predicate on the "voided_by" field.
|
||||
func VoidedByGTE(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldGTE(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByLT applies the LT predicate on the "voided_by" field.
|
||||
func VoidedByLT(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldLT(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByLTE applies the LTE predicate on the "voided_by" field.
|
||||
func VoidedByLTE(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldLTE(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByContains applies the Contains predicate on the "voided_by" field.
|
||||
func VoidedByContains(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldContains(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByHasPrefix applies the HasPrefix predicate on the "voided_by" field.
|
||||
func VoidedByHasPrefix(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldHasPrefix(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByHasSuffix applies the HasSuffix predicate on the "voided_by" field.
|
||||
func VoidedByHasSuffix(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldHasSuffix(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByEqualFold applies the EqualFold predicate on the "voided_by" field.
|
||||
func VoidedByEqualFold(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEqualFold(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedByContainsFold applies the ContainsFold predicate on the "voided_by" field.
|
||||
func VoidedByContainsFold(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldContainsFold(FieldVoidedBy, v))
|
||||
}
|
||||
|
||||
// VoidedAtEQ applies the EQ predicate on the "voided_at" field.
|
||||
func VoidedAtEQ(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldVoidedAt, v))
|
||||
}
|
||||
|
||||
// VoidedAtNEQ applies the NEQ predicate on the "voided_at" field.
|
||||
func VoidedAtNEQ(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNEQ(FieldVoidedAt, v))
|
||||
}
|
||||
|
||||
// VoidedAtIn applies the In predicate on the "voided_at" field.
|
||||
func VoidedAtIn(vs ...int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldIn(FieldVoidedAt, vs...))
|
||||
}
|
||||
|
||||
// VoidedAtNotIn applies the NotIn predicate on the "voided_at" field.
|
||||
func VoidedAtNotIn(vs ...int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNotIn(FieldVoidedAt, vs...))
|
||||
}
|
||||
|
||||
// VoidedAtGT applies the GT predicate on the "voided_at" field.
|
||||
func VoidedAtGT(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldGT(FieldVoidedAt, v))
|
||||
}
|
||||
|
||||
// VoidedAtGTE applies the GTE predicate on the "voided_at" field.
|
||||
func VoidedAtGTE(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldGTE(FieldVoidedAt, v))
|
||||
}
|
||||
|
||||
// VoidedAtLT applies the LT predicate on the "voided_at" field.
|
||||
func VoidedAtLT(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldLT(FieldVoidedAt, v))
|
||||
}
|
||||
|
||||
// VoidedAtLTE applies the LTE predicate on the "voided_at" field.
|
||||
func VoidedAtLTE(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldLTE(FieldVoidedAt, v))
|
||||
}
|
||||
|
||||
// VoidedAtIsNil applies the IsNil predicate on the "voided_at" field.
|
||||
func VoidedAtIsNil() predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldIsNull(FieldVoidedAt))
|
||||
}
|
||||
|
||||
// VoidedAtNotNil applies the NotNil predicate on the "voided_at" field.
|
||||
func VoidedAtNotNil() predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNotNull(FieldVoidedAt))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldCreatedAt, v))
|
||||
|
||||
Reference in New Issue
Block a user