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