feat: 移除工艺物料与混产模板实体、新增产线清线与 PLC 监控实时推送、看板双屏增强
- 移除实体:MES 删除 FlowMaterial(工艺物料)与 MixProductionTemplate(混产模板)全套(schema/ent 生成码/handler/logic),清理关联路由与种子 - 新增功能:产线清线(line_clearance handler + logic)、PLC 监控 WebSocket 实时推送(ws/plc_monitor_hub + handler) - 看板增强:新增管理屏与 KPI 组件(BoardManage/BoardKpi),调整演示屏 Mock 与各看板面板 - MES 完善:PLC 匹配/扭矩扫描/签收、工艺卡 PDF 与工单、AGV 链路、叫料/备料/在制品/短料预测等逻辑与前端调整 - 工位终端:删除离线面板 OfflinePanel,调整主界面/物料面板与 api/store/handler/路由 - WMS:AGV 托盘、物料与 MES 客户端调整及前端帮助/基础数据/叫料/托盘页 - 文档:更新产线API/客户问题/案例/部署手册/问题记录
This commit is contained in:
@@ -1,575 +0,0 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package flowmaterial
|
||||
|
||||
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.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// FlowId applies equality check predicate on the "flowId" field. It's identical to FlowIdEQ.
|
||||
func FlowId(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
|
||||
func MaterialCode(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialName applies equality check predicate on the "materialName" field. It's identical to MaterialNameEQ.
|
||||
func MaterialName(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// Spec applies equality check predicate on the "spec" field. It's identical to SpecEQ.
|
||||
func Spec(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
|
||||
func Unit(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// SnMode applies equality check predicate on the "snMode" field. It's identical to SnModeEQ.
|
||||
func SnMode(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// UnitQty applies equality check predicate on the "unitQty" field. It's identical to UnitQtyEQ.
|
||||
func UnitQty(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// LossRate applies equality check predicate on the "lossRate" field. It's identical to LossRateEQ.
|
||||
func LossRate(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// FlowIdEQ applies the EQ predicate on the "flowId" field.
|
||||
func FlowIdEQ(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdNEQ applies the NEQ predicate on the "flowId" field.
|
||||
func FlowIdNEQ(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdIn applies the In predicate on the "flowId" field.
|
||||
func FlowIdIn(vs ...int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldFlowId, vs...))
|
||||
}
|
||||
|
||||
// FlowIdNotIn applies the NotIn predicate on the "flowId" field.
|
||||
func FlowIdNotIn(vs ...int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldFlowId, vs...))
|
||||
}
|
||||
|
||||
// FlowIdGT applies the GT predicate on the "flowId" field.
|
||||
func FlowIdGT(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdGTE applies the GTE predicate on the "flowId" field.
|
||||
func FlowIdGTE(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdLT applies the LT predicate on the "flowId" field.
|
||||
func FlowIdLT(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdLTE applies the LTE predicate on the "flowId" field.
|
||||
func FlowIdLTE(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
|
||||
func MaterialCodeEQ(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeNEQ applies the NEQ predicate on the "materialCode" field.
|
||||
func MaterialCodeNEQ(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeIn applies the In predicate on the "materialCode" field.
|
||||
func MaterialCodeIn(vs ...string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeNotIn applies the NotIn predicate on the "materialCode" field.
|
||||
func MaterialCodeNotIn(vs ...string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeGT applies the GT predicate on the "materialCode" field.
|
||||
func MaterialCodeGT(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeGTE applies the GTE predicate on the "materialCode" field.
|
||||
func MaterialCodeGTE(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLT applies the LT predicate on the "materialCode" field.
|
||||
func MaterialCodeLT(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLTE applies the LTE predicate on the "materialCode" field.
|
||||
func MaterialCodeLTE(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContains applies the Contains predicate on the "materialCode" field.
|
||||
func MaterialCodeContains(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldContains(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasPrefix(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldHasPrefix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasSuffix(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldHasSuffix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEqualFold applies the EqualFold predicate on the "materialCode" field.
|
||||
func MaterialCodeEqualFold(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEqualFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContainsFold applies the ContainsFold predicate on the "materialCode" field.
|
||||
func MaterialCodeContainsFold(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldContainsFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialNameEQ applies the EQ predicate on the "materialName" field.
|
||||
func MaterialNameEQ(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameNEQ applies the NEQ predicate on the "materialName" field.
|
||||
func MaterialNameNEQ(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameIn applies the In predicate on the "materialName" field.
|
||||
func MaterialNameIn(vs ...string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameNotIn applies the NotIn predicate on the "materialName" field.
|
||||
func MaterialNameNotIn(vs ...string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameGT applies the GT predicate on the "materialName" field.
|
||||
func MaterialNameGT(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameGTE applies the GTE predicate on the "materialName" field.
|
||||
func MaterialNameGTE(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLT applies the LT predicate on the "materialName" field.
|
||||
func MaterialNameLT(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLTE applies the LTE predicate on the "materialName" field.
|
||||
func MaterialNameLTE(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContains applies the Contains predicate on the "materialName" field.
|
||||
func MaterialNameContains(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldContains(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasPrefix applies the HasPrefix predicate on the "materialName" field.
|
||||
func MaterialNameHasPrefix(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldHasPrefix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasSuffix applies the HasSuffix predicate on the "materialName" field.
|
||||
func MaterialNameHasSuffix(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldHasSuffix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameEqualFold applies the EqualFold predicate on the "materialName" field.
|
||||
func MaterialNameEqualFold(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEqualFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContainsFold applies the ContainsFold predicate on the "materialName" field.
|
||||
func MaterialNameContainsFold(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldContainsFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// SpecEQ applies the EQ predicate on the "spec" field.
|
||||
func SpecEQ(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecNEQ applies the NEQ predicate on the "spec" field.
|
||||
func SpecNEQ(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecIn applies the In predicate on the "spec" field.
|
||||
func SpecIn(vs ...string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldSpec, vs...))
|
||||
}
|
||||
|
||||
// SpecNotIn applies the NotIn predicate on the "spec" field.
|
||||
func SpecNotIn(vs ...string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldSpec, vs...))
|
||||
}
|
||||
|
||||
// SpecGT applies the GT predicate on the "spec" field.
|
||||
func SpecGT(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecGTE applies the GTE predicate on the "spec" field.
|
||||
func SpecGTE(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecLT applies the LT predicate on the "spec" field.
|
||||
func SpecLT(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecLTE applies the LTE predicate on the "spec" field.
|
||||
func SpecLTE(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecContains applies the Contains predicate on the "spec" field.
|
||||
func SpecContains(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldContains(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecHasPrefix applies the HasPrefix predicate on the "spec" field.
|
||||
func SpecHasPrefix(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldHasPrefix(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecHasSuffix applies the HasSuffix predicate on the "spec" field.
|
||||
func SpecHasSuffix(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldHasSuffix(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecEqualFold applies the EqualFold predicate on the "spec" field.
|
||||
func SpecEqualFold(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEqualFold(FieldSpec, v))
|
||||
}
|
||||
|
||||
// SpecContainsFold applies the ContainsFold predicate on the "spec" field.
|
||||
func SpecContainsFold(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldContainsFold(FieldSpec, v))
|
||||
}
|
||||
|
||||
// UnitEQ applies the EQ predicate on the "unit" field.
|
||||
func UnitEQ(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitNEQ applies the NEQ predicate on the "unit" field.
|
||||
func UnitNEQ(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitIn applies the In predicate on the "unit" field.
|
||||
func UnitIn(vs ...string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitNotIn applies the NotIn predicate on the "unit" field.
|
||||
func UnitNotIn(vs ...string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitGT applies the GT predicate on the "unit" field.
|
||||
func UnitGT(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitGTE applies the GTE predicate on the "unit" field.
|
||||
func UnitGTE(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLT applies the LT predicate on the "unit" field.
|
||||
func UnitLT(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLTE applies the LTE predicate on the "unit" field.
|
||||
func UnitLTE(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContains applies the Contains predicate on the "unit" field.
|
||||
func UnitContains(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldContains(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
|
||||
func UnitHasPrefix(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldHasPrefix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
|
||||
func UnitHasSuffix(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldHasSuffix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitEqualFold applies the EqualFold predicate on the "unit" field.
|
||||
func UnitEqualFold(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEqualFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContainsFold applies the ContainsFold predicate on the "unit" field.
|
||||
func UnitContainsFold(v string) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldContainsFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// SnModeEQ applies the EQ predicate on the "snMode" field.
|
||||
func SnModeEQ(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeNEQ applies the NEQ predicate on the "snMode" field.
|
||||
func SnModeNEQ(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeIn applies the In predicate on the "snMode" field.
|
||||
func SnModeIn(vs ...int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldSnMode, vs...))
|
||||
}
|
||||
|
||||
// SnModeNotIn applies the NotIn predicate on the "snMode" field.
|
||||
func SnModeNotIn(vs ...int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldSnMode, vs...))
|
||||
}
|
||||
|
||||
// SnModeGT applies the GT predicate on the "snMode" field.
|
||||
func SnModeGT(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeGTE applies the GTE predicate on the "snMode" field.
|
||||
func SnModeGTE(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeLT applies the LT predicate on the "snMode" field.
|
||||
func SnModeLT(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeLTE applies the LTE predicate on the "snMode" field.
|
||||
func SnModeLTE(v int) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// UnitQtyEQ applies the EQ predicate on the "unitQty" field.
|
||||
func UnitQtyEQ(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyNEQ applies the NEQ predicate on the "unitQty" field.
|
||||
func UnitQtyNEQ(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyIn applies the In predicate on the "unitQty" field.
|
||||
func UnitQtyIn(vs ...float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldUnitQty, vs...))
|
||||
}
|
||||
|
||||
// UnitQtyNotIn applies the NotIn predicate on the "unitQty" field.
|
||||
func UnitQtyNotIn(vs ...float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldUnitQty, vs...))
|
||||
}
|
||||
|
||||
// UnitQtyGT applies the GT predicate on the "unitQty" field.
|
||||
func UnitQtyGT(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyGTE applies the GTE predicate on the "unitQty" field.
|
||||
func UnitQtyGTE(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyLT applies the LT predicate on the "unitQty" field.
|
||||
func UnitQtyLT(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// UnitQtyLTE applies the LTE predicate on the "unitQty" field.
|
||||
func UnitQtyLTE(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldUnitQty, v))
|
||||
}
|
||||
|
||||
// LossRateEQ applies the EQ predicate on the "lossRate" field.
|
||||
func LossRateEQ(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateNEQ applies the NEQ predicate on the "lossRate" field.
|
||||
func LossRateNEQ(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateIn applies the In predicate on the "lossRate" field.
|
||||
func LossRateIn(vs ...float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldLossRate, vs...))
|
||||
}
|
||||
|
||||
// LossRateNotIn applies the NotIn predicate on the "lossRate" field.
|
||||
func LossRateNotIn(vs ...float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldLossRate, vs...))
|
||||
}
|
||||
|
||||
// LossRateGT applies the GT predicate on the "lossRate" field.
|
||||
func LossRateGT(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateGTE applies the GTE predicate on the "lossRate" field.
|
||||
func LossRateGTE(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateLT applies the LT predicate on the "lossRate" field.
|
||||
func LossRateLT(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// LossRateLTE applies the LTE predicate on the "lossRate" field.
|
||||
func LossRateLTE(v float64) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldLossRate, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.FlowMaterial) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.FlowMaterial) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.FlowMaterial) predicate.FlowMaterial {
|
||||
return predicate.FlowMaterial(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user