feat: 五项目业务实现并对接完成
- MES(B): 工单/BOM/备料/工序字典/PLC下发/拧紧/扫码报工/半成品/AGV/追溯逻辑,WMS与海康RCS客户端,看板Redis缓存API(概览/设备/进度/报警/趋势)+SSE - WMS(C): JWT滑动续签、Excel导入、盘点、内部API、种子数据、独立Postgres配置 - WMS客户端(E): Go网关8891反向代理+内嵌Vue3十页 - 工位终端(D): SQLite本地缓存+模拟拧紧源+内嵌Vue3页面 - Dashboard(A): 看板数据改接MES内部缓存API,SSE实时刷新+vite代理 - 清理各项目球形磨遗留代码,新增部署手册.md
This commit is contained in:
@@ -0,0 +1,334 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package zone
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// ZoneCode applies equality check predicate on the "zone_code" field. It's identical to ZoneCodeEQ.
|
||||
func ZoneCode(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneName applies equality check predicate on the "zone_name" field. It's identical to ZoneNameEQ.
|
||||
func ZoneName(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
|
||||
func Description(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// ZoneCodeEQ applies the EQ predicate on the "zone_code" field.
|
||||
func ZoneCodeEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeNEQ applies the NEQ predicate on the "zone_code" field.
|
||||
func ZoneCodeNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeIn applies the In predicate on the "zone_code" field.
|
||||
func ZoneCodeIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldZoneCode, vs...))
|
||||
}
|
||||
|
||||
// ZoneCodeNotIn applies the NotIn predicate on the "zone_code" field.
|
||||
func ZoneCodeNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldZoneCode, vs...))
|
||||
}
|
||||
|
||||
// ZoneCodeGT applies the GT predicate on the "zone_code" field.
|
||||
func ZoneCodeGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeGTE applies the GTE predicate on the "zone_code" field.
|
||||
func ZoneCodeGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeLT applies the LT predicate on the "zone_code" field.
|
||||
func ZoneCodeLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeLTE applies the LTE predicate on the "zone_code" field.
|
||||
func ZoneCodeLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeContains applies the Contains predicate on the "zone_code" field.
|
||||
func ZoneCodeContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeHasPrefix applies the HasPrefix predicate on the "zone_code" field.
|
||||
func ZoneCodeHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeHasSuffix applies the HasSuffix predicate on the "zone_code" field.
|
||||
func ZoneCodeHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeEqualFold applies the EqualFold predicate on the "zone_code" field.
|
||||
func ZoneCodeEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneCodeContainsFold applies the ContainsFold predicate on the "zone_code" field.
|
||||
func ZoneCodeContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ZoneNameEQ applies the EQ predicate on the "zone_name" field.
|
||||
func ZoneNameEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameNEQ applies the NEQ predicate on the "zone_name" field.
|
||||
func ZoneNameNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameIn applies the In predicate on the "zone_name" field.
|
||||
func ZoneNameIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldZoneName, vs...))
|
||||
}
|
||||
|
||||
// ZoneNameNotIn applies the NotIn predicate on the "zone_name" field.
|
||||
func ZoneNameNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldZoneName, vs...))
|
||||
}
|
||||
|
||||
// ZoneNameGT applies the GT predicate on the "zone_name" field.
|
||||
func ZoneNameGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameGTE applies the GTE predicate on the "zone_name" field.
|
||||
func ZoneNameGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameLT applies the LT predicate on the "zone_name" field.
|
||||
func ZoneNameLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameLTE applies the LTE predicate on the "zone_name" field.
|
||||
func ZoneNameLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameContains applies the Contains predicate on the "zone_name" field.
|
||||
func ZoneNameContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameHasPrefix applies the HasPrefix predicate on the "zone_name" field.
|
||||
func ZoneNameHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameHasSuffix applies the HasSuffix predicate on the "zone_name" field.
|
||||
func ZoneNameHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameEqualFold applies the EqualFold predicate on the "zone_name" field.
|
||||
func ZoneNameEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// ZoneNameContainsFold applies the ContainsFold predicate on the "zone_name" field.
|
||||
func ZoneNameContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldZoneName, v))
|
||||
}
|
||||
|
||||
// DescriptionEQ applies the EQ predicate on the "description" field.
|
||||
func DescriptionEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionNEQ applies the NEQ predicate on the "description" field.
|
||||
func DescriptionNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionIn applies the In predicate on the "description" field.
|
||||
func DescriptionIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldDescription, vs...))
|
||||
}
|
||||
|
||||
// DescriptionNotIn applies the NotIn predicate on the "description" field.
|
||||
func DescriptionNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldDescription, vs...))
|
||||
}
|
||||
|
||||
// DescriptionGT applies the GT predicate on the "description" field.
|
||||
func DescriptionGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionGTE applies the GTE predicate on the "description" field.
|
||||
func DescriptionGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionLT applies the LT predicate on the "description" field.
|
||||
func DescriptionLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionLTE applies the LTE predicate on the "description" field.
|
||||
func DescriptionLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionContains applies the Contains predicate on the "description" field.
|
||||
func DescriptionContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
|
||||
func DescriptionHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
|
||||
func DescriptionHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionIsNil applies the IsNil predicate on the "description" field.
|
||||
func DescriptionIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldDescription))
|
||||
}
|
||||
|
||||
// DescriptionNotNil applies the NotNil predicate on the "description" field.
|
||||
func DescriptionNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldDescription))
|
||||
}
|
||||
|
||||
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
|
||||
func DescriptionEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldDescription, v))
|
||||
}
|
||||
|
||||
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
|
||||
func DescriptionContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldDescription, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v int64) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.Zone) predicate.Zone {
|
||||
return predicate.Zone(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.Zone) predicate.Zone {
|
||||
return predicate.Zone(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.Zone) predicate.Zone {
|
||||
return predicate.Zone(sql.NotPredicates(p))
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package zone
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the zone type in the database.
|
||||
Label = "zone"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldZoneCode holds the string denoting the zone_code field in the database.
|
||||
FieldZoneCode = "zone_code"
|
||||
// FieldZoneName holds the string denoting the zone_name field in the database.
|
||||
FieldZoneName = "zone_name"
|
||||
// FieldDescription holds the string denoting the description field in the database.
|
||||
FieldDescription = "description"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the zone in the database.
|
||||
Table = "zones"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for zone fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldZoneCode,
|
||||
FieldZoneName,
|
||||
FieldDescription,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
// 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 (
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Zone 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()
|
||||
}
|
||||
|
||||
// ByZoneCode orders the results by the zone_code field.
|
||||
func ByZoneCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldZoneCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByZoneName orders the results by the zone_name field.
|
||||
func ByZoneName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldZoneName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDescription orders the results by the description field.
|
||||
func ByDescription(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDescription, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
Reference in New Issue
Block a user