feat: 来料检处置项实体与复检、日排产达成对比、PLC/WMS 传输日志
- WMS 新增「检验处置项」实体(schema + ent 生成码),配套检验记录实体调整与复检接口,完善来料检/不良退货/入库检验前端 - MES 日排产:新增达成率统计与计划对比逻辑,调整日排产前端与流程卡/工序流 - 日志与传输:MES 新增 PLC 日志与 WMS 客户端传输日志,WMS 新增 MES 客户端传输日志 - MES 其他:扫码、工单/工件、AGV 客户端与告警、产品导入等逻辑完善及前端调整 - 工位终端:上线面板/作业面板、工件 handler 与 MES 客户端调整 - 配置与文档:更新 mes-api.yaml、三端构建产物与问题记录文档
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package inspectiondisposalitem
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the inspectiondisposalitem type in the database.
|
||||
Label = "inspection_disposal_item"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldRecordID holds the string denoting the record_id field in the database.
|
||||
FieldRecordID = "record_id"
|
||||
// FieldDisposeType holds the string denoting the dispose_type field in the database.
|
||||
FieldDisposeType = "dispose_type"
|
||||
// FieldQty holds the string denoting the qty field in the database.
|
||||
FieldQty = "qty"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the inspectiondisposalitem in the database.
|
||||
Table = "inspection_disposal_items"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for inspectiondisposalitem fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldRecordID,
|
||||
FieldDisposeType,
|
||||
FieldQty,
|
||||
FieldRemark,
|
||||
FieldOperator,
|
||||
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 (
|
||||
// QtyValidator is a validator for the "qty" field. It is called by the builders before save.
|
||||
QtyValidator func(int) error
|
||||
// DefaultOperator holds the default value on creation for the "operator" field.
|
||||
DefaultOperator string
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the InspectionDisposalItem 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()
|
||||
}
|
||||
|
||||
// ByRecordID orders the results by the record_id field.
|
||||
func ByRecordID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRecordID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDisposeType orders the results by the dispose_type field.
|
||||
func ByDisposeType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDisposeType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByQty orders the results by the qty field.
|
||||
func ByQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRemark orders the results by the remark field.
|
||||
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemark, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOperator orders the results by the operator field.
|
||||
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOperator, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,424 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package inspectiondisposalitem
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// RecordID applies equality check predicate on the "record_id" field. It's identical to RecordIDEQ.
|
||||
func RecordID(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldRecordID, v))
|
||||
}
|
||||
|
||||
// DisposeType applies equality check predicate on the "dispose_type" field. It's identical to DisposeTypeEQ.
|
||||
func DisposeType(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// Qty applies equality check predicate on the "qty" field. It's identical to QtyEQ.
|
||||
func Qty(v int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldQty, v))
|
||||
}
|
||||
|
||||
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
||||
func Remark(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// RecordIDEQ applies the EQ predicate on the "record_id" field.
|
||||
func RecordIDEQ(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldRecordID, v))
|
||||
}
|
||||
|
||||
// RecordIDNEQ applies the NEQ predicate on the "record_id" field.
|
||||
func RecordIDNEQ(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNEQ(FieldRecordID, v))
|
||||
}
|
||||
|
||||
// RecordIDIn applies the In predicate on the "record_id" field.
|
||||
func RecordIDIn(vs ...int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldIn(FieldRecordID, vs...))
|
||||
}
|
||||
|
||||
// RecordIDNotIn applies the NotIn predicate on the "record_id" field.
|
||||
func RecordIDNotIn(vs ...int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNotIn(FieldRecordID, vs...))
|
||||
}
|
||||
|
||||
// RecordIDGT applies the GT predicate on the "record_id" field.
|
||||
func RecordIDGT(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGT(FieldRecordID, v))
|
||||
}
|
||||
|
||||
// RecordIDGTE applies the GTE predicate on the "record_id" field.
|
||||
func RecordIDGTE(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGTE(FieldRecordID, v))
|
||||
}
|
||||
|
||||
// RecordIDLT applies the LT predicate on the "record_id" field.
|
||||
func RecordIDLT(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLT(FieldRecordID, v))
|
||||
}
|
||||
|
||||
// RecordIDLTE applies the LTE predicate on the "record_id" field.
|
||||
func RecordIDLTE(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLTE(FieldRecordID, v))
|
||||
}
|
||||
|
||||
// DisposeTypeEQ applies the EQ predicate on the "dispose_type" field.
|
||||
func DisposeTypeEQ(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeNEQ applies the NEQ predicate on the "dispose_type" field.
|
||||
func DisposeTypeNEQ(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNEQ(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeIn applies the In predicate on the "dispose_type" field.
|
||||
func DisposeTypeIn(vs ...string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldIn(FieldDisposeType, vs...))
|
||||
}
|
||||
|
||||
// DisposeTypeNotIn applies the NotIn predicate on the "dispose_type" field.
|
||||
func DisposeTypeNotIn(vs ...string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNotIn(FieldDisposeType, vs...))
|
||||
}
|
||||
|
||||
// DisposeTypeGT applies the GT predicate on the "dispose_type" field.
|
||||
func DisposeTypeGT(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGT(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeGTE applies the GTE predicate on the "dispose_type" field.
|
||||
func DisposeTypeGTE(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGTE(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeLT applies the LT predicate on the "dispose_type" field.
|
||||
func DisposeTypeLT(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLT(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeLTE applies the LTE predicate on the "dispose_type" field.
|
||||
func DisposeTypeLTE(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLTE(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeContains applies the Contains predicate on the "dispose_type" field.
|
||||
func DisposeTypeContains(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldContains(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeHasPrefix applies the HasPrefix predicate on the "dispose_type" field.
|
||||
func DisposeTypeHasPrefix(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldHasPrefix(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeHasSuffix applies the HasSuffix predicate on the "dispose_type" field.
|
||||
func DisposeTypeHasSuffix(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldHasSuffix(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeEqualFold applies the EqualFold predicate on the "dispose_type" field.
|
||||
func DisposeTypeEqualFold(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEqualFold(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// DisposeTypeContainsFold applies the ContainsFold predicate on the "dispose_type" field.
|
||||
func DisposeTypeContainsFold(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldContainsFold(FieldDisposeType, v))
|
||||
}
|
||||
|
||||
// QtyEQ applies the EQ predicate on the "qty" field.
|
||||
func QtyEQ(v int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldQty, v))
|
||||
}
|
||||
|
||||
// QtyNEQ applies the NEQ predicate on the "qty" field.
|
||||
func QtyNEQ(v int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNEQ(FieldQty, v))
|
||||
}
|
||||
|
||||
// QtyIn applies the In predicate on the "qty" field.
|
||||
func QtyIn(vs ...int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldIn(FieldQty, vs...))
|
||||
}
|
||||
|
||||
// QtyNotIn applies the NotIn predicate on the "qty" field.
|
||||
func QtyNotIn(vs ...int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNotIn(FieldQty, vs...))
|
||||
}
|
||||
|
||||
// QtyGT applies the GT predicate on the "qty" field.
|
||||
func QtyGT(v int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGT(FieldQty, v))
|
||||
}
|
||||
|
||||
// QtyGTE applies the GTE predicate on the "qty" field.
|
||||
func QtyGTE(v int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGTE(FieldQty, v))
|
||||
}
|
||||
|
||||
// QtyLT applies the LT predicate on the "qty" field.
|
||||
func QtyLT(v int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLT(FieldQty, v))
|
||||
}
|
||||
|
||||
// QtyLTE applies the LTE predicate on the "qty" field.
|
||||
func QtyLTE(v int) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLTE(FieldQty, v))
|
||||
}
|
||||
|
||||
// RemarkEQ applies the EQ predicate on the "remark" field.
|
||||
func RemarkEQ(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
||||
func RemarkNEQ(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkIn applies the In predicate on the "remark" field.
|
||||
func RemarkIn(vs ...string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
||||
func RemarkNotIn(vs ...string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNotIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkGT applies the GT predicate on the "remark" field.
|
||||
func RemarkGT(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkGTE applies the GTE predicate on the "remark" field.
|
||||
func RemarkGTE(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLT applies the LT predicate on the "remark" field.
|
||||
func RemarkLT(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLTE applies the LTE predicate on the "remark" field.
|
||||
func RemarkLTE(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContains applies the Contains predicate on the "remark" field.
|
||||
func RemarkContains(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldContains(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
||||
func RemarkHasPrefix(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldHasPrefix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
||||
func RemarkHasSuffix(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldHasSuffix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkIsNil applies the IsNil predicate on the "remark" field.
|
||||
func RemarkIsNil() predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldIsNull(FieldRemark))
|
||||
}
|
||||
|
||||
// RemarkNotNil applies the NotNil predicate on the "remark" field.
|
||||
func RemarkNotNil() predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNotNull(FieldRemark))
|
||||
}
|
||||
|
||||
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
||||
func RemarkEqualFold(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEqualFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
||||
func RemarkContainsFold(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldContainsFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v int64) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.InspectionDisposalItem) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.InspectionDisposalItem) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.InspectionDisposalItem) predicate.InspectionDisposalItem {
|
||||
return predicate.InspectionDisposalItem(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user