feat: 新增预警与附件模块,优化工位派工功能
1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
This commit is contained in:
@@ -0,0 +1,720 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package plcmovecmd
|
||||
|
||||
import (
|
||||
"bj_power_mes/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// CmdNo applies equality check predicate on the "cmdNo" field. It's identical to CmdNoEQ.
|
||||
func CmdNo(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
|
||||
func Sn(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
|
||||
func OrderNo(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// FromPoint applies equality check predicate on the "fromPoint" field. It's identical to FromPointEQ.
|
||||
func FromPoint(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// ToPoint applies equality check predicate on the "toPoint" field. It's identical to ToPointEQ.
|
||||
func ToPoint(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
|
||||
func Message(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldMessage, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// CmdNoEQ applies the EQ predicate on the "cmdNo" field.
|
||||
func CmdNoEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoNEQ applies the NEQ predicate on the "cmdNo" field.
|
||||
func CmdNoNEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoIn applies the In predicate on the "cmdNo" field.
|
||||
func CmdNoIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldCmdNo, vs...))
|
||||
}
|
||||
|
||||
// CmdNoNotIn applies the NotIn predicate on the "cmdNo" field.
|
||||
func CmdNoNotIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldCmdNo, vs...))
|
||||
}
|
||||
|
||||
// CmdNoGT applies the GT predicate on the "cmdNo" field.
|
||||
func CmdNoGT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoGTE applies the GTE predicate on the "cmdNo" field.
|
||||
func CmdNoGTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoLT applies the LT predicate on the "cmdNo" field.
|
||||
func CmdNoLT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoLTE applies the LTE predicate on the "cmdNo" field.
|
||||
func CmdNoLTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoContains applies the Contains predicate on the "cmdNo" field.
|
||||
func CmdNoContains(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContains(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoHasPrefix applies the HasPrefix predicate on the "cmdNo" field.
|
||||
func CmdNoHasPrefix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasPrefix(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoHasSuffix applies the HasSuffix predicate on the "cmdNo" field.
|
||||
func CmdNoHasSuffix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasSuffix(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoEqualFold applies the EqualFold predicate on the "cmdNo" field.
|
||||
func CmdNoEqualFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEqualFold(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// CmdNoContainsFold applies the ContainsFold predicate on the "cmdNo" field.
|
||||
func CmdNoContainsFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContainsFold(FieldCmdNo, v))
|
||||
}
|
||||
|
||||
// SnEQ applies the EQ predicate on the "sn" field.
|
||||
func SnEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnNEQ applies the NEQ predicate on the "sn" field.
|
||||
func SnNEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnIn applies the In predicate on the "sn" field.
|
||||
func SnIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnNotIn applies the NotIn predicate on the "sn" field.
|
||||
func SnNotIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnGT applies the GT predicate on the "sn" field.
|
||||
func SnGT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnGTE applies the GTE predicate on the "sn" field.
|
||||
func SnGTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLT applies the LT predicate on the "sn" field.
|
||||
func SnLT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLTE applies the LTE predicate on the "sn" field.
|
||||
func SnLTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContains applies the Contains predicate on the "sn" field.
|
||||
func SnContains(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContains(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
|
||||
func SnHasPrefix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasPrefix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
|
||||
func SnHasSuffix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasSuffix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnEqualFold applies the EqualFold predicate on the "sn" field.
|
||||
func SnEqualFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEqualFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
|
||||
func SnContainsFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContainsFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
|
||||
func OrderNoEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
|
||||
func OrderNoNEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoIn applies the In predicate on the "orderNo" field.
|
||||
func OrderNoIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
|
||||
func OrderNoNotIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoGT applies the GT predicate on the "orderNo" field.
|
||||
func OrderNoGT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
|
||||
func OrderNoGTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLT applies the LT predicate on the "orderNo" field.
|
||||
func OrderNoLT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
|
||||
func OrderNoLTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContains applies the Contains predicate on the "orderNo" field.
|
||||
func OrderNoContains(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContains(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
|
||||
func OrderNoHasPrefix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasPrefix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
|
||||
func OrderNoHasSuffix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasSuffix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
|
||||
func OrderNoEqualFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEqualFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
|
||||
func OrderNoContainsFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContainsFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// FromPointEQ applies the EQ predicate on the "fromPoint" field.
|
||||
func FromPointEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointNEQ applies the NEQ predicate on the "fromPoint" field.
|
||||
func FromPointNEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointIn applies the In predicate on the "fromPoint" field.
|
||||
func FromPointIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldFromPoint, vs...))
|
||||
}
|
||||
|
||||
// FromPointNotIn applies the NotIn predicate on the "fromPoint" field.
|
||||
func FromPointNotIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldFromPoint, vs...))
|
||||
}
|
||||
|
||||
// FromPointGT applies the GT predicate on the "fromPoint" field.
|
||||
func FromPointGT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointGTE applies the GTE predicate on the "fromPoint" field.
|
||||
func FromPointGTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointLT applies the LT predicate on the "fromPoint" field.
|
||||
func FromPointLT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointLTE applies the LTE predicate on the "fromPoint" field.
|
||||
func FromPointLTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointContains applies the Contains predicate on the "fromPoint" field.
|
||||
func FromPointContains(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContains(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointHasPrefix applies the HasPrefix predicate on the "fromPoint" field.
|
||||
func FromPointHasPrefix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasPrefix(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointHasSuffix applies the HasSuffix predicate on the "fromPoint" field.
|
||||
func FromPointHasSuffix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasSuffix(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointEqualFold applies the EqualFold predicate on the "fromPoint" field.
|
||||
func FromPointEqualFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEqualFold(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// FromPointContainsFold applies the ContainsFold predicate on the "fromPoint" field.
|
||||
func FromPointContainsFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContainsFold(FieldFromPoint, v))
|
||||
}
|
||||
|
||||
// ToPointEQ applies the EQ predicate on the "toPoint" field.
|
||||
func ToPointEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointNEQ applies the NEQ predicate on the "toPoint" field.
|
||||
func ToPointNEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointIn applies the In predicate on the "toPoint" field.
|
||||
func ToPointIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldToPoint, vs...))
|
||||
}
|
||||
|
||||
// ToPointNotIn applies the NotIn predicate on the "toPoint" field.
|
||||
func ToPointNotIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldToPoint, vs...))
|
||||
}
|
||||
|
||||
// ToPointGT applies the GT predicate on the "toPoint" field.
|
||||
func ToPointGT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointGTE applies the GTE predicate on the "toPoint" field.
|
||||
func ToPointGTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointLT applies the LT predicate on the "toPoint" field.
|
||||
func ToPointLT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointLTE applies the LTE predicate on the "toPoint" field.
|
||||
func ToPointLTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointContains applies the Contains predicate on the "toPoint" field.
|
||||
func ToPointContains(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContains(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointHasPrefix applies the HasPrefix predicate on the "toPoint" field.
|
||||
func ToPointHasPrefix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasPrefix(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointHasSuffix applies the HasSuffix predicate on the "toPoint" field.
|
||||
func ToPointHasSuffix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasSuffix(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointEqualFold applies the EqualFold predicate on the "toPoint" field.
|
||||
func ToPointEqualFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEqualFold(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// ToPointContainsFold applies the ContainsFold predicate on the "toPoint" field.
|
||||
func ToPointContainsFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContainsFold(FieldToPoint, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// MessageEQ applies the EQ predicate on the "message" field.
|
||||
func MessageEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageNEQ applies the NEQ predicate on the "message" field.
|
||||
func MessageNEQ(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageIn applies the In predicate on the "message" field.
|
||||
func MessageIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldMessage, vs...))
|
||||
}
|
||||
|
||||
// MessageNotIn applies the NotIn predicate on the "message" field.
|
||||
func MessageNotIn(vs ...string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldMessage, vs...))
|
||||
}
|
||||
|
||||
// MessageGT applies the GT predicate on the "message" field.
|
||||
func MessageGT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageGTE applies the GTE predicate on the "message" field.
|
||||
func MessageGTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageLT applies the LT predicate on the "message" field.
|
||||
func MessageLT(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageLTE applies the LTE predicate on the "message" field.
|
||||
func MessageLTE(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageContains applies the Contains predicate on the "message" field.
|
||||
func MessageContains(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContains(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageHasPrefix applies the HasPrefix predicate on the "message" field.
|
||||
func MessageHasPrefix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasPrefix(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageHasSuffix applies the HasSuffix predicate on the "message" field.
|
||||
func MessageHasSuffix(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldHasSuffix(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageEqualFold applies the EqualFold predicate on the "message" field.
|
||||
func MessageEqualFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEqualFold(FieldMessage, v))
|
||||
}
|
||||
|
||||
// MessageContainsFold applies the ContainsFold predicate on the "message" field.
|
||||
func MessageContainsFold(v string) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldContainsFold(FieldMessage, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.PlcMoveCmd) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.PlcMoveCmd) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.PlcMoveCmd) predicate.PlcMoveCmd {
|
||||
return predicate.PlcMoveCmd(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user