feat: 新增工件生命周期状态流水表及工单状态流转逻辑
新增工件生命周期状态流水表,记录所有工件状态变更动作,替代原半成品质检计数源 调整工单状态流转,将「下发工单」与「开始执行」合并为「下发并开工」,自动启用关联排产 新增工件物理位置字段,区分业务位置与实际物理工位,解决工位对账滞后问题 统一物料类别处理,避免 WMS 同步时覆盖合法值或错误设置为 0 移除已废弃的返修状态,更新相关显示与逻辑
This commit is contained in:
@@ -0,0 +1,785 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package workpiecelifecyclelog
|
||||
|
||||
import (
|
||||
"bj_power_mes/ent/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
|
||||
func Sn(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// WorkOrderNo applies equality check predicate on the "workOrderNo" field. It's identical to WorkOrderNoEQ.
|
||||
func WorkOrderNo(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// Action applies equality check predicate on the "action" field. It's identical to ActionEQ.
|
||||
func Action(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldAction, v))
|
||||
}
|
||||
|
||||
// FromStatus applies equality check predicate on the "fromStatus" field. It's identical to FromStatusEQ.
|
||||
func FromStatus(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// ToStatus applies equality check predicate on the "toStatus" field. It's identical to ToStatusEQ.
|
||||
func ToStatus(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||||
func StationNo(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// FlowSeq applies equality check predicate on the "flowSeq" field. It's identical to FlowSeqEQ.
|
||||
func FlowSeq(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldFlowSeq, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
|
||||
func Source(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
||||
func Remark(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// SnEQ applies the EQ predicate on the "sn" field.
|
||||
func SnEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnNEQ applies the NEQ predicate on the "sn" field.
|
||||
func SnNEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnIn applies the In predicate on the "sn" field.
|
||||
func SnIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnNotIn applies the NotIn predicate on the "sn" field.
|
||||
func SnNotIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldSn, vs...))
|
||||
}
|
||||
|
||||
// SnGT applies the GT predicate on the "sn" field.
|
||||
func SnGT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnGTE applies the GTE predicate on the "sn" field.
|
||||
func SnGTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLT applies the LT predicate on the "sn" field.
|
||||
func SnLT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnLTE applies the LTE predicate on the "sn" field.
|
||||
func SnLTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContains applies the Contains predicate on the "sn" field.
|
||||
func SnContains(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContains(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
|
||||
func SnHasPrefix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasPrefix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
|
||||
func SnHasSuffix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasSuffix(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnEqualFold applies the EqualFold predicate on the "sn" field.
|
||||
func SnEqualFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEqualFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
|
||||
func SnContainsFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContainsFold(FieldSn, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoEQ applies the EQ predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoNEQ applies the NEQ predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoNEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoIn applies the In predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldWorkOrderNo, vs...))
|
||||
}
|
||||
|
||||
// WorkOrderNoNotIn applies the NotIn predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoNotIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldWorkOrderNo, vs...))
|
||||
}
|
||||
|
||||
// WorkOrderNoGT applies the GT predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoGT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoGTE applies the GTE predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoGTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoLT applies the LT predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoLT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoLTE applies the LTE predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoLTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoContains applies the Contains predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoContains(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContains(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoHasPrefix applies the HasPrefix predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoHasPrefix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasPrefix(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoHasSuffix applies the HasSuffix predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoHasSuffix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasSuffix(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoEqualFold applies the EqualFold predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoEqualFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEqualFold(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoContainsFold applies the ContainsFold predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoContainsFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContainsFold(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// ActionEQ applies the EQ predicate on the "action" field.
|
||||
func ActionEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionNEQ applies the NEQ predicate on the "action" field.
|
||||
func ActionNEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionIn applies the In predicate on the "action" field.
|
||||
func ActionIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldAction, vs...))
|
||||
}
|
||||
|
||||
// ActionNotIn applies the NotIn predicate on the "action" field.
|
||||
func ActionNotIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldAction, vs...))
|
||||
}
|
||||
|
||||
// ActionGT applies the GT predicate on the "action" field.
|
||||
func ActionGT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionGTE applies the GTE predicate on the "action" field.
|
||||
func ActionGTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionLT applies the LT predicate on the "action" field.
|
||||
func ActionLT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionLTE applies the LTE predicate on the "action" field.
|
||||
func ActionLTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionContains applies the Contains predicate on the "action" field.
|
||||
func ActionContains(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContains(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionHasPrefix applies the HasPrefix predicate on the "action" field.
|
||||
func ActionHasPrefix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasPrefix(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionHasSuffix applies the HasSuffix predicate on the "action" field.
|
||||
func ActionHasSuffix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasSuffix(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionEqualFold applies the EqualFold predicate on the "action" field.
|
||||
func ActionEqualFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEqualFold(FieldAction, v))
|
||||
}
|
||||
|
||||
// ActionContainsFold applies the ContainsFold predicate on the "action" field.
|
||||
func ActionContainsFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContainsFold(FieldAction, v))
|
||||
}
|
||||
|
||||
// FromStatusEQ applies the EQ predicate on the "fromStatus" field.
|
||||
func FromStatusEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusNEQ applies the NEQ predicate on the "fromStatus" field.
|
||||
func FromStatusNEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusIn applies the In predicate on the "fromStatus" field.
|
||||
func FromStatusIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldFromStatus, vs...))
|
||||
}
|
||||
|
||||
// FromStatusNotIn applies the NotIn predicate on the "fromStatus" field.
|
||||
func FromStatusNotIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldFromStatus, vs...))
|
||||
}
|
||||
|
||||
// FromStatusGT applies the GT predicate on the "fromStatus" field.
|
||||
func FromStatusGT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusGTE applies the GTE predicate on the "fromStatus" field.
|
||||
func FromStatusGTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusLT applies the LT predicate on the "fromStatus" field.
|
||||
func FromStatusLT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusLTE applies the LTE predicate on the "fromStatus" field.
|
||||
func FromStatusLTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusContains applies the Contains predicate on the "fromStatus" field.
|
||||
func FromStatusContains(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContains(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusHasPrefix applies the HasPrefix predicate on the "fromStatus" field.
|
||||
func FromStatusHasPrefix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasPrefix(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusHasSuffix applies the HasSuffix predicate on the "fromStatus" field.
|
||||
func FromStatusHasSuffix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasSuffix(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusEqualFold applies the EqualFold predicate on the "fromStatus" field.
|
||||
func FromStatusEqualFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEqualFold(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// FromStatusContainsFold applies the ContainsFold predicate on the "fromStatus" field.
|
||||
func FromStatusContainsFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContainsFold(FieldFromStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusEQ applies the EQ predicate on the "toStatus" field.
|
||||
func ToStatusEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusNEQ applies the NEQ predicate on the "toStatus" field.
|
||||
func ToStatusNEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusIn applies the In predicate on the "toStatus" field.
|
||||
func ToStatusIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldToStatus, vs...))
|
||||
}
|
||||
|
||||
// ToStatusNotIn applies the NotIn predicate on the "toStatus" field.
|
||||
func ToStatusNotIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldToStatus, vs...))
|
||||
}
|
||||
|
||||
// ToStatusGT applies the GT predicate on the "toStatus" field.
|
||||
func ToStatusGT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusGTE applies the GTE predicate on the "toStatus" field.
|
||||
func ToStatusGTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusLT applies the LT predicate on the "toStatus" field.
|
||||
func ToStatusLT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusLTE applies the LTE predicate on the "toStatus" field.
|
||||
func ToStatusLTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusContains applies the Contains predicate on the "toStatus" field.
|
||||
func ToStatusContains(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContains(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusHasPrefix applies the HasPrefix predicate on the "toStatus" field.
|
||||
func ToStatusHasPrefix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasPrefix(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusHasSuffix applies the HasSuffix predicate on the "toStatus" field.
|
||||
func ToStatusHasSuffix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasSuffix(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusEqualFold applies the EqualFold predicate on the "toStatus" field.
|
||||
func ToStatusEqualFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEqualFold(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// ToStatusContainsFold applies the ContainsFold predicate on the "toStatus" field.
|
||||
func ToStatusContainsFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContainsFold(FieldToStatus, v))
|
||||
}
|
||||
|
||||
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||||
func StationNoEQ(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||||
func StationNoNEQ(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoIn applies the In predicate on the "stationNo" field.
|
||||
func StationNoIn(vs ...int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||||
func StationNoNotIn(vs ...int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||||
func StationNoGT(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||||
func StationNoGTE(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||||
func StationNoLT(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||||
func StationNoLTE(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoIsNil applies the IsNil predicate on the "stationNo" field.
|
||||
func StationNoIsNil() predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIsNull(FieldStationNo))
|
||||
}
|
||||
|
||||
// StationNoNotNil applies the NotNil predicate on the "stationNo" field.
|
||||
func StationNoNotNil() predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotNull(FieldStationNo))
|
||||
}
|
||||
|
||||
// FlowSeqEQ applies the EQ predicate on the "flowSeq" field.
|
||||
func FlowSeqEQ(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldFlowSeq, v))
|
||||
}
|
||||
|
||||
// FlowSeqNEQ applies the NEQ predicate on the "flowSeq" field.
|
||||
func FlowSeqNEQ(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldFlowSeq, v))
|
||||
}
|
||||
|
||||
// FlowSeqIn applies the In predicate on the "flowSeq" field.
|
||||
func FlowSeqIn(vs ...int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldFlowSeq, vs...))
|
||||
}
|
||||
|
||||
// FlowSeqNotIn applies the NotIn predicate on the "flowSeq" field.
|
||||
func FlowSeqNotIn(vs ...int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldFlowSeq, vs...))
|
||||
}
|
||||
|
||||
// FlowSeqGT applies the GT predicate on the "flowSeq" field.
|
||||
func FlowSeqGT(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldFlowSeq, v))
|
||||
}
|
||||
|
||||
// FlowSeqGTE applies the GTE predicate on the "flowSeq" field.
|
||||
func FlowSeqGTE(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldFlowSeq, v))
|
||||
}
|
||||
|
||||
// FlowSeqLT applies the LT predicate on the "flowSeq" field.
|
||||
func FlowSeqLT(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldFlowSeq, v))
|
||||
}
|
||||
|
||||
// FlowSeqLTE applies the LTE predicate on the "flowSeq" field.
|
||||
func FlowSeqLTE(v int) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldFlowSeq, v))
|
||||
}
|
||||
|
||||
// FlowSeqIsNil applies the IsNil predicate on the "flowSeq" field.
|
||||
func FlowSeqIsNil() predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIsNull(FieldFlowSeq))
|
||||
}
|
||||
|
||||
// FlowSeqNotNil applies the NotNil predicate on the "flowSeq" field.
|
||||
func FlowSeqNotNil() predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotNull(FieldFlowSeq))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// SourceEQ applies the EQ predicate on the "source" field.
|
||||
func SourceEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceNEQ applies the NEQ predicate on the "source" field.
|
||||
func SourceNEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceIn applies the In predicate on the "source" field.
|
||||
func SourceIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldSource, vs...))
|
||||
}
|
||||
|
||||
// SourceNotIn applies the NotIn predicate on the "source" field.
|
||||
func SourceNotIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldSource, vs...))
|
||||
}
|
||||
|
||||
// SourceGT applies the GT predicate on the "source" field.
|
||||
func SourceGT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceGTE applies the GTE predicate on the "source" field.
|
||||
func SourceGTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceLT applies the LT predicate on the "source" field.
|
||||
func SourceLT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceLTE applies the LTE predicate on the "source" field.
|
||||
func SourceLTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceContains applies the Contains predicate on the "source" field.
|
||||
func SourceContains(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContains(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceHasPrefix applies the HasPrefix predicate on the "source" field.
|
||||
func SourceHasPrefix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasPrefix(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceHasSuffix applies the HasSuffix predicate on the "source" field.
|
||||
func SourceHasSuffix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasSuffix(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceEqualFold applies the EqualFold predicate on the "source" field.
|
||||
func SourceEqualFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEqualFold(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceContainsFold applies the ContainsFold predicate on the "source" field.
|
||||
func SourceContainsFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContainsFold(FieldSource, v))
|
||||
}
|
||||
|
||||
// RemarkEQ applies the EQ predicate on the "remark" field.
|
||||
func RemarkEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
||||
func RemarkNEQ(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkIn applies the In predicate on the "remark" field.
|
||||
func RemarkIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
||||
func RemarkNotIn(vs ...string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkGT applies the GT predicate on the "remark" field.
|
||||
func RemarkGT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkGTE applies the GTE predicate on the "remark" field.
|
||||
func RemarkGTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLT applies the LT predicate on the "remark" field.
|
||||
func RemarkLT(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLTE applies the LTE predicate on the "remark" field.
|
||||
func RemarkLTE(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContains applies the Contains predicate on the "remark" field.
|
||||
func RemarkContains(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContains(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
||||
func RemarkHasPrefix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasPrefix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
||||
func RemarkHasSuffix(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldHasSuffix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
||||
func RemarkEqualFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEqualFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
||||
func RemarkContainsFold(v string) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldContainsFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.WorkpieceLifecycleLog) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.WorkpieceLifecycleLog) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.WorkpieceLifecycleLog) predicate.WorkpieceLifecycleLog {
|
||||
return predicate.WorkpieceLifecycleLog(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user