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:
SunYF
2026-08-27 19:50:57 +08:00
parent c85c3bd6f1
commit a2afd2f6dc
335 changed files with 87495 additions and 7357 deletions
@@ -0,0 +1,130 @@
// Code generated by ent, DO NOT EDIT.
package inspectionrecord
import (
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the inspectionrecord type in the database.
Label = "inspection_record"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldTargetType holds the string denoting the target_type field in the database.
FieldTargetType = "target_type"
// FieldTargetID holds the string denoting the target_id field in the database.
FieldTargetID = "target_id"
// FieldMaterialCode holds the string denoting the material_code field in the database.
FieldMaterialCode = "material_code"
// FieldInspectionType holds the string denoting the inspection_type field in the database.
FieldInspectionType = "inspection_type"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldResultValue holds the string denoting the result_value field in the database.
FieldResultValue = "result_value"
// FieldInspector holds the string denoting the inspector field in the database.
FieldInspector = "inspector"
// FieldRemark holds the string denoting the remark field in the database.
FieldRemark = "remark"
// FieldCreatedAt holds the string denoting the created_at field in the database.
FieldCreatedAt = "created_at"
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldUpdatedAt = "updated_at"
// Table holds the table name of the inspectionrecord in the database.
Table = "inspection_records"
)
// Columns holds all SQL columns for inspectionrecord fields.
var Columns = []string{
FieldID,
FieldTargetType,
FieldTargetID,
FieldMaterialCode,
FieldInspectionType,
FieldStatus,
FieldResultValue,
FieldInspector,
FieldRemark,
FieldCreatedAt,
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 (
// DefaultInspectionType holds the default value on creation for the "inspection_type" field.
DefaultInspectionType string
// DefaultStatus holds the default value on creation for the "status" field.
DefaultStatus string
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultCreatedAt func() int64
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
DefaultUpdatedAt func() int64
)
// OrderOption defines the ordering options for the InspectionRecord 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()
}
// ByTargetType orders the results by the target_type field.
func ByTargetType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTargetType, opts...).ToFunc()
}
// ByTargetID orders the results by the target_id field.
func ByTargetID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTargetID, opts...).ToFunc()
}
// ByMaterialCode orders the results by the material_code field.
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
}
// ByInspectionType orders the results by the inspection_type field.
func ByInspectionType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldInspectionType, opts...).ToFunc()
}
// ByStatus orders the results by the status field.
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()
}
// ByResultValue orders the results by the result_value field.
func ByResultValue(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldResultValue, opts...).ToFunc()
}
// ByInspector orders the results by the inspector field.
func ByInspector(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldInspector, opts...).ToFunc()
}
// ByRemark orders the results by the remark field.
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRemark, opts...).ToFunc()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
}
// ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
}
+749
View File
@@ -0,0 +1,749 @@
// Code generated by ent, DO NOT EDIT.
package inspectionrecord
import (
"bj_power_wms/ent/predicate"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldID, id))
}
// TargetType applies equality check predicate on the "target_type" field. It's identical to TargetTypeEQ.
func TargetType(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldTargetType, v))
}
// TargetID applies equality check predicate on the "target_id" field. It's identical to TargetIDEQ.
func TargetID(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldTargetID, v))
}
// MaterialCode applies equality check predicate on the "material_code" field. It's identical to MaterialCodeEQ.
func MaterialCode(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldMaterialCode, v))
}
// InspectionType applies equality check predicate on the "inspection_type" field. It's identical to InspectionTypeEQ.
func InspectionType(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldInspectionType, v))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldStatus, v))
}
// ResultValue applies equality check predicate on the "result_value" field. It's identical to ResultValueEQ.
func ResultValue(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldResultValue, v))
}
// Inspector applies equality check predicate on the "inspector" field. It's identical to InspectorEQ.
func Inspector(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldInspector, v))
}
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func Remark(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldRemark, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldUpdatedAt, v))
}
// TargetTypeEQ applies the EQ predicate on the "target_type" field.
func TargetTypeEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldTargetType, v))
}
// TargetTypeNEQ applies the NEQ predicate on the "target_type" field.
func TargetTypeNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldTargetType, v))
}
// TargetTypeIn applies the In predicate on the "target_type" field.
func TargetTypeIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldTargetType, vs...))
}
// TargetTypeNotIn applies the NotIn predicate on the "target_type" field.
func TargetTypeNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldTargetType, vs...))
}
// TargetTypeGT applies the GT predicate on the "target_type" field.
func TargetTypeGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldTargetType, v))
}
// TargetTypeGTE applies the GTE predicate on the "target_type" field.
func TargetTypeGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldTargetType, v))
}
// TargetTypeLT applies the LT predicate on the "target_type" field.
func TargetTypeLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldTargetType, v))
}
// TargetTypeLTE applies the LTE predicate on the "target_type" field.
func TargetTypeLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldTargetType, v))
}
// TargetTypeContains applies the Contains predicate on the "target_type" field.
func TargetTypeContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldTargetType, v))
}
// TargetTypeHasPrefix applies the HasPrefix predicate on the "target_type" field.
func TargetTypeHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldTargetType, v))
}
// TargetTypeHasSuffix applies the HasSuffix predicate on the "target_type" field.
func TargetTypeHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldTargetType, v))
}
// TargetTypeEqualFold applies the EqualFold predicate on the "target_type" field.
func TargetTypeEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldTargetType, v))
}
// TargetTypeContainsFold applies the ContainsFold predicate on the "target_type" field.
func TargetTypeContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldTargetType, v))
}
// TargetIDEQ applies the EQ predicate on the "target_id" field.
func TargetIDEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldTargetID, v))
}
// TargetIDNEQ applies the NEQ predicate on the "target_id" field.
func TargetIDNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldTargetID, v))
}
// TargetIDIn applies the In predicate on the "target_id" field.
func TargetIDIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldTargetID, vs...))
}
// TargetIDNotIn applies the NotIn predicate on the "target_id" field.
func TargetIDNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldTargetID, vs...))
}
// TargetIDGT applies the GT predicate on the "target_id" field.
func TargetIDGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldTargetID, v))
}
// TargetIDGTE applies the GTE predicate on the "target_id" field.
func TargetIDGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldTargetID, v))
}
// TargetIDLT applies the LT predicate on the "target_id" field.
func TargetIDLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldTargetID, v))
}
// TargetIDLTE applies the LTE predicate on the "target_id" field.
func TargetIDLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldTargetID, v))
}
// TargetIDContains applies the Contains predicate on the "target_id" field.
func TargetIDContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldTargetID, v))
}
// TargetIDHasPrefix applies the HasPrefix predicate on the "target_id" field.
func TargetIDHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldTargetID, v))
}
// TargetIDHasSuffix applies the HasSuffix predicate on the "target_id" field.
func TargetIDHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldTargetID, v))
}
// TargetIDEqualFold applies the EqualFold predicate on the "target_id" field.
func TargetIDEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldTargetID, v))
}
// TargetIDContainsFold applies the ContainsFold predicate on the "target_id" field.
func TargetIDContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldTargetID, v))
}
// MaterialCodeEQ applies the EQ predicate on the "material_code" field.
func MaterialCodeEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldMaterialCode, v))
}
// MaterialCodeNEQ applies the NEQ predicate on the "material_code" field.
func MaterialCodeNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldMaterialCode, v))
}
// MaterialCodeIn applies the In predicate on the "material_code" field.
func MaterialCodeIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldMaterialCode, vs...))
}
// MaterialCodeNotIn applies the NotIn predicate on the "material_code" field.
func MaterialCodeNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldMaterialCode, vs...))
}
// MaterialCodeGT applies the GT predicate on the "material_code" field.
func MaterialCodeGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldMaterialCode, v))
}
// MaterialCodeGTE applies the GTE predicate on the "material_code" field.
func MaterialCodeGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldMaterialCode, v))
}
// MaterialCodeLT applies the LT predicate on the "material_code" field.
func MaterialCodeLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldMaterialCode, v))
}
// MaterialCodeLTE applies the LTE predicate on the "material_code" field.
func MaterialCodeLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldMaterialCode, v))
}
// MaterialCodeContains applies the Contains predicate on the "material_code" field.
func MaterialCodeContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldMaterialCode, v))
}
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "material_code" field.
func MaterialCodeHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldMaterialCode, v))
}
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "material_code" field.
func MaterialCodeHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldMaterialCode, v))
}
// MaterialCodeEqualFold applies the EqualFold predicate on the "material_code" field.
func MaterialCodeEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldMaterialCode, v))
}
// MaterialCodeContainsFold applies the ContainsFold predicate on the "material_code" field.
func MaterialCodeContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldMaterialCode, v))
}
// InspectionTypeEQ applies the EQ predicate on the "inspection_type" field.
func InspectionTypeEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldInspectionType, v))
}
// InspectionTypeNEQ applies the NEQ predicate on the "inspection_type" field.
func InspectionTypeNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldInspectionType, v))
}
// InspectionTypeIn applies the In predicate on the "inspection_type" field.
func InspectionTypeIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldInspectionType, vs...))
}
// InspectionTypeNotIn applies the NotIn predicate on the "inspection_type" field.
func InspectionTypeNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldInspectionType, vs...))
}
// InspectionTypeGT applies the GT predicate on the "inspection_type" field.
func InspectionTypeGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldInspectionType, v))
}
// InspectionTypeGTE applies the GTE predicate on the "inspection_type" field.
func InspectionTypeGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldInspectionType, v))
}
// InspectionTypeLT applies the LT predicate on the "inspection_type" field.
func InspectionTypeLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldInspectionType, v))
}
// InspectionTypeLTE applies the LTE predicate on the "inspection_type" field.
func InspectionTypeLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldInspectionType, v))
}
// InspectionTypeContains applies the Contains predicate on the "inspection_type" field.
func InspectionTypeContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldInspectionType, v))
}
// InspectionTypeHasPrefix applies the HasPrefix predicate on the "inspection_type" field.
func InspectionTypeHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldInspectionType, v))
}
// InspectionTypeHasSuffix applies the HasSuffix predicate on the "inspection_type" field.
func InspectionTypeHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldInspectionType, v))
}
// InspectionTypeEqualFold applies the EqualFold predicate on the "inspection_type" field.
func InspectionTypeEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldInspectionType, v))
}
// InspectionTypeContainsFold applies the ContainsFold predicate on the "inspection_type" field.
func InspectionTypeContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldInspectionType, v))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldStatus, v))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldStatus, v))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldStatus, v))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldStatus, v))
}
// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldStatus, v))
}
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldStatus, v))
}
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldStatus, v))
}
// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldStatus, v))
}
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldStatus, v))
}
// ResultValueEQ applies the EQ predicate on the "result_value" field.
func ResultValueEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldResultValue, v))
}
// ResultValueNEQ applies the NEQ predicate on the "result_value" field.
func ResultValueNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldResultValue, v))
}
// ResultValueIn applies the In predicate on the "result_value" field.
func ResultValueIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldResultValue, vs...))
}
// ResultValueNotIn applies the NotIn predicate on the "result_value" field.
func ResultValueNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldResultValue, vs...))
}
// ResultValueGT applies the GT predicate on the "result_value" field.
func ResultValueGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldResultValue, v))
}
// ResultValueGTE applies the GTE predicate on the "result_value" field.
func ResultValueGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldResultValue, v))
}
// ResultValueLT applies the LT predicate on the "result_value" field.
func ResultValueLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldResultValue, v))
}
// ResultValueLTE applies the LTE predicate on the "result_value" field.
func ResultValueLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldResultValue, v))
}
// ResultValueContains applies the Contains predicate on the "result_value" field.
func ResultValueContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldResultValue, v))
}
// ResultValueHasPrefix applies the HasPrefix predicate on the "result_value" field.
func ResultValueHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldResultValue, v))
}
// ResultValueHasSuffix applies the HasSuffix predicate on the "result_value" field.
func ResultValueHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldResultValue, v))
}
// ResultValueIsNil applies the IsNil predicate on the "result_value" field.
func ResultValueIsNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIsNull(FieldResultValue))
}
// ResultValueNotNil applies the NotNil predicate on the "result_value" field.
func ResultValueNotNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotNull(FieldResultValue))
}
// ResultValueEqualFold applies the EqualFold predicate on the "result_value" field.
func ResultValueEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldResultValue, v))
}
// ResultValueContainsFold applies the ContainsFold predicate on the "result_value" field.
func ResultValueContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldResultValue, v))
}
// InspectorEQ applies the EQ predicate on the "inspector" field.
func InspectorEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldInspector, v))
}
// InspectorNEQ applies the NEQ predicate on the "inspector" field.
func InspectorNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldInspector, v))
}
// InspectorIn applies the In predicate on the "inspector" field.
func InspectorIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldInspector, vs...))
}
// InspectorNotIn applies the NotIn predicate on the "inspector" field.
func InspectorNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldInspector, vs...))
}
// InspectorGT applies the GT predicate on the "inspector" field.
func InspectorGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldInspector, v))
}
// InspectorGTE applies the GTE predicate on the "inspector" field.
func InspectorGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldInspector, v))
}
// InspectorLT applies the LT predicate on the "inspector" field.
func InspectorLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldInspector, v))
}
// InspectorLTE applies the LTE predicate on the "inspector" field.
func InspectorLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldInspector, v))
}
// InspectorContains applies the Contains predicate on the "inspector" field.
func InspectorContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldInspector, v))
}
// InspectorHasPrefix applies the HasPrefix predicate on the "inspector" field.
func InspectorHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldInspector, v))
}
// InspectorHasSuffix applies the HasSuffix predicate on the "inspector" field.
func InspectorHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldInspector, v))
}
// InspectorIsNil applies the IsNil predicate on the "inspector" field.
func InspectorIsNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIsNull(FieldInspector))
}
// InspectorNotNil applies the NotNil predicate on the "inspector" field.
func InspectorNotNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotNull(FieldInspector))
}
// InspectorEqualFold applies the EqualFold predicate on the "inspector" field.
func InspectorEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldInspector, v))
}
// InspectorContainsFold applies the ContainsFold predicate on the "inspector" field.
func InspectorContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldInspector, v))
}
// RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldRemark, v))
}
// RemarkNEQ applies the NEQ predicate on the "remark" field.
func RemarkNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldRemark, v))
}
// RemarkIn applies the In predicate on the "remark" field.
func RemarkIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldRemark, vs...))
}
// RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldRemark, vs...))
}
// RemarkGT applies the GT predicate on the "remark" field.
func RemarkGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldRemark, v))
}
// RemarkGTE applies the GTE predicate on the "remark" field.
func RemarkGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldRemark, v))
}
// RemarkLT applies the LT predicate on the "remark" field.
func RemarkLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldRemark, v))
}
// RemarkLTE applies the LTE predicate on the "remark" field.
func RemarkLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldRemark, v))
}
// RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldRemark, v))
}
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldRemark, v))
}
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldRemark, v))
}
// RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkIsNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIsNull(FieldRemark))
}
// RemarkNotNil applies the NotNil predicate on the "remark" field.
func RemarkNotNil() predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotNull(FieldRemark))
}
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldRemark, v))
}
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldRemark, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v int64) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldUpdatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.InspectionRecord) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.InspectionRecord) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.InspectionRecord) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.NotPredicates(p))
}