feat: 大屏新增虚拟工位滚动栏与多订单轮播,附件表增加删除原因及彻底清除留痕字段

This commit is contained in:
SunYF
2026-10-29 18:16:53 +08:00
parent 4d3c4e2c3a
commit 11dbdaae75
75 changed files with 6801 additions and 965 deletions
@@ -31,6 +31,10 @@ const (
FieldChecksum = "checksum"
// FieldScope holds the string denoting the scope field in the database.
FieldScope = "scope"
// FieldAckName holds the string denoting the ackname field in the database.
FieldAckName = "ack_name"
// FieldAckPhone holds the string denoting the ackphone field in the database.
FieldAckPhone = "ack_phone"
// Table holds the table name of the backuprecord in the database.
Table = "backup_record"
)
@@ -48,6 +52,8 @@ var Columns = []string{
FieldOperator,
FieldChecksum,
FieldScope,
FieldAckName,
FieldAckPhone,
}
// ValidColumn reports if the column name is valid (part of the table columns).
@@ -81,6 +87,14 @@ var (
DefaultScope string
// ScopeValidator is a validator for the "scope" field. It is called by the builders before save.
ScopeValidator func(string) error
// DefaultAckName holds the default value on creation for the "ackName" field.
DefaultAckName string
// AckNameValidator is a validator for the "ackName" field. It is called by the builders before save.
AckNameValidator func(string) error
// DefaultAckPhone holds the default value on creation for the "ackPhone" field.
DefaultAckPhone string
// AckPhoneValidator is a validator for the "ackPhone" field. It is called by the builders before save.
AckPhoneValidator func(string) error
// IDValidator is a validator for the "id" field. It is called by the builders before save.
IDValidator func(int) error
)
@@ -142,3 +156,13 @@ func ByChecksum(opts ...sql.OrderTermOption) OrderOption {
func ByScope(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldScope, opts...).ToFunc()
}
// ByAckName orders the results by the ackName field.
func ByAckName(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAckName, opts...).ToFunc()
}
// ByAckPhone orders the results by the ackPhone field.
func ByAckPhone(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAckPhone, opts...).ToFunc()
}
+140
View File
@@ -103,6 +103,16 @@ func Scope(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldEQ(FieldScope, v))
}
// AckName applies equality check predicate on the "ackName" field. It's identical to AckNameEQ.
func AckName(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldEQ(FieldAckName, v))
}
// AckPhone applies equality check predicate on the "ackPhone" field. It's identical to AckPhoneEQ.
func AckPhone(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldEQ(FieldAckPhone, v))
}
// ExecutedAtEQ applies the EQ predicate on the "executedAt" field.
func ExecutedAtEQ(v int64) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldEQ(FieldExecutedAt, v))
@@ -653,6 +663,136 @@ func ScopeContainsFold(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldContainsFold(FieldScope, v))
}
// AckNameEQ applies the EQ predicate on the "ackName" field.
func AckNameEQ(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldEQ(FieldAckName, v))
}
// AckNameNEQ applies the NEQ predicate on the "ackName" field.
func AckNameNEQ(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldNEQ(FieldAckName, v))
}
// AckNameIn applies the In predicate on the "ackName" field.
func AckNameIn(vs ...string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldIn(FieldAckName, vs...))
}
// AckNameNotIn applies the NotIn predicate on the "ackName" field.
func AckNameNotIn(vs ...string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldNotIn(FieldAckName, vs...))
}
// AckNameGT applies the GT predicate on the "ackName" field.
func AckNameGT(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldGT(FieldAckName, v))
}
// AckNameGTE applies the GTE predicate on the "ackName" field.
func AckNameGTE(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldGTE(FieldAckName, v))
}
// AckNameLT applies the LT predicate on the "ackName" field.
func AckNameLT(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldLT(FieldAckName, v))
}
// AckNameLTE applies the LTE predicate on the "ackName" field.
func AckNameLTE(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldLTE(FieldAckName, v))
}
// AckNameContains applies the Contains predicate on the "ackName" field.
func AckNameContains(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldContains(FieldAckName, v))
}
// AckNameHasPrefix applies the HasPrefix predicate on the "ackName" field.
func AckNameHasPrefix(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldHasPrefix(FieldAckName, v))
}
// AckNameHasSuffix applies the HasSuffix predicate on the "ackName" field.
func AckNameHasSuffix(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldHasSuffix(FieldAckName, v))
}
// AckNameEqualFold applies the EqualFold predicate on the "ackName" field.
func AckNameEqualFold(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldEqualFold(FieldAckName, v))
}
// AckNameContainsFold applies the ContainsFold predicate on the "ackName" field.
func AckNameContainsFold(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldContainsFold(FieldAckName, v))
}
// AckPhoneEQ applies the EQ predicate on the "ackPhone" field.
func AckPhoneEQ(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldEQ(FieldAckPhone, v))
}
// AckPhoneNEQ applies the NEQ predicate on the "ackPhone" field.
func AckPhoneNEQ(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldNEQ(FieldAckPhone, v))
}
// AckPhoneIn applies the In predicate on the "ackPhone" field.
func AckPhoneIn(vs ...string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldIn(FieldAckPhone, vs...))
}
// AckPhoneNotIn applies the NotIn predicate on the "ackPhone" field.
func AckPhoneNotIn(vs ...string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldNotIn(FieldAckPhone, vs...))
}
// AckPhoneGT applies the GT predicate on the "ackPhone" field.
func AckPhoneGT(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldGT(FieldAckPhone, v))
}
// AckPhoneGTE applies the GTE predicate on the "ackPhone" field.
func AckPhoneGTE(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldGTE(FieldAckPhone, v))
}
// AckPhoneLT applies the LT predicate on the "ackPhone" field.
func AckPhoneLT(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldLT(FieldAckPhone, v))
}
// AckPhoneLTE applies the LTE predicate on the "ackPhone" field.
func AckPhoneLTE(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldLTE(FieldAckPhone, v))
}
// AckPhoneContains applies the Contains predicate on the "ackPhone" field.
func AckPhoneContains(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldContains(FieldAckPhone, v))
}
// AckPhoneHasPrefix applies the HasPrefix predicate on the "ackPhone" field.
func AckPhoneHasPrefix(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldHasPrefix(FieldAckPhone, v))
}
// AckPhoneHasSuffix applies the HasSuffix predicate on the "ackPhone" field.
func AckPhoneHasSuffix(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldHasSuffix(FieldAckPhone, v))
}
// AckPhoneEqualFold applies the EqualFold predicate on the "ackPhone" field.
func AckPhoneEqualFold(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldEqualFold(FieldAckPhone, v))
}
// AckPhoneContainsFold applies the ContainsFold predicate on the "ackPhone" field.
func AckPhoneContainsFold(v string) predicate.BackupRecord {
return predicate.BackupRecord(sql.FieldContainsFold(FieldAckPhone, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.BackupRecord) predicate.BackupRecord {
return predicate.BackupRecord(sql.AndPredicates(predicates...))