Files
bj_power/bj_power_mes/ent/alertrule/where.go
T
SunYF 8be6e03a15 docs: 统一修正全项目“SN管理”相关术语为“序列号”
本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
2026-10-10 15:58:59 +08:00

456 lines
16 KiB
Go

// Code generated by ent, DO NOT EDIT.
package alertrule
import (
"bj_power_mes/ent/predicate"
"time"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLTE(FieldID, id))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldName, v))
}
// Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func Type(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldType, v))
}
// Threshold applies equality check predicate on the "threshold" field. It's identical to ThresholdEQ.
func Threshold(v float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldThreshold, v))
}
// Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func Enabled(v bool) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldEnabled, v))
}
// NotifyChannels applies equality check predicate on the "notifyChannels" field. It's identical to NotifyChannelsEQ.
func NotifyChannels(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldNotifyChannels, v))
}
// CreatedBy applies equality check predicate on the "createdBy" field. It's identical to CreatedByEQ.
func CreatedBy(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldCreatedBy, v))
}
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldCreatedAt, v))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldContainsFold(FieldName, v))
}
// TypeEQ applies the EQ predicate on the "type" field.
func TypeEQ(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldType, v))
}
// TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNEQ(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNEQ(FieldType, v))
}
// TypeIn applies the In predicate on the "type" field.
func TypeIn(vs ...string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldIn(FieldType, vs...))
}
// TypeNotIn applies the NotIn predicate on the "type" field.
func TypeNotIn(vs ...string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNotIn(FieldType, vs...))
}
// TypeGT applies the GT predicate on the "type" field.
func TypeGT(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGT(FieldType, v))
}
// TypeGTE applies the GTE predicate on the "type" field.
func TypeGTE(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGTE(FieldType, v))
}
// TypeLT applies the LT predicate on the "type" field.
func TypeLT(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLT(FieldType, v))
}
// TypeLTE applies the LTE predicate on the "type" field.
func TypeLTE(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLTE(FieldType, v))
}
// TypeContains applies the Contains predicate on the "type" field.
func TypeContains(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldContains(FieldType, v))
}
// TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasPrefix(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldHasPrefix(FieldType, v))
}
// TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeHasSuffix(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldHasSuffix(FieldType, v))
}
// TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeEqualFold(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEqualFold(FieldType, v))
}
// TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeContainsFold(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldContainsFold(FieldType, v))
}
// ThresholdEQ applies the EQ predicate on the "threshold" field.
func ThresholdEQ(v float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldThreshold, v))
}
// ThresholdNEQ applies the NEQ predicate on the "threshold" field.
func ThresholdNEQ(v float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNEQ(FieldThreshold, v))
}
// ThresholdIn applies the In predicate on the "threshold" field.
func ThresholdIn(vs ...float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldIn(FieldThreshold, vs...))
}
// ThresholdNotIn applies the NotIn predicate on the "threshold" field.
func ThresholdNotIn(vs ...float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNotIn(FieldThreshold, vs...))
}
// ThresholdGT applies the GT predicate on the "threshold" field.
func ThresholdGT(v float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGT(FieldThreshold, v))
}
// ThresholdGTE applies the GTE predicate on the "threshold" field.
func ThresholdGTE(v float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGTE(FieldThreshold, v))
}
// ThresholdLT applies the LT predicate on the "threshold" field.
func ThresholdLT(v float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLT(FieldThreshold, v))
}
// ThresholdLTE applies the LTE predicate on the "threshold" field.
func ThresholdLTE(v float64) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLTE(FieldThreshold, v))
}
// EnabledEQ applies the EQ predicate on the "enabled" field.
func EnabledEQ(v bool) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldEnabled, v))
}
// EnabledNEQ applies the NEQ predicate on the "enabled" field.
func EnabledNEQ(v bool) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNEQ(FieldEnabled, v))
}
// NotifyChannelsEQ applies the EQ predicate on the "notifyChannels" field.
func NotifyChannelsEQ(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldNotifyChannels, v))
}
// NotifyChannelsNEQ applies the NEQ predicate on the "notifyChannels" field.
func NotifyChannelsNEQ(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNEQ(FieldNotifyChannels, v))
}
// NotifyChannelsIn applies the In predicate on the "notifyChannels" field.
func NotifyChannelsIn(vs ...string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldIn(FieldNotifyChannels, vs...))
}
// NotifyChannelsNotIn applies the NotIn predicate on the "notifyChannels" field.
func NotifyChannelsNotIn(vs ...string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNotIn(FieldNotifyChannels, vs...))
}
// NotifyChannelsGT applies the GT predicate on the "notifyChannels" field.
func NotifyChannelsGT(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGT(FieldNotifyChannels, v))
}
// NotifyChannelsGTE applies the GTE predicate on the "notifyChannels" field.
func NotifyChannelsGTE(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGTE(FieldNotifyChannels, v))
}
// NotifyChannelsLT applies the LT predicate on the "notifyChannels" field.
func NotifyChannelsLT(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLT(FieldNotifyChannels, v))
}
// NotifyChannelsLTE applies the LTE predicate on the "notifyChannels" field.
func NotifyChannelsLTE(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLTE(FieldNotifyChannels, v))
}
// NotifyChannelsContains applies the Contains predicate on the "notifyChannels" field.
func NotifyChannelsContains(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldContains(FieldNotifyChannels, v))
}
// NotifyChannelsHasPrefix applies the HasPrefix predicate on the "notifyChannels" field.
func NotifyChannelsHasPrefix(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldHasPrefix(FieldNotifyChannels, v))
}
// NotifyChannelsHasSuffix applies the HasSuffix predicate on the "notifyChannels" field.
func NotifyChannelsHasSuffix(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldHasSuffix(FieldNotifyChannels, v))
}
// NotifyChannelsEqualFold applies the EqualFold predicate on the "notifyChannels" field.
func NotifyChannelsEqualFold(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEqualFold(FieldNotifyChannels, v))
}
// NotifyChannelsContainsFold applies the ContainsFold predicate on the "notifyChannels" field.
func NotifyChannelsContainsFold(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldContainsFold(FieldNotifyChannels, v))
}
// CreatedByEQ applies the EQ predicate on the "createdBy" field.
func CreatedByEQ(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldCreatedBy, v))
}
// CreatedByNEQ applies the NEQ predicate on the "createdBy" field.
func CreatedByNEQ(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNEQ(FieldCreatedBy, v))
}
// CreatedByIn applies the In predicate on the "createdBy" field.
func CreatedByIn(vs ...string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldIn(FieldCreatedBy, vs...))
}
// CreatedByNotIn applies the NotIn predicate on the "createdBy" field.
func CreatedByNotIn(vs ...string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNotIn(FieldCreatedBy, vs...))
}
// CreatedByGT applies the GT predicate on the "createdBy" field.
func CreatedByGT(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGT(FieldCreatedBy, v))
}
// CreatedByGTE applies the GTE predicate on the "createdBy" field.
func CreatedByGTE(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGTE(FieldCreatedBy, v))
}
// CreatedByLT applies the LT predicate on the "createdBy" field.
func CreatedByLT(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLT(FieldCreatedBy, v))
}
// CreatedByLTE applies the LTE predicate on the "createdBy" field.
func CreatedByLTE(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLTE(FieldCreatedBy, v))
}
// CreatedByContains applies the Contains predicate on the "createdBy" field.
func CreatedByContains(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldContains(FieldCreatedBy, v))
}
// CreatedByHasPrefix applies the HasPrefix predicate on the "createdBy" field.
func CreatedByHasPrefix(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldHasPrefix(FieldCreatedBy, v))
}
// CreatedByHasSuffix applies the HasSuffix predicate on the "createdBy" field.
func CreatedByHasSuffix(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldHasSuffix(FieldCreatedBy, v))
}
// CreatedByEqualFold applies the EqualFold predicate on the "createdBy" field.
func CreatedByEqualFold(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEqualFold(FieldCreatedBy, v))
}
// CreatedByContainsFold applies the ContainsFold predicate on the "createdBy" field.
func CreatedByContainsFold(v string) predicate.AlertRule {
return predicate.AlertRule(sql.FieldContainsFold(FieldCreatedBy, v))
}
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtEQ(v time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
func CreatedAtNEQ(v time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "createdAt" field.
func CreatedAtIn(vs ...time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
func CreatedAtNotIn(vs ...time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "createdAt" field.
func CreatedAtGT(v time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
func CreatedAtGTE(v time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "createdAt" field.
func CreatedAtLT(v time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
func CreatedAtLTE(v time.Time) predicate.AlertRule {
return predicate.AlertRule(sql.FieldLTE(FieldCreatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.AlertRule) predicate.AlertRule {
return predicate.AlertRule(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.AlertRule) predicate.AlertRule {
return predicate.AlertRule(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.AlertRule) predicate.AlertRule {
return predicate.AlertRule(sql.NotPredicates(p))
}