初始化2
This commit is contained in:
@@ -0,0 +1,654 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package semifinished
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
|
||||
func Sn(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// MaterialCode applies equality check predicate on the "material_code" field. It's identical to MaterialCodeEQ.
|
||||
func MaterialCode(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// CompletedProcess applies equality check predicate on the "completed_process" field. It's identical to CompletedProcessEQ.
|
||||
func CompletedProcess(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
|
||||
func Quantity(v int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// ZoneCode applies equality check predicate on the "zone_code" field. It's identical to ZoneCodeEQ.
|
||||
func ZoneCode(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// OrderNo applies equality check predicate on the "order_no" field. It's identical to OrderNoEQ.
|
||||
func OrderNo(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// SnEQ applies the EQ predicate on the "sn" field.
|
||||
func SnEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnNEQ applies the NEQ predicate on the "sn" field.
|
||||
func SnNEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnIn applies the In predicate on the "sn" field.
|
||||
func SnIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnNotIn applies the NotIn predicate on the "sn" field.
|
||||
func SnNotIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnGT applies the GT predicate on the "sn" field.
|
||||
func SnGT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnGTE applies the GTE predicate on the "sn" field.
|
||||
func SnGTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLT applies the LT predicate on the "sn" field.
|
||||
func SnLT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLTE applies the LTE predicate on the "sn" field.
|
||||
func SnLTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContains applies the Contains predicate on the "sn" field.
|
||||
func SnContains(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContains(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
|
||||
func SnHasPrefix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasPrefix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
|
||||
func SnHasSuffix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasSuffix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnEqualFold applies the EqualFold predicate on the "sn" field.
|
||||
func SnEqualFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEqualFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
|
||||
func SnContainsFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContainsFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEQ applies the EQ predicate on the "material_code" field.
|
||||
func MaterialCodeEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeNEQ applies the NEQ predicate on the "material_code" field.
|
||||
func MaterialCodeNEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeIn applies the In predicate on the "material_code" field.
|
||||
func MaterialCodeIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeNotIn applies the NotIn predicate on the "material_code" field.
|
||||
func MaterialCodeNotIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeGT applies the GT predicate on the "material_code" field.
|
||||
func MaterialCodeGT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeGTE applies the GTE predicate on the "material_code" field.
|
||||
func MaterialCodeGTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLT applies the LT predicate on the "material_code" field.
|
||||
func MaterialCodeLT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLTE applies the LTE predicate on the "material_code" field.
|
||||
func MaterialCodeLTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContains applies the Contains predicate on the "material_code" field.
|
||||
func MaterialCodeContains(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContains(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "material_code" field.
|
||||
func MaterialCodeHasPrefix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasPrefix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "material_code" field.
|
||||
func MaterialCodeHasSuffix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasSuffix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEqualFold applies the EqualFold predicate on the "material_code" field.
|
||||
func MaterialCodeEqualFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEqualFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContainsFold applies the ContainsFold predicate on the "material_code" field.
|
||||
func MaterialCodeContainsFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContainsFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// CompletedProcessEQ applies the EQ predicate on the "completed_process" field.
|
||||
func CompletedProcessEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessNEQ applies the NEQ predicate on the "completed_process" field.
|
||||
func CompletedProcessNEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessIn applies the In predicate on the "completed_process" field.
|
||||
func CompletedProcessIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldCompletedProcess, vs...))
|
||||
}
|
||||
|
||||
// CompletedProcessNotIn applies the NotIn predicate on the "completed_process" field.
|
||||
func CompletedProcessNotIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldCompletedProcess, vs...))
|
||||
}
|
||||
|
||||
// CompletedProcessGT applies the GT predicate on the "completed_process" field.
|
||||
func CompletedProcessGT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessGTE applies the GTE predicate on the "completed_process" field.
|
||||
func CompletedProcessGTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessLT applies the LT predicate on the "completed_process" field.
|
||||
func CompletedProcessLT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessLTE applies the LTE predicate on the "completed_process" field.
|
||||
func CompletedProcessLTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessContains applies the Contains predicate on the "completed_process" field.
|
||||
func CompletedProcessContains(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContains(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessHasPrefix applies the HasPrefix predicate on the "completed_process" field.
|
||||
func CompletedProcessHasPrefix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasPrefix(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessHasSuffix applies the HasSuffix predicate on the "completed_process" field.
|
||||
func CompletedProcessHasSuffix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasSuffix(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessIsNil applies the IsNil predicate on the "completed_process" field.
|
||||
func CompletedProcessIsNil() predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIsNull(FieldCompletedProcess))
|
||||
}
|
||||
|
||||
// CompletedProcessNotNil applies the NotNil predicate on the "completed_process" field.
|
||||
func CompletedProcessNotNil() predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotNull(FieldCompletedProcess))
|
||||
}
|
||||
|
||||
// CompletedProcessEqualFold applies the EqualFold predicate on the "completed_process" field.
|
||||
func CompletedProcessEqualFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEqualFold(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// CompletedProcessContainsFold applies the ContainsFold predicate on the "completed_process" field.
|
||||
func CompletedProcessContainsFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContainsFold(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// QuantityEQ applies the EQ predicate on the "quantity" field.
|
||||
func QuantityEQ(v int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityNEQ applies the NEQ predicate on the "quantity" field.
|
||||
func QuantityNEQ(v int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityIn applies the In predicate on the "quantity" field.
|
||||
func QuantityIn(vs ...int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldQuantity, vs...))
|
||||
}
|
||||
|
||||
// QuantityNotIn applies the NotIn predicate on the "quantity" field.
|
||||
func QuantityNotIn(vs ...int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldQuantity, vs...))
|
||||
}
|
||||
|
||||
// QuantityGT applies the GT predicate on the "quantity" field.
|
||||
func QuantityGT(v int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityGTE applies the GTE predicate on the "quantity" field.
|
||||
func QuantityGTE(v int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityLT applies the LT predicate on the "quantity" field.
|
||||
func QuantityLT(v int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityLTE applies the LTE predicate on the "quantity" field.
|
||||
func QuantityLTE(v int) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// ZoneCodeEQ applies the EQ predicate on the "zone_code" field.
|
||||
func ZoneCodeEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeNEQ applies the NEQ predicate on the "zone_code" field.
|
||||
func ZoneCodeNEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeIn applies the In predicate on the "zone_code" field.
|
||||
func ZoneCodeIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldZoneCode, vs...))
|
||||
}
|
||||
|
||||
// ZoneCodeNotIn applies the NotIn predicate on the "zone_code" field.
|
||||
func ZoneCodeNotIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldZoneCode, vs...))
|
||||
}
|
||||
|
||||
// ZoneCodeGT applies the GT predicate on the "zone_code" field.
|
||||
func ZoneCodeGT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeGTE applies the GTE predicate on the "zone_code" field.
|
||||
func ZoneCodeGTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeLT applies the LT predicate on the "zone_code" field.
|
||||
func ZoneCodeLT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeLTE applies the LTE predicate on the "zone_code" field.
|
||||
func ZoneCodeLTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeContains applies the Contains predicate on the "zone_code" field.
|
||||
func ZoneCodeContains(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContains(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeHasPrefix applies the HasPrefix predicate on the "zone_code" field.
|
||||
func ZoneCodeHasPrefix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasPrefix(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeHasSuffix applies the HasSuffix predicate on the "zone_code" field.
|
||||
func ZoneCodeHasSuffix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasSuffix(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeIsNil applies the IsNil predicate on the "zone_code" field.
|
||||
func ZoneCodeIsNil() predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIsNull(FieldZoneCode))
|
||||
}
|
||||
|
||||
// ZoneCodeNotNil applies the NotNil predicate on the "zone_code" field.
|
||||
func ZoneCodeNotNil() predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotNull(FieldZoneCode))
|
||||
}
|
||||
|
||||
// ZoneCodeEqualFold applies the EqualFold predicate on the "zone_code" field.
|
||||
func ZoneCodeEqualFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEqualFold(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeContainsFold applies the ContainsFold predicate on the "zone_code" field.
|
||||
func ZoneCodeContainsFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContainsFold(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// OrderNoEQ applies the EQ predicate on the "order_no" field.
|
||||
func OrderNoEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoNEQ applies the NEQ predicate on the "order_no" field.
|
||||
func OrderNoNEQ(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoIn applies the In predicate on the "order_no" field.
|
||||
func OrderNoIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoNotIn applies the NotIn predicate on the "order_no" field.
|
||||
func OrderNoNotIn(vs ...string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoGT applies the GT predicate on the "order_no" field.
|
||||
func OrderNoGT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoGTE applies the GTE predicate on the "order_no" field.
|
||||
func OrderNoGTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLT applies the LT predicate on the "order_no" field.
|
||||
func OrderNoLT(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLTE applies the LTE predicate on the "order_no" field.
|
||||
func OrderNoLTE(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContains applies the Contains predicate on the "order_no" field.
|
||||
func OrderNoContains(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContains(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasPrefix applies the HasPrefix predicate on the "order_no" field.
|
||||
func OrderNoHasPrefix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasPrefix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasSuffix applies the HasSuffix predicate on the "order_no" field.
|
||||
func OrderNoHasSuffix(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldHasSuffix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoIsNil applies the IsNil predicate on the "order_no" field.
|
||||
func OrderNoIsNil() predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIsNull(FieldOrderNo))
|
||||
}
|
||||
|
||||
// OrderNoNotNil applies the NotNil predicate on the "order_no" field.
|
||||
func OrderNoNotNil() predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotNull(FieldOrderNo))
|
||||
}
|
||||
|
||||
// OrderNoEqualFold applies the EqualFold predicate on the "order_no" field.
|
||||
func OrderNoEqualFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEqualFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContainsFold applies the ContainsFold predicate on the "order_no" field.
|
||||
func OrderNoContainsFold(v string) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldContainsFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
||||
func UpdatedAtNEQ(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
||||
func UpdatedAtIn(vs ...int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
||||
func UpdatedAtNotIn(vs ...int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
||||
func UpdatedAtGT(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
||||
func UpdatedAtGTE(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
||||
func UpdatedAtLT(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
||||
func UpdatedAtLTE(v int64) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.SemiFinished) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.SemiFinished) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.SemiFinished) predicate.SemiFinished {
|
||||
return predicate.SemiFinished(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user