1. 全局替换"工序"为"工艺"统一术语,包括页面文案、枚举、注释
2. 重构工单与工件工艺数据模型:
- 新增工艺组合表flow_material作为备料/齐套唯一源头
- 新增工位状态表station_state支持自主停单/恢复接单
- 移除station_process派工表,改用工单工艺组合作为路线唯一源头
- 替换processCode为flowId作为工艺关联标识
- 重构工件当前进度字段为currentStationNo
3. 删除冗余的静态备份资源文件
4. 调整物料选择组件默认启用仅显示激活物料
5. 优化工单创建/编辑逻辑,新增工艺组合校验与保存
441 lines
16 KiB
Go
441 lines
16 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package stationstate
|
|
|
|
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.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
|
func StationNo(v int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// Date applies equality check predicate on the "date" field. It's identical to DateEQ.
|
|
func Date(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldDate, v))
|
|
}
|
|
|
|
// Paused applies equality check predicate on the "paused" field. It's identical to PausedEQ.
|
|
func Paused(v bool) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldPaused, v))
|
|
}
|
|
|
|
// Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.
|
|
func Reason(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldReason, v))
|
|
}
|
|
|
|
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
|
func Operator(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldOperator, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
|
func StationNoEQ(v int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
|
func StationNoNEQ(v int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNEQ(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoIn applies the In predicate on the "stationNo" field.
|
|
func StationNoIn(vs ...int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldIn(FieldStationNo, vs...))
|
|
}
|
|
|
|
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
|
func StationNoNotIn(vs ...int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNotIn(FieldStationNo, vs...))
|
|
}
|
|
|
|
// StationNoGT applies the GT predicate on the "stationNo" field.
|
|
func StationNoGT(v int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGT(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
|
func StationNoGTE(v int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGTE(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoLT applies the LT predicate on the "stationNo" field.
|
|
func StationNoLT(v int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLT(FieldStationNo, v))
|
|
}
|
|
|
|
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
|
func StationNoLTE(v int) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLTE(FieldStationNo, v))
|
|
}
|
|
|
|
// DateEQ applies the EQ predicate on the "date" field.
|
|
func DateEQ(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldDate, v))
|
|
}
|
|
|
|
// DateNEQ applies the NEQ predicate on the "date" field.
|
|
func DateNEQ(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNEQ(FieldDate, v))
|
|
}
|
|
|
|
// DateIn applies the In predicate on the "date" field.
|
|
func DateIn(vs ...string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldIn(FieldDate, vs...))
|
|
}
|
|
|
|
// DateNotIn applies the NotIn predicate on the "date" field.
|
|
func DateNotIn(vs ...string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNotIn(FieldDate, vs...))
|
|
}
|
|
|
|
// DateGT applies the GT predicate on the "date" field.
|
|
func DateGT(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGT(FieldDate, v))
|
|
}
|
|
|
|
// DateGTE applies the GTE predicate on the "date" field.
|
|
func DateGTE(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGTE(FieldDate, v))
|
|
}
|
|
|
|
// DateLT applies the LT predicate on the "date" field.
|
|
func DateLT(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLT(FieldDate, v))
|
|
}
|
|
|
|
// DateLTE applies the LTE predicate on the "date" field.
|
|
func DateLTE(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLTE(FieldDate, v))
|
|
}
|
|
|
|
// DateContains applies the Contains predicate on the "date" field.
|
|
func DateContains(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldContains(FieldDate, v))
|
|
}
|
|
|
|
// DateHasPrefix applies the HasPrefix predicate on the "date" field.
|
|
func DateHasPrefix(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldHasPrefix(FieldDate, v))
|
|
}
|
|
|
|
// DateHasSuffix applies the HasSuffix predicate on the "date" field.
|
|
func DateHasSuffix(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldHasSuffix(FieldDate, v))
|
|
}
|
|
|
|
// DateEqualFold applies the EqualFold predicate on the "date" field.
|
|
func DateEqualFold(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEqualFold(FieldDate, v))
|
|
}
|
|
|
|
// DateContainsFold applies the ContainsFold predicate on the "date" field.
|
|
func DateContainsFold(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldContainsFold(FieldDate, v))
|
|
}
|
|
|
|
// PausedEQ applies the EQ predicate on the "paused" field.
|
|
func PausedEQ(v bool) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldPaused, v))
|
|
}
|
|
|
|
// PausedNEQ applies the NEQ predicate on the "paused" field.
|
|
func PausedNEQ(v bool) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNEQ(FieldPaused, v))
|
|
}
|
|
|
|
// ReasonEQ applies the EQ predicate on the "reason" field.
|
|
func ReasonEQ(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldReason, v))
|
|
}
|
|
|
|
// ReasonNEQ applies the NEQ predicate on the "reason" field.
|
|
func ReasonNEQ(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNEQ(FieldReason, v))
|
|
}
|
|
|
|
// ReasonIn applies the In predicate on the "reason" field.
|
|
func ReasonIn(vs ...string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldIn(FieldReason, vs...))
|
|
}
|
|
|
|
// ReasonNotIn applies the NotIn predicate on the "reason" field.
|
|
func ReasonNotIn(vs ...string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNotIn(FieldReason, vs...))
|
|
}
|
|
|
|
// ReasonGT applies the GT predicate on the "reason" field.
|
|
func ReasonGT(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGT(FieldReason, v))
|
|
}
|
|
|
|
// ReasonGTE applies the GTE predicate on the "reason" field.
|
|
func ReasonGTE(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGTE(FieldReason, v))
|
|
}
|
|
|
|
// ReasonLT applies the LT predicate on the "reason" field.
|
|
func ReasonLT(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLT(FieldReason, v))
|
|
}
|
|
|
|
// ReasonLTE applies the LTE predicate on the "reason" field.
|
|
func ReasonLTE(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLTE(FieldReason, v))
|
|
}
|
|
|
|
// ReasonContains applies the Contains predicate on the "reason" field.
|
|
func ReasonContains(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldContains(FieldReason, v))
|
|
}
|
|
|
|
// ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.
|
|
func ReasonHasPrefix(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldHasPrefix(FieldReason, v))
|
|
}
|
|
|
|
// ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.
|
|
func ReasonHasSuffix(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldHasSuffix(FieldReason, v))
|
|
}
|
|
|
|
// ReasonEqualFold applies the EqualFold predicate on the "reason" field.
|
|
func ReasonEqualFold(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEqualFold(FieldReason, v))
|
|
}
|
|
|
|
// ReasonContainsFold applies the ContainsFold predicate on the "reason" field.
|
|
func ReasonContainsFold(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldContainsFold(FieldReason, v))
|
|
}
|
|
|
|
// OperatorEQ applies the EQ predicate on the "operator" field.
|
|
func OperatorEQ(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
|
func OperatorNEQ(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNEQ(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorIn applies the In predicate on the "operator" field.
|
|
func OperatorIn(vs ...string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldIn(FieldOperator, vs...))
|
|
}
|
|
|
|
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
|
func OperatorNotIn(vs ...string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNotIn(FieldOperator, vs...))
|
|
}
|
|
|
|
// OperatorGT applies the GT predicate on the "operator" field.
|
|
func OperatorGT(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGT(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorGTE applies the GTE predicate on the "operator" field.
|
|
func OperatorGTE(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGTE(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorLT applies the LT predicate on the "operator" field.
|
|
func OperatorLT(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLT(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorLTE applies the LTE predicate on the "operator" field.
|
|
func OperatorLTE(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLTE(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorContains applies the Contains predicate on the "operator" field.
|
|
func OperatorContains(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldContains(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
|
func OperatorHasPrefix(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldHasPrefix(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
|
func OperatorHasSuffix(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldHasSuffix(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
|
func OperatorEqualFold(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEqualFold(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
|
func OperatorContainsFold(v string) predicate.StationState {
|
|
return predicate.StationState(sql.FieldContainsFold(FieldOperator, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
|
func UpdatedAtGT(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
|
func UpdatedAtLT(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.StationState {
|
|
return predicate.StationState(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIsNil applies the IsNil predicate on the "updatedAt" field.
|
|
func UpdatedAtIsNil() predicate.StationState {
|
|
return predicate.StationState(sql.FieldIsNull(FieldUpdatedAt))
|
|
}
|
|
|
|
// UpdatedAtNotNil applies the NotNil predicate on the "updatedAt" field.
|
|
func UpdatedAtNotNil() predicate.StationState {
|
|
return predicate.StationState(sql.FieldNotNull(FieldUpdatedAt))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.StationState) predicate.StationState {
|
|
return predicate.StationState(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.StationState) predicate.StationState {
|
|
return predicate.StationState(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.StationState) predicate.StationState {
|
|
return predicate.StationState(sql.NotPredicates(p))
|
|
}
|