feat: 新增预警与附件模块,优化工位派工功能
1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
This commit is contained in:
@@ -0,0 +1,930 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package workpiecebind
|
||||
|
||||
import (
|
||||
"bj_power_mes/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
|
||||
func Sn(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
|
||||
func OrderNo(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// ProcessCode applies equality check predicate on the "processCode" field. It's identical to ProcessCodeEQ.
|
||||
func ProcessCode(v int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||||
func StationNo(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
|
||||
func MaterialCode(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialName applies equality check predicate on the "materialName" field. It's identical to MaterialNameEQ.
|
||||
func MaterialName(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// Spec applies equality check predicate on the "spec" field. It's identical to SpecEQ.
|
||||
func Spec(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
|
||||
func Unit(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// ManageMode applies equality check predicate on the "manageMode" field. It's identical to ManageModeEQ.
|
||||
func ManageMode(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// BindValue applies equality check predicate on the "bindValue" field. It's identical to BindValueEQ.
|
||||
func BindValue(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindType applies equality check predicate on the "bindType" field. It's identical to BindTypeEQ.
|
||||
func BindType(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldBindType, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// SnEQ applies the EQ predicate on the "sn" field.
|
||||
func SnEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnNEQ applies the NEQ predicate on the "sn" field.
|
||||
func SnNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnIn applies the In predicate on the "sn" field.
|
||||
func SnIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnNotIn applies the NotIn predicate on the "sn" field.
|
||||
func SnNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnGT applies the GT predicate on the "sn" field.
|
||||
func SnGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnGTE applies the GTE predicate on the "sn" field.
|
||||
func SnGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLT applies the LT predicate on the "sn" field.
|
||||
func SnLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLTE applies the LTE predicate on the "sn" field.
|
||||
func SnLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContains applies the Contains predicate on the "sn" field.
|
||||
func SnContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
|
||||
func SnHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
|
||||
func SnHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnEqualFold applies the EqualFold predicate on the "sn" field.
|
||||
func SnEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
|
||||
func SnContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
|
||||
func OrderNoEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
|
||||
func OrderNoNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoIn applies the In predicate on the "orderNo" field.
|
||||
func OrderNoIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
|
||||
func OrderNoNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoGT applies the GT predicate on the "orderNo" field.
|
||||
func OrderNoGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
|
||||
func OrderNoGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLT applies the LT predicate on the "orderNo" field.
|
||||
func OrderNoLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
|
||||
func OrderNoLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContains applies the Contains predicate on the "orderNo" field.
|
||||
func OrderNoContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
|
||||
func OrderNoHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
|
||||
func OrderNoHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
|
||||
func OrderNoEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
|
||||
func OrderNoContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// ProcessCodeEQ applies the EQ predicate on the "processCode" field.
|
||||
func ProcessCodeEQ(v int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeNEQ applies the NEQ predicate on the "processCode" field.
|
||||
func ProcessCodeNEQ(v int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeIn applies the In predicate on the "processCode" field.
|
||||
func ProcessCodeIn(vs ...int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldProcessCode, vs...))
|
||||
}
|
||||
|
||||
// ProcessCodeNotIn applies the NotIn predicate on the "processCode" field.
|
||||
func ProcessCodeNotIn(vs ...int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldProcessCode, vs...))
|
||||
}
|
||||
|
||||
// ProcessCodeGT applies the GT predicate on the "processCode" field.
|
||||
func ProcessCodeGT(v int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeGTE applies the GTE predicate on the "processCode" field.
|
||||
func ProcessCodeGTE(v int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeLT applies the LT predicate on the "processCode" field.
|
||||
func ProcessCodeLT(v int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeLTE applies the LTE predicate on the "processCode" field.
|
||||
func ProcessCodeLTE(v int) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||||
func StationNoEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||||
func StationNoNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoIn applies the In predicate on the "stationNo" field.
|
||||
func StationNoIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||||
func StationNoNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||||
func StationNoGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||||
func StationNoGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||||
func StationNoLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||||
func StationNoLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoContains applies the Contains predicate on the "stationNo" field.
|
||||
func StationNoContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoHasPrefix applies the HasPrefix predicate on the "stationNo" field.
|
||||
func StationNoHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoHasSuffix applies the HasSuffix predicate on the "stationNo" field.
|
||||
func StationNoHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoEqualFold applies the EqualFold predicate on the "stationNo" field.
|
||||
func StationNoEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoContainsFold applies the ContainsFold predicate on the "stationNo" field.
|
||||
func StationNoContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
|
||||
func MaterialCodeEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeNEQ applies the NEQ predicate on the "materialCode" field.
|
||||
func MaterialCodeNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeIn applies the In predicate on the "materialCode" field.
|
||||
func MaterialCodeIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeNotIn applies the NotIn predicate on the "materialCode" field.
|
||||
func MaterialCodeNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeGT applies the GT predicate on the "materialCode" field.
|
||||
func MaterialCodeGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeGTE applies the GTE predicate on the "materialCode" field.
|
||||
func MaterialCodeGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLT applies the LT predicate on the "materialCode" field.
|
||||
func MaterialCodeLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLTE applies the LTE predicate on the "materialCode" field.
|
||||
func MaterialCodeLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContains applies the Contains predicate on the "materialCode" field.
|
||||
func MaterialCodeContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEqualFold applies the EqualFold predicate on the "materialCode" field.
|
||||
func MaterialCodeEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContainsFold applies the ContainsFold predicate on the "materialCode" field.
|
||||
func MaterialCodeContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialNameEQ applies the EQ predicate on the "materialName" field.
|
||||
func MaterialNameEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameNEQ applies the NEQ predicate on the "materialName" field.
|
||||
func MaterialNameNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameIn applies the In predicate on the "materialName" field.
|
||||
func MaterialNameIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameNotIn applies the NotIn predicate on the "materialName" field.
|
||||
func MaterialNameNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameGT applies the GT predicate on the "materialName" field.
|
||||
func MaterialNameGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameGTE applies the GTE predicate on the "materialName" field.
|
||||
func MaterialNameGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLT applies the LT predicate on the "materialName" field.
|
||||
func MaterialNameLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLTE applies the LTE predicate on the "materialName" field.
|
||||
func MaterialNameLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContains applies the Contains predicate on the "materialName" field.
|
||||
func MaterialNameContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasPrefix applies the HasPrefix predicate on the "materialName" field.
|
||||
func MaterialNameHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasSuffix applies the HasSuffix predicate on the "materialName" field.
|
||||
func MaterialNameHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameEqualFold applies the EqualFold predicate on the "materialName" field.
|
||||
func MaterialNameEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContainsFold applies the ContainsFold predicate on the "materialName" field.
|
||||
func MaterialNameContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// SpecEQ applies the EQ predicate on the "spec" field.
|
||||
func SpecEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecNEQ applies the NEQ predicate on the "spec" field.
|
||||
func SpecNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecIn applies the In predicate on the "spec" field.
|
||||
func SpecIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldSpec, vs...))
|
||||
}
|
||||
|
||||
// SpecNotIn applies the NotIn predicate on the "spec" field.
|
||||
func SpecNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldSpec, vs...))
|
||||
}
|
||||
|
||||
// SpecGT applies the GT predicate on the "spec" field.
|
||||
func SpecGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecGTE applies the GTE predicate on the "spec" field.
|
||||
func SpecGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecLT applies the LT predicate on the "spec" field.
|
||||
func SpecLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecLTE applies the LTE predicate on the "spec" field.
|
||||
func SpecLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecContains applies the Contains predicate on the "spec" field.
|
||||
func SpecContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecHasPrefix applies the HasPrefix predicate on the "spec" field.
|
||||
func SpecHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecHasSuffix applies the HasSuffix predicate on the "spec" field.
|
||||
func SpecHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecEqualFold applies the EqualFold predicate on the "spec" field.
|
||||
func SpecEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecContainsFold applies the ContainsFold predicate on the "spec" field.
|
||||
func SpecContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldSpec, v))
|
||||
}
|
||||
|
||||
// UnitEQ applies the EQ predicate on the "unit" field.
|
||||
func UnitEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitNEQ applies the NEQ predicate on the "unit" field.
|
||||
func UnitNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitIn applies the In predicate on the "unit" field.
|
||||
func UnitIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitNotIn applies the NotIn predicate on the "unit" field.
|
||||
func UnitNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitGT applies the GT predicate on the "unit" field.
|
||||
func UnitGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitGTE applies the GTE predicate on the "unit" field.
|
||||
func UnitGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLT applies the LT predicate on the "unit" field.
|
||||
func UnitLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLTE applies the LTE predicate on the "unit" field.
|
||||
func UnitLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContains applies the Contains predicate on the "unit" field.
|
||||
func UnitContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
|
||||
func UnitHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
|
||||
func UnitHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitEqualFold applies the EqualFold predicate on the "unit" field.
|
||||
func UnitEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContainsFold applies the ContainsFold predicate on the "unit" field.
|
||||
func UnitContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// ManageModeEQ applies the EQ predicate on the "manageMode" field.
|
||||
func ManageModeEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeNEQ applies the NEQ predicate on the "manageMode" field.
|
||||
func ManageModeNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeIn applies the In predicate on the "manageMode" field.
|
||||
func ManageModeIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldManageMode, vs...))
|
||||
}
|
||||
|
||||
// ManageModeNotIn applies the NotIn predicate on the "manageMode" field.
|
||||
func ManageModeNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldManageMode, vs...))
|
||||
}
|
||||
|
||||
// ManageModeGT applies the GT predicate on the "manageMode" field.
|
||||
func ManageModeGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeGTE applies the GTE predicate on the "manageMode" field.
|
||||
func ManageModeGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeLT applies the LT predicate on the "manageMode" field.
|
||||
func ManageModeLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeLTE applies the LTE predicate on the "manageMode" field.
|
||||
func ManageModeLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeContains applies the Contains predicate on the "manageMode" field.
|
||||
func ManageModeContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeHasPrefix applies the HasPrefix predicate on the "manageMode" field.
|
||||
func ManageModeHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeHasSuffix applies the HasSuffix predicate on the "manageMode" field.
|
||||
func ManageModeHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeEqualFold applies the EqualFold predicate on the "manageMode" field.
|
||||
func ManageModeEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// ManageModeContainsFold applies the ContainsFold predicate on the "manageMode" field.
|
||||
func ManageModeContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldManageMode, v))
|
||||
}
|
||||
|
||||
// BindValueEQ applies the EQ predicate on the "bindValue" field.
|
||||
func BindValueEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueNEQ applies the NEQ predicate on the "bindValue" field.
|
||||
func BindValueNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueIn applies the In predicate on the "bindValue" field.
|
||||
func BindValueIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldBindValue, vs...))
|
||||
}
|
||||
|
||||
// BindValueNotIn applies the NotIn predicate on the "bindValue" field.
|
||||
func BindValueNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldBindValue, vs...))
|
||||
}
|
||||
|
||||
// BindValueGT applies the GT predicate on the "bindValue" field.
|
||||
func BindValueGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueGTE applies the GTE predicate on the "bindValue" field.
|
||||
func BindValueGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueLT applies the LT predicate on the "bindValue" field.
|
||||
func BindValueLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueLTE applies the LTE predicate on the "bindValue" field.
|
||||
func BindValueLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueContains applies the Contains predicate on the "bindValue" field.
|
||||
func BindValueContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueHasPrefix applies the HasPrefix predicate on the "bindValue" field.
|
||||
func BindValueHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueHasSuffix applies the HasSuffix predicate on the "bindValue" field.
|
||||
func BindValueHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueEqualFold applies the EqualFold predicate on the "bindValue" field.
|
||||
func BindValueEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindValueContainsFold applies the ContainsFold predicate on the "bindValue" field.
|
||||
func BindValueContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldBindValue, v))
|
||||
}
|
||||
|
||||
// BindTypeEQ applies the EQ predicate on the "bindType" field.
|
||||
func BindTypeEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeNEQ applies the NEQ predicate on the "bindType" field.
|
||||
func BindTypeNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeIn applies the In predicate on the "bindType" field.
|
||||
func BindTypeIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldBindType, vs...))
|
||||
}
|
||||
|
||||
// BindTypeNotIn applies the NotIn predicate on the "bindType" field.
|
||||
func BindTypeNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldBindType, vs...))
|
||||
}
|
||||
|
||||
// BindTypeGT applies the GT predicate on the "bindType" field.
|
||||
func BindTypeGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeGTE applies the GTE predicate on the "bindType" field.
|
||||
func BindTypeGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeLT applies the LT predicate on the "bindType" field.
|
||||
func BindTypeLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeLTE applies the LTE predicate on the "bindType" field.
|
||||
func BindTypeLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeContains applies the Contains predicate on the "bindType" field.
|
||||
func BindTypeContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeHasPrefix applies the HasPrefix predicate on the "bindType" field.
|
||||
func BindTypeHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeHasSuffix applies the HasSuffix predicate on the "bindType" field.
|
||||
func BindTypeHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeEqualFold applies the EqualFold predicate on the "bindType" field.
|
||||
func BindTypeEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldBindType, v))
|
||||
}
|
||||
|
||||
// BindTypeContainsFold applies the ContainsFold predicate on the "bindType" field.
|
||||
func BindTypeContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldBindType, v))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.WorkpieceBind) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.WorkpieceBind) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.WorkpieceBind) predicate.WorkpieceBind {
|
||||
return predicate.WorkpieceBind(sql.NotPredicates(p))
|
||||
}
|
||||
@@ -0,0 +1,190 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package workpiecebind
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the workpiecebind type in the database.
|
||||
Label = "workpiece_bind"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldSn holds the string denoting the sn field in the database.
|
||||
FieldSn = "sn"
|
||||
// FieldOrderNo holds the string denoting the orderno field in the database.
|
||||
FieldOrderNo = "order_no"
|
||||
// FieldProcessCode holds the string denoting the processcode field in the database.
|
||||
FieldProcessCode = "process_code"
|
||||
// FieldStationNo holds the string denoting the stationno field in the database.
|
||||
FieldStationNo = "station_no"
|
||||
// FieldMaterialCode holds the string denoting the materialcode field in the database.
|
||||
FieldMaterialCode = "material_code"
|
||||
// FieldMaterialName holds the string denoting the materialname field in the database.
|
||||
FieldMaterialName = "material_name"
|
||||
// FieldSpec holds the string denoting the spec field in the database.
|
||||
FieldSpec = "spec"
|
||||
// FieldUnit holds the string denoting the unit field in the database.
|
||||
FieldUnit = "unit"
|
||||
// FieldManageMode holds the string denoting the managemode field in the database.
|
||||
FieldManageMode = "manage_mode"
|
||||
// FieldBindValue holds the string denoting the bindvalue field in the database.
|
||||
FieldBindValue = "bind_value"
|
||||
// FieldBindType holds the string denoting the bindtype field in the database.
|
||||
FieldBindType = "bind_type"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the workpiecebind in the database.
|
||||
Table = "workpiece_bind"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for workpiecebind fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldSn,
|
||||
FieldOrderNo,
|
||||
FieldProcessCode,
|
||||
FieldStationNo,
|
||||
FieldMaterialCode,
|
||||
FieldMaterialName,
|
||||
FieldSpec,
|
||||
FieldUnit,
|
||||
FieldManageMode,
|
||||
FieldBindValue,
|
||||
FieldBindType,
|
||||
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 (
|
||||
// SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
SnValidator func(string) error
|
||||
// DefaultOrderNo holds the default value on creation for the "orderNo" field.
|
||||
DefaultOrderNo string
|
||||
// OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
OrderNoValidator 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
|
||||
// MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
MaterialCodeValidator func(string) error
|
||||
// DefaultMaterialName holds the default value on creation for the "materialName" field.
|
||||
DefaultMaterialName string
|
||||
// MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
MaterialNameValidator func(string) error
|
||||
// DefaultSpec holds the default value on creation for the "spec" field.
|
||||
DefaultSpec string
|
||||
// SpecValidator is a validator for the "spec" field. It is called by the builders before save.
|
||||
SpecValidator func(string) error
|
||||
// DefaultUnit holds the default value on creation for the "unit" field.
|
||||
DefaultUnit string
|
||||
// UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
UnitValidator func(string) error
|
||||
// DefaultManageMode holds the default value on creation for the "manageMode" field.
|
||||
DefaultManageMode string
|
||||
// ManageModeValidator is a validator for the "manageMode" field. It is called by the builders before save.
|
||||
ManageModeValidator func(string) error
|
||||
// BindValueValidator is a validator for the "bindValue" field. It is called by the builders before save.
|
||||
BindValueValidator func(string) error
|
||||
// DefaultBindType holds the default value on creation for the "bindType" field.
|
||||
DefaultBindType string
|
||||
// BindTypeValidator is a validator for the "bindType" field. It is called by the builders before save.
|
||||
BindTypeValidator 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
|
||||
// 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 WorkpieceBind 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()
|
||||
}
|
||||
|
||||
// BySn orders the results by the sn field.
|
||||
func BySn(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSn, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOrderNo orders the results by the orderNo field.
|
||||
func ByOrderNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOrderNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProcessCode orders the results by the processCode field.
|
||||
func ByProcessCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProcessCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStationNo orders the results by the stationNo field.
|
||||
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialCode orders the results by the materialCode field.
|
||||
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialName orders the results by the materialName field.
|
||||
func ByMaterialName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySpec orders the results by the spec field.
|
||||
func BySpec(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSpec, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUnit orders the results by the unit field.
|
||||
func ByUnit(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUnit, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByManageMode orders the results by the manageMode field.
|
||||
func ByManageMode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldManageMode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBindValue orders the results by the bindValue field.
|
||||
func ByBindValue(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBindValue, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBindType orders the results by the bindType field.
|
||||
func ByBindType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBindType, 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 createdAt field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
Reference in New Issue
Block a user