feat&refactor: 完成多模块功能迭代与配置优化
本次提交覆盖多个业务模块的功能完善与体验优化:
1. **鉴权与配置调整**:
- 统一JWT滑动续签逻辑,简化Token存储,移除RefreshToken相关冗余代码
- 调整多项目配置文件中JWT过期时间为3600秒,统一会话闲置窗口
- 工位配置放开1~12限制,改为仅校验大于0
2. **术语统一替换**:全链路将"精密件"替换为"电气件",修正物料管理描述
3. **功能新增**:
- 新增工位类型、工艺路线与产线点位台账模块
- 添加工艺PDF预览面板、工位终端代理转发接口
- 新增操作日志按操作人列表筛选、工位登出日志记录
- 新增PLC移料指令与产线点位状态管理
4. **业务流程优化**:
- 调整BOM物料删除校验逻辑,优化工单备料计算
- 补充物料图号、检测单号等追溯字段
- 完善工艺流程图与工位绑定关系说明
- 优化前端页面文案与交互细节
5. **代码规范与维护**:
- 新增通用工具函数与前端静态资源
- 整理路由权限与中间件逻辑
- 修复部分接口与配置的不兼容问题
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package linepoint
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the linepoint type in the database.
|
||||
Label = "line_point"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldPointType holds the string denoting the pointtype field in the database.
|
||||
FieldPointType = "point_type"
|
||||
// FieldPointNo holds the string denoting the pointno field in the database.
|
||||
FieldPointNo = "point_no"
|
||||
// FieldLabel holds the string denoting the label field in the database.
|
||||
FieldLabel = "label"
|
||||
// FieldSeq holds the string denoting the seq field in the database.
|
||||
FieldSeq = "seq"
|
||||
// FieldStationNo holds the string denoting the stationno field in the database.
|
||||
FieldStationNo = "station_no"
|
||||
// FieldCurrentSn holds the string denoting the currentsn field in the database.
|
||||
FieldCurrentSn = "current_sn"
|
||||
// FieldOrderNo holds the string denoting the orderno field in the database.
|
||||
FieldOrderNo = "order_no"
|
||||
// FieldOccupied holds the string denoting the occupied field in the database.
|
||||
FieldOccupied = "occupied"
|
||||
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// Table holds the table name of the linepoint in the database.
|
||||
Table = "line_point"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for linepoint fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldPointType,
|
||||
FieldPointNo,
|
||||
FieldLabel,
|
||||
FieldSeq,
|
||||
FieldStationNo,
|
||||
FieldCurrentSn,
|
||||
FieldOrderNo,
|
||||
FieldOccupied,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// PointTypeValidator is a validator for the "pointType" field. It is called by the builders before save.
|
||||
PointTypeValidator func(string) error
|
||||
// PointNoValidator is a validator for the "pointNo" field. It is called by the builders before save.
|
||||
PointNoValidator func(string) error
|
||||
// DefaultLabel holds the default value on creation for the "label" field.
|
||||
DefaultLabel string
|
||||
// LabelValidator is a validator for the "label" field. It is called by the builders before save.
|
||||
LabelValidator func(string) error
|
||||
// DefaultSeq holds the default value on creation for the "seq" field.
|
||||
DefaultSeq int
|
||||
// DefaultStationNo holds the default value on creation for the "stationNo" field.
|
||||
DefaultStationNo int
|
||||
// DefaultCurrentSn holds the default value on creation for the "currentSn" field.
|
||||
DefaultCurrentSn string
|
||||
// CurrentSnValidator is a validator for the "currentSn" field. It is called by the builders before save.
|
||||
CurrentSnValidator func(string) error
|
||||
// DefaultOrderNo holds the default value on creation for the "orderNo" field.
|
||||
DefaultOrderNo string
|
||||
// OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
OrderNoValidator func(string) error
|
||||
// DefaultOccupied holds the default value on creation for the "occupied" field.
|
||||
DefaultOccupied bool
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updatedAt" field.
|
||||
DefaultUpdatedAt func() time.Time
|
||||
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
|
||||
UpdateDefaultUpdatedAt func() time.Time
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the LinePoint queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPointType orders the results by the pointType field.
|
||||
func ByPointType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPointType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPointNo orders the results by the pointNo field.
|
||||
func ByPointNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPointNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLabel orders the results by the label field.
|
||||
func ByLabel(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLabel, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySeq orders the results by the seq field.
|
||||
func BySeq(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSeq, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStationNo orders the results by the stationNo field.
|
||||
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCurrentSn orders the results by the currentSn field.
|
||||
func ByCurrentSn(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCurrentSn, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOrderNo orders the results by the orderNo field.
|
||||
func ByOrderNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOrderNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOccupied orders the results by the occupied field.
|
||||
func ByOccupied(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOccupied, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updatedAt field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,565 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package linepoint
|
||||
|
||||
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.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// PointType applies equality check predicate on the "pointType" field. It's identical to PointTypeEQ.
|
||||
func PointType(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointNo applies equality check predicate on the "pointNo" field. It's identical to PointNoEQ.
|
||||
func PointNo(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.
|
||||
func Seq(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldSeq, v))
|
||||
}
|
||||
|
||||
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||||
func StationNo(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// CurrentSn applies equality check predicate on the "currentSn" field. It's identical to CurrentSnEQ.
|
||||
func CurrentSn(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
|
||||
func OrderNo(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// Occupied applies equality check predicate on the "occupied" field. It's identical to OccupiedEQ.
|
||||
func Occupied(v bool) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldOccupied, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// PointTypeEQ applies the EQ predicate on the "pointType" field.
|
||||
func PointTypeEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeNEQ applies the NEQ predicate on the "pointType" field.
|
||||
func PointTypeNEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeIn applies the In predicate on the "pointType" field.
|
||||
func PointTypeIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldPointType, vs...))
|
||||
}
|
||||
|
||||
// PointTypeNotIn applies the NotIn predicate on the "pointType" field.
|
||||
func PointTypeNotIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldPointType, vs...))
|
||||
}
|
||||
|
||||
// PointTypeGT applies the GT predicate on the "pointType" field.
|
||||
func PointTypeGT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeGTE applies the GTE predicate on the "pointType" field.
|
||||
func PointTypeGTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeLT applies the LT predicate on the "pointType" field.
|
||||
func PointTypeLT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeLTE applies the LTE predicate on the "pointType" field.
|
||||
func PointTypeLTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeContains applies the Contains predicate on the "pointType" field.
|
||||
func PointTypeContains(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContains(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeHasPrefix applies the HasPrefix predicate on the "pointType" field.
|
||||
func PointTypeHasPrefix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasPrefix(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeHasSuffix applies the HasSuffix predicate on the "pointType" field.
|
||||
func PointTypeHasSuffix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasSuffix(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeEqualFold applies the EqualFold predicate on the "pointType" field.
|
||||
func PointTypeEqualFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEqualFold(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointTypeContainsFold applies the ContainsFold predicate on the "pointType" field.
|
||||
func PointTypeContainsFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContainsFold(FieldPointType, v))
|
||||
}
|
||||
|
||||
// PointNoEQ applies the EQ predicate on the "pointNo" field.
|
||||
func PointNoEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoNEQ applies the NEQ predicate on the "pointNo" field.
|
||||
func PointNoNEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoIn applies the In predicate on the "pointNo" field.
|
||||
func PointNoIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldPointNo, vs...))
|
||||
}
|
||||
|
||||
// PointNoNotIn applies the NotIn predicate on the "pointNo" field.
|
||||
func PointNoNotIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldPointNo, vs...))
|
||||
}
|
||||
|
||||
// PointNoGT applies the GT predicate on the "pointNo" field.
|
||||
func PointNoGT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoGTE applies the GTE predicate on the "pointNo" field.
|
||||
func PointNoGTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoLT applies the LT predicate on the "pointNo" field.
|
||||
func PointNoLT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoLTE applies the LTE predicate on the "pointNo" field.
|
||||
func PointNoLTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoContains applies the Contains predicate on the "pointNo" field.
|
||||
func PointNoContains(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContains(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoHasPrefix applies the HasPrefix predicate on the "pointNo" field.
|
||||
func PointNoHasPrefix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasPrefix(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoHasSuffix applies the HasSuffix predicate on the "pointNo" field.
|
||||
func PointNoHasSuffix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasSuffix(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoEqualFold applies the EqualFold predicate on the "pointNo" field.
|
||||
func PointNoEqualFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEqualFold(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// PointNoContainsFold applies the ContainsFold predicate on the "pointNo" field.
|
||||
func PointNoContainsFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContainsFold(FieldPointNo, v))
|
||||
}
|
||||
|
||||
// LabelEQ applies the EQ predicate on the "label" field.
|
||||
func LabelEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelNEQ applies the NEQ predicate on the "label" field.
|
||||
func LabelNEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelIn applies the In predicate on the "label" field.
|
||||
func LabelIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldLabel, vs...))
|
||||
}
|
||||
|
||||
// LabelNotIn applies the NotIn predicate on the "label" field.
|
||||
func LabelNotIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldLabel, vs...))
|
||||
}
|
||||
|
||||
// LabelGT applies the GT predicate on the "label" field.
|
||||
func LabelGT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelGTE applies the GTE predicate on the "label" field.
|
||||
func LabelGTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelLT applies the LT predicate on the "label" field.
|
||||
func LabelLT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelLTE applies the LTE predicate on the "label" field.
|
||||
func LabelLTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelContains applies the Contains predicate on the "label" field.
|
||||
func LabelContains(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContains(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelHasPrefix applies the HasPrefix predicate on the "label" field.
|
||||
func LabelHasPrefix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasPrefix(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelHasSuffix applies the HasSuffix predicate on the "label" field.
|
||||
func LabelHasSuffix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasSuffix(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelEqualFold applies the EqualFold predicate on the "label" field.
|
||||
func LabelEqualFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEqualFold(FieldLabel, v))
|
||||
}
|
||||
|
||||
// LabelContainsFold applies the ContainsFold predicate on the "label" field.
|
||||
func LabelContainsFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContainsFold(FieldLabel, v))
|
||||
}
|
||||
|
||||
// SeqEQ applies the EQ predicate on the "seq" field.
|
||||
func SeqEQ(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqNEQ applies the NEQ predicate on the "seq" field.
|
||||
func SeqNEQ(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqIn applies the In predicate on the "seq" field.
|
||||
func SeqIn(vs ...int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldSeq, vs...))
|
||||
}
|
||||
|
||||
// SeqNotIn applies the NotIn predicate on the "seq" field.
|
||||
func SeqNotIn(vs ...int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldSeq, vs...))
|
||||
}
|
||||
|
||||
// SeqGT applies the GT predicate on the "seq" field.
|
||||
func SeqGT(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqGTE applies the GTE predicate on the "seq" field.
|
||||
func SeqGTE(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqLT applies the LT predicate on the "seq" field.
|
||||
func SeqLT(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqLTE applies the LTE predicate on the "seq" field.
|
||||
func SeqLTE(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldSeq, v))
|
||||
}
|
||||
|
||||
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||||
func StationNoEQ(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||||
func StationNoNEQ(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoIn applies the In predicate on the "stationNo" field.
|
||||
func StationNoIn(vs ...int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||||
func StationNoNotIn(vs ...int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||||
func StationNoGT(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||||
func StationNoGTE(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||||
func StationNoLT(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||||
func StationNoLTE(v int) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// CurrentSnEQ applies the EQ predicate on the "currentSn" field.
|
||||
func CurrentSnEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnNEQ applies the NEQ predicate on the "currentSn" field.
|
||||
func CurrentSnNEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnIn applies the In predicate on the "currentSn" field.
|
||||
func CurrentSnIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldCurrentSn, vs...))
|
||||
}
|
||||
|
||||
// CurrentSnNotIn applies the NotIn predicate on the "currentSn" field.
|
||||
func CurrentSnNotIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldCurrentSn, vs...))
|
||||
}
|
||||
|
||||
// CurrentSnGT applies the GT predicate on the "currentSn" field.
|
||||
func CurrentSnGT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnGTE applies the GTE predicate on the "currentSn" field.
|
||||
func CurrentSnGTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnLT applies the LT predicate on the "currentSn" field.
|
||||
func CurrentSnLT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnLTE applies the LTE predicate on the "currentSn" field.
|
||||
func CurrentSnLTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnContains applies the Contains predicate on the "currentSn" field.
|
||||
func CurrentSnContains(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContains(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnHasPrefix applies the HasPrefix predicate on the "currentSn" field.
|
||||
func CurrentSnHasPrefix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasPrefix(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnHasSuffix applies the HasSuffix predicate on the "currentSn" field.
|
||||
func CurrentSnHasSuffix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasSuffix(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnEqualFold applies the EqualFold predicate on the "currentSn" field.
|
||||
func CurrentSnEqualFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEqualFold(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// CurrentSnContainsFold applies the ContainsFold predicate on the "currentSn" field.
|
||||
func CurrentSnContainsFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContainsFold(FieldCurrentSn, v))
|
||||
}
|
||||
|
||||
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
|
||||
func OrderNoEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
|
||||
func OrderNoNEQ(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoIn applies the In predicate on the "orderNo" field.
|
||||
func OrderNoIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
|
||||
func OrderNoNotIn(vs ...string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoGT applies the GT predicate on the "orderNo" field.
|
||||
func OrderNoGT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
|
||||
func OrderNoGTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLT applies the LT predicate on the "orderNo" field.
|
||||
func OrderNoLT(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
|
||||
func OrderNoLTE(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContains applies the Contains predicate on the "orderNo" field.
|
||||
func OrderNoContains(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContains(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
|
||||
func OrderNoHasPrefix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasPrefix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
|
||||
func OrderNoHasSuffix(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldHasSuffix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
|
||||
func OrderNoEqualFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEqualFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
|
||||
func OrderNoContainsFold(v string) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldContainsFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OccupiedEQ applies the EQ predicate on the "occupied" field.
|
||||
func OccupiedEQ(v bool) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldOccupied, v))
|
||||
}
|
||||
|
||||
// OccupiedNEQ applies the NEQ predicate on the "occupied" field.
|
||||
func OccupiedNEQ(v bool) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldOccupied, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.LinePoint) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.LinePoint) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.LinePoint) predicate.LinePoint {
|
||||
return predicate.LinePoint(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user