feat: 新增预警与附件模块,优化工位派工功能
1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
This commit is contained in:
@@ -0,0 +1,186 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package torquerecord
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the torquerecord type in the database.
|
||||
Label = "torque_record"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldWorkOrderNo holds the string denoting the workorderno field in the database.
|
||||
FieldWorkOrderNo = "work_order_no"
|
||||
// FieldSn holds the string denoting the sn field in the database.
|
||||
FieldSn = "sn"
|
||||
// FieldScrewNo holds the string denoting the screwno field in the database.
|
||||
FieldScrewNo = "screw_no"
|
||||
// FieldStrain holds the string denoting the strain field in the database.
|
||||
FieldStrain = "strain"
|
||||
// FieldTorque holds the string denoting the torque field in the database.
|
||||
FieldTorque = "torque"
|
||||
// FieldAngle holds the string denoting the angle field in the database.
|
||||
FieldAngle = "angle"
|
||||
// FieldResult holds the string denoting the result field in the database.
|
||||
FieldResult = "result"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldStationNo holds the string denoting the stationno field in the database.
|
||||
FieldStationNo = "station_no"
|
||||
// FieldTime holds the string denoting the time field in the database.
|
||||
FieldTime = "time"
|
||||
// FieldAuditBy holds the string denoting the auditby field in the database.
|
||||
FieldAuditBy = "audit_by"
|
||||
// FieldAuditAt holds the string denoting the auditat field in the database.
|
||||
FieldAuditAt = "audit_at"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the torquerecord in the database.
|
||||
Table = "torque_record"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for torquerecord fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldWorkOrderNo,
|
||||
FieldSn,
|
||||
FieldScrewNo,
|
||||
FieldStrain,
|
||||
FieldTorque,
|
||||
FieldAngle,
|
||||
FieldResult,
|
||||
FieldOperator,
|
||||
FieldStationNo,
|
||||
FieldTime,
|
||||
FieldAuditBy,
|
||||
FieldAuditAt,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultWorkOrderNo holds the default value on creation for the "workOrderNo" field.
|
||||
DefaultWorkOrderNo string
|
||||
// WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
WorkOrderNoValidator func(string) error
|
||||
// SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
SnValidator func(string) error
|
||||
// DefaultScrewNo holds the default value on creation for the "screwNo" field.
|
||||
DefaultScrewNo string
|
||||
// ScrewNoValidator is a validator for the "screwNo" field. It is called by the builders before save.
|
||||
ScrewNoValidator func(string) error
|
||||
// DefaultStrain holds the default value on creation for the "strain" field.
|
||||
DefaultStrain float64
|
||||
// DefaultTorque holds the default value on creation for the "torque" field.
|
||||
DefaultTorque float64
|
||||
// DefaultAngle holds the default value on creation for the "angle" field.
|
||||
DefaultAngle float64
|
||||
// DefaultResult holds the default value on creation for the "result" field.
|
||||
DefaultResult string
|
||||
// ResultValidator is a validator for the "result" field. It is called by the builders before save.
|
||||
ResultValidator func(string) error
|
||||
// DefaultOperator holds the default value on creation for the "operator" field.
|
||||
DefaultOperator string
|
||||
// OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
OperatorValidator func(string) error
|
||||
// DefaultStationNo holds the default value on creation for the "stationNo" field.
|
||||
DefaultStationNo string
|
||||
// StationNoValidator is a validator for the "stationNo" field. It is called by the builders before save.
|
||||
StationNoValidator func(string) error
|
||||
// DefaultTime holds the default value on creation for the "time" field.
|
||||
DefaultTime func() time.Time
|
||||
// DefaultAuditBy holds the default value on creation for the "auditBy" field.
|
||||
DefaultAuditBy string
|
||||
// AuditByValidator is a validator for the "auditBy" field. It is called by the builders before save.
|
||||
AuditByValidator func(string) error
|
||||
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the TorqueRecord queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByWorkOrderNo orders the results by the workOrderNo field.
|
||||
func ByWorkOrderNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldWorkOrderNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySn orders the results by the sn field.
|
||||
func BySn(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSn, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByScrewNo orders the results by the screwNo field.
|
||||
func ByScrewNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldScrewNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStrain orders the results by the strain field.
|
||||
func ByStrain(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStrain, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTorque orders the results by the torque field.
|
||||
func ByTorque(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTorque, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAngle orders the results by the angle field.
|
||||
func ByAngle(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAngle, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByResult orders the results by the result field.
|
||||
func ByResult(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldResult, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOperator orders the results by the operator field.
|
||||
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOperator, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStationNo orders the results by the stationNo field.
|
||||
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTime orders the results by the time field.
|
||||
func ByTime(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTime, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAuditBy orders the results by the auditBy field.
|
||||
func ByAuditBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAuditBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAuditAt orders the results by the auditAt field.
|
||||
func ByAuditAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAuditAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the createdAt field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,840 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package torquerecord
|
||||
|
||||
import (
|
||||
"bj_power_mes/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// WorkOrderNo applies equality check predicate on the "workOrderNo" field. It's identical to WorkOrderNoEQ.
|
||||
func WorkOrderNo(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
|
||||
func Sn(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// ScrewNo applies equality check predicate on the "screwNo" field. It's identical to ScrewNoEQ.
|
||||
func ScrewNo(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// Strain applies equality check predicate on the "strain" field. It's identical to StrainEQ.
|
||||
func Strain(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldStrain, v))
|
||||
}
|
||||
|
||||
// Torque applies equality check predicate on the "torque" field. It's identical to TorqueEQ.
|
||||
func Torque(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldTorque, v))
|
||||
}
|
||||
|
||||
// Angle applies equality check predicate on the "angle" field. It's identical to AngleEQ.
|
||||
func Angle(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldAngle, v))
|
||||
}
|
||||
|
||||
// Result applies equality check predicate on the "result" field. It's identical to ResultEQ.
|
||||
func Result(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldResult, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||||
func StationNo(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// Time applies equality check predicate on the "time" field. It's identical to TimeEQ.
|
||||
func Time(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldTime, v))
|
||||
}
|
||||
|
||||
// AuditBy applies equality check predicate on the "auditBy" field. It's identical to AuditByEQ.
|
||||
func AuditBy(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditAt applies equality check predicate on the "auditAt" field. It's identical to AuditAtEQ.
|
||||
func AuditAt(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldAuditAt, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoEQ applies the EQ predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoNEQ applies the NEQ predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoNEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoIn applies the In predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldWorkOrderNo, vs...))
|
||||
}
|
||||
|
||||
// WorkOrderNoNotIn applies the NotIn predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoNotIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldWorkOrderNo, vs...))
|
||||
}
|
||||
|
||||
// WorkOrderNoGT applies the GT predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoGT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoGTE applies the GTE predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoGTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoLT applies the LT predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoLT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoLTE applies the LTE predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoLTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoContains applies the Contains predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoContains(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContains(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoHasPrefix applies the HasPrefix predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoHasPrefix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasPrefix(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoHasSuffix applies the HasSuffix predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoHasSuffix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasSuffix(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoEqualFold applies the EqualFold predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoEqualFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEqualFold(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoContainsFold applies the ContainsFold predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoContainsFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContainsFold(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// SnEQ applies the EQ predicate on the "sn" field.
|
||||
func SnEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnNEQ applies the NEQ predicate on the "sn" field.
|
||||
func SnNEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnIn applies the In predicate on the "sn" field.
|
||||
func SnIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnNotIn applies the NotIn predicate on the "sn" field.
|
||||
func SnNotIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnGT applies the GT predicate on the "sn" field.
|
||||
func SnGT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnGTE applies the GTE predicate on the "sn" field.
|
||||
func SnGTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLT applies the LT predicate on the "sn" field.
|
||||
func SnLT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLTE applies the LTE predicate on the "sn" field.
|
||||
func SnLTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContains applies the Contains predicate on the "sn" field.
|
||||
func SnContains(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContains(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
|
||||
func SnHasPrefix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasPrefix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
|
||||
func SnHasSuffix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasSuffix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnEqualFold applies the EqualFold predicate on the "sn" field.
|
||||
func SnEqualFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEqualFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
|
||||
func SnContainsFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContainsFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// ScrewNoEQ applies the EQ predicate on the "screwNo" field.
|
||||
func ScrewNoEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoNEQ applies the NEQ predicate on the "screwNo" field.
|
||||
func ScrewNoNEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoIn applies the In predicate on the "screwNo" field.
|
||||
func ScrewNoIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldScrewNo, vs...))
|
||||
}
|
||||
|
||||
// ScrewNoNotIn applies the NotIn predicate on the "screwNo" field.
|
||||
func ScrewNoNotIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldScrewNo, vs...))
|
||||
}
|
||||
|
||||
// ScrewNoGT applies the GT predicate on the "screwNo" field.
|
||||
func ScrewNoGT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoGTE applies the GTE predicate on the "screwNo" field.
|
||||
func ScrewNoGTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoLT applies the LT predicate on the "screwNo" field.
|
||||
func ScrewNoLT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoLTE applies the LTE predicate on the "screwNo" field.
|
||||
func ScrewNoLTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoContains applies the Contains predicate on the "screwNo" field.
|
||||
func ScrewNoContains(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContains(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoHasPrefix applies the HasPrefix predicate on the "screwNo" field.
|
||||
func ScrewNoHasPrefix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasPrefix(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoHasSuffix applies the HasSuffix predicate on the "screwNo" field.
|
||||
func ScrewNoHasSuffix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasSuffix(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoEqualFold applies the EqualFold predicate on the "screwNo" field.
|
||||
func ScrewNoEqualFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEqualFold(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// ScrewNoContainsFold applies the ContainsFold predicate on the "screwNo" field.
|
||||
func ScrewNoContainsFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContainsFold(FieldScrewNo, v))
|
||||
}
|
||||
|
||||
// StrainEQ applies the EQ predicate on the "strain" field.
|
||||
func StrainEQ(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldStrain, v))
|
||||
}
|
||||
|
||||
// StrainNEQ applies the NEQ predicate on the "strain" field.
|
||||
func StrainNEQ(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldStrain, v))
|
||||
}
|
||||
|
||||
// StrainIn applies the In predicate on the "strain" field.
|
||||
func StrainIn(vs ...float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldStrain, vs...))
|
||||
}
|
||||
|
||||
// StrainNotIn applies the NotIn predicate on the "strain" field.
|
||||
func StrainNotIn(vs ...float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldStrain, vs...))
|
||||
}
|
||||
|
||||
// StrainGT applies the GT predicate on the "strain" field.
|
||||
func StrainGT(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldStrain, v))
|
||||
}
|
||||
|
||||
// StrainGTE applies the GTE predicate on the "strain" field.
|
||||
func StrainGTE(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldStrain, v))
|
||||
}
|
||||
|
||||
// StrainLT applies the LT predicate on the "strain" field.
|
||||
func StrainLT(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldStrain, v))
|
||||
}
|
||||
|
||||
// StrainLTE applies the LTE predicate on the "strain" field.
|
||||
func StrainLTE(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldStrain, v))
|
||||
}
|
||||
|
||||
// TorqueEQ applies the EQ predicate on the "torque" field.
|
||||
func TorqueEQ(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldTorque, v))
|
||||
}
|
||||
|
||||
// TorqueNEQ applies the NEQ predicate on the "torque" field.
|
||||
func TorqueNEQ(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldTorque, v))
|
||||
}
|
||||
|
||||
// TorqueIn applies the In predicate on the "torque" field.
|
||||
func TorqueIn(vs ...float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldTorque, vs...))
|
||||
}
|
||||
|
||||
// TorqueNotIn applies the NotIn predicate on the "torque" field.
|
||||
func TorqueNotIn(vs ...float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldTorque, vs...))
|
||||
}
|
||||
|
||||
// TorqueGT applies the GT predicate on the "torque" field.
|
||||
func TorqueGT(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldTorque, v))
|
||||
}
|
||||
|
||||
// TorqueGTE applies the GTE predicate on the "torque" field.
|
||||
func TorqueGTE(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldTorque, v))
|
||||
}
|
||||
|
||||
// TorqueLT applies the LT predicate on the "torque" field.
|
||||
func TorqueLT(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldTorque, v))
|
||||
}
|
||||
|
||||
// TorqueLTE applies the LTE predicate on the "torque" field.
|
||||
func TorqueLTE(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldTorque, v))
|
||||
}
|
||||
|
||||
// AngleEQ applies the EQ predicate on the "angle" field.
|
||||
func AngleEQ(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldAngle, v))
|
||||
}
|
||||
|
||||
// AngleNEQ applies the NEQ predicate on the "angle" field.
|
||||
func AngleNEQ(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldAngle, v))
|
||||
}
|
||||
|
||||
// AngleIn applies the In predicate on the "angle" field.
|
||||
func AngleIn(vs ...float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldAngle, vs...))
|
||||
}
|
||||
|
||||
// AngleNotIn applies the NotIn predicate on the "angle" field.
|
||||
func AngleNotIn(vs ...float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldAngle, vs...))
|
||||
}
|
||||
|
||||
// AngleGT applies the GT predicate on the "angle" field.
|
||||
func AngleGT(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldAngle, v))
|
||||
}
|
||||
|
||||
// AngleGTE applies the GTE predicate on the "angle" field.
|
||||
func AngleGTE(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldAngle, v))
|
||||
}
|
||||
|
||||
// AngleLT applies the LT predicate on the "angle" field.
|
||||
func AngleLT(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldAngle, v))
|
||||
}
|
||||
|
||||
// AngleLTE applies the LTE predicate on the "angle" field.
|
||||
func AngleLTE(v float64) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldAngle, v))
|
||||
}
|
||||
|
||||
// ResultEQ applies the EQ predicate on the "result" field.
|
||||
func ResultEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultNEQ applies the NEQ predicate on the "result" field.
|
||||
func ResultNEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultIn applies the In predicate on the "result" field.
|
||||
func ResultIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldResult, vs...))
|
||||
}
|
||||
|
||||
// ResultNotIn applies the NotIn predicate on the "result" field.
|
||||
func ResultNotIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldResult, vs...))
|
||||
}
|
||||
|
||||
// ResultGT applies the GT predicate on the "result" field.
|
||||
func ResultGT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultGTE applies the GTE predicate on the "result" field.
|
||||
func ResultGTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultLT applies the LT predicate on the "result" field.
|
||||
func ResultLT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultLTE applies the LTE predicate on the "result" field.
|
||||
func ResultLTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultContains applies the Contains predicate on the "result" field.
|
||||
func ResultContains(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContains(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultHasPrefix applies the HasPrefix predicate on the "result" field.
|
||||
func ResultHasPrefix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasPrefix(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultHasSuffix applies the HasSuffix predicate on the "result" field.
|
||||
func ResultHasSuffix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasSuffix(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultEqualFold applies the EqualFold predicate on the "result" field.
|
||||
func ResultEqualFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEqualFold(FieldResult, v))
|
||||
}
|
||||
|
||||
// ResultContainsFold applies the ContainsFold predicate on the "result" field.
|
||||
func ResultContainsFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContainsFold(FieldResult, v))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||||
func StationNoEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||||
func StationNoNEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoIn applies the In predicate on the "stationNo" field.
|
||||
func StationNoIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||||
func StationNoNotIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||||
func StationNoGT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||||
func StationNoGTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||||
func StationNoLT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||||
func StationNoLTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoContains applies the Contains predicate on the "stationNo" field.
|
||||
func StationNoContains(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContains(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoHasPrefix applies the HasPrefix predicate on the "stationNo" field.
|
||||
func StationNoHasPrefix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasPrefix(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoHasSuffix applies the HasSuffix predicate on the "stationNo" field.
|
||||
func StationNoHasSuffix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasSuffix(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoEqualFold applies the EqualFold predicate on the "stationNo" field.
|
||||
func StationNoEqualFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEqualFold(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoContainsFold applies the ContainsFold predicate on the "stationNo" field.
|
||||
func StationNoContainsFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContainsFold(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// TimeEQ applies the EQ predicate on the "time" field.
|
||||
func TimeEQ(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldTime, v))
|
||||
}
|
||||
|
||||
// TimeNEQ applies the NEQ predicate on the "time" field.
|
||||
func TimeNEQ(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldTime, v))
|
||||
}
|
||||
|
||||
// TimeIn applies the In predicate on the "time" field.
|
||||
func TimeIn(vs ...time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldTime, vs...))
|
||||
}
|
||||
|
||||
// TimeNotIn applies the NotIn predicate on the "time" field.
|
||||
func TimeNotIn(vs ...time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldTime, vs...))
|
||||
}
|
||||
|
||||
// TimeGT applies the GT predicate on the "time" field.
|
||||
func TimeGT(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldTime, v))
|
||||
}
|
||||
|
||||
// TimeGTE applies the GTE predicate on the "time" field.
|
||||
func TimeGTE(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldTime, v))
|
||||
}
|
||||
|
||||
// TimeLT applies the LT predicate on the "time" field.
|
||||
func TimeLT(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldTime, v))
|
||||
}
|
||||
|
||||
// TimeLTE applies the LTE predicate on the "time" field.
|
||||
func TimeLTE(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldTime, v))
|
||||
}
|
||||
|
||||
// AuditByEQ applies the EQ predicate on the "auditBy" field.
|
||||
func AuditByEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByNEQ applies the NEQ predicate on the "auditBy" field.
|
||||
func AuditByNEQ(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByIn applies the In predicate on the "auditBy" field.
|
||||
func AuditByIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldAuditBy, vs...))
|
||||
}
|
||||
|
||||
// AuditByNotIn applies the NotIn predicate on the "auditBy" field.
|
||||
func AuditByNotIn(vs ...string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldAuditBy, vs...))
|
||||
}
|
||||
|
||||
// AuditByGT applies the GT predicate on the "auditBy" field.
|
||||
func AuditByGT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByGTE applies the GTE predicate on the "auditBy" field.
|
||||
func AuditByGTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByLT applies the LT predicate on the "auditBy" field.
|
||||
func AuditByLT(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByLTE applies the LTE predicate on the "auditBy" field.
|
||||
func AuditByLTE(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByContains applies the Contains predicate on the "auditBy" field.
|
||||
func AuditByContains(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContains(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByHasPrefix applies the HasPrefix predicate on the "auditBy" field.
|
||||
func AuditByHasPrefix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasPrefix(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByHasSuffix applies the HasSuffix predicate on the "auditBy" field.
|
||||
func AuditByHasSuffix(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldHasSuffix(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByEqualFold applies the EqualFold predicate on the "auditBy" field.
|
||||
func AuditByEqualFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEqualFold(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditByContainsFold applies the ContainsFold predicate on the "auditBy" field.
|
||||
func AuditByContainsFold(v string) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldContainsFold(FieldAuditBy, v))
|
||||
}
|
||||
|
||||
// AuditAtEQ applies the EQ predicate on the "auditAt" field.
|
||||
func AuditAtEQ(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldAuditAt, v))
|
||||
}
|
||||
|
||||
// AuditAtNEQ applies the NEQ predicate on the "auditAt" field.
|
||||
func AuditAtNEQ(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldAuditAt, v))
|
||||
}
|
||||
|
||||
// AuditAtIn applies the In predicate on the "auditAt" field.
|
||||
func AuditAtIn(vs ...time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldAuditAt, vs...))
|
||||
}
|
||||
|
||||
// AuditAtNotIn applies the NotIn predicate on the "auditAt" field.
|
||||
func AuditAtNotIn(vs ...time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldAuditAt, vs...))
|
||||
}
|
||||
|
||||
// AuditAtGT applies the GT predicate on the "auditAt" field.
|
||||
func AuditAtGT(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldAuditAt, v))
|
||||
}
|
||||
|
||||
// AuditAtGTE applies the GTE predicate on the "auditAt" field.
|
||||
func AuditAtGTE(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldAuditAt, v))
|
||||
}
|
||||
|
||||
// AuditAtLT applies the LT predicate on the "auditAt" field.
|
||||
func AuditAtLT(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldAuditAt, v))
|
||||
}
|
||||
|
||||
// AuditAtLTE applies the LTE predicate on the "auditAt" field.
|
||||
func AuditAtLTE(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldAuditAt, v))
|
||||
}
|
||||
|
||||
// AuditAtIsNil applies the IsNil predicate on the "auditAt" field.
|
||||
func AuditAtIsNil() predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIsNull(FieldAuditAt))
|
||||
}
|
||||
|
||||
// AuditAtNotNil applies the NotNil predicate on the "auditAt" field.
|
||||
func AuditAtNotNil() predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotNull(FieldAuditAt))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.TorqueRecord) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.TorqueRecord) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.TorqueRecord) predicate.TorqueRecord {
|
||||
return predicate.TorqueRecord(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user