feat: AGV三段链安全机制、补料/损耗/下班闭环、接驳台左右互换
AGV 调度: - 任务重构为 GO_LOAD/TRANSPORT/EMPTY_RETURN/FREE 三段链,到位即停(ARRIVED)需人工确认装卸 - 自由调度单点步进,每段强制弹"请确保路径畅通无杂物";托盘回收独立工作台 - 接驳台 PLC 传感器检测到托盘即自动卸货放行,传感器故障由人工按钮兜底(无轮询) - 车辆状态只读展示(海康3.1.7 queryAgvStatus),调度仍由 RCS 负责 物料闭环: - 补料管理(SHORTAGE):工位申请 + 主管审批调增叫料池额度,与借料/差异补发三轨并行 - 损耗台账(loss_ledger):退料实际 < 理论必填原因、后审核,工单不记损耗 - 退料强制指定左/右接驳台,WMS 库管可代工位退料 下班闭环: - 工位终端自检接驳台剩余物料后下班;库管收货 + 托盘拉走后事件驱动自动结班 - 退出登录未下班仅作安全提示(不强制拦截、不新增责任审批) 接驳台左右按操作员朝向建模(dock.side 字段),废除"奇左偶右"隐式约定; 看板标签 / seed / 迁移补丁 / 布局文档统一为中文左/右。 产线布局说明:C1 前线头 AGV 点、C15 后线尾 AGV 点、外部 O1/O2/O3 散点, 清理修订痕迹为最终态描述。
This commit is contained in:
@@ -0,0 +1,200 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package lossledger
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the lossledger type in the database.
|
||||
Label = "loss_ledger"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldStationNo holds the string denoting the stationno field in the database.
|
||||
FieldStationNo = "station_no"
|
||||
// FieldMaterialCode holds the string denoting the materialcode field in the database.
|
||||
FieldMaterialCode = "material_code"
|
||||
// FieldMaterialName holds the string denoting the materialname field in the database.
|
||||
FieldMaterialName = "material_name"
|
||||
// FieldTheoryQty holds the string denoting the theoryqty field in the database.
|
||||
FieldTheoryQty = "theory_qty"
|
||||
// FieldActualQty holds the string denoting the actualqty field in the database.
|
||||
FieldActualQty = "actual_qty"
|
||||
// FieldLossQty holds the string denoting the lossqty field in the database.
|
||||
FieldLossQty = "loss_qty"
|
||||
// FieldReason holds the string denoting the reason field in the database.
|
||||
FieldReason = "reason"
|
||||
// FieldReturnNo holds the string denoting the returnno field in the database.
|
||||
FieldReturnNo = "return_no"
|
||||
// FieldWorkOrderNo holds the string denoting the workorderno field in the database.
|
||||
FieldWorkOrderNo = "work_order_no"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldComment holds the string denoting the comment field in the database.
|
||||
FieldComment = "comment"
|
||||
// FieldCommenter holds the string denoting the commenter field in the database.
|
||||
FieldCommenter = "commenter"
|
||||
// FieldCommentedAt holds the string denoting the commentedat field in the database.
|
||||
FieldCommentedAt = "commented_at"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the lossledger in the database.
|
||||
Table = "loss_ledgers"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for lossledger fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldStationNo,
|
||||
FieldMaterialCode,
|
||||
FieldMaterialName,
|
||||
FieldTheoryQty,
|
||||
FieldActualQty,
|
||||
FieldLossQty,
|
||||
FieldReason,
|
||||
FieldReturnNo,
|
||||
FieldWorkOrderNo,
|
||||
FieldStatus,
|
||||
FieldComment,
|
||||
FieldCommenter,
|
||||
FieldCommentedAt,
|
||||
FieldOperator,
|
||||
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 (
|
||||
// MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
MaterialCodeValidator func(string) error
|
||||
// DefaultMaterialName holds the default value on creation for the "materialName" field.
|
||||
DefaultMaterialName string
|
||||
// MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
MaterialNameValidator func(string) error
|
||||
// ReasonValidator is a validator for the "reason" field. It is called by the builders before save.
|
||||
ReasonValidator func(string) error
|
||||
// DefaultReturnNo holds the default value on creation for the "returnNo" field.
|
||||
DefaultReturnNo string
|
||||
// ReturnNoValidator is a validator for the "returnNo" field. It is called by the builders before save.
|
||||
ReturnNoValidator func(string) error
|
||||
// DefaultWorkOrderNo holds the default value on creation for the "workOrderNo" field.
|
||||
DefaultWorkOrderNo string
|
||||
// WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
WorkOrderNoValidator func(string) error
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
StatusValidator func(string) error
|
||||
// DefaultComment holds the default value on creation for the "comment" field.
|
||||
DefaultComment string
|
||||
// CommentValidator is a validator for the "comment" field. It is called by the builders before save.
|
||||
CommentValidator func(string) error
|
||||
// DefaultCommenter holds the default value on creation for the "commenter" field.
|
||||
DefaultCommenter string
|
||||
// CommenterValidator is a validator for the "commenter" field. It is called by the builders before save.
|
||||
CommenterValidator func(string) error
|
||||
// DefaultCommentedAt holds the default value on creation for the "commentedAt" field.
|
||||
DefaultCommentedAt int64
|
||||
// DefaultOperator holds the default value on creation for the "operator" field.
|
||||
DefaultOperator string
|
||||
// OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
OperatorValidator func(string) error
|
||||
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the LossLedger 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()
|
||||
}
|
||||
|
||||
// ByStationNo orders the results by the stationNo field.
|
||||
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialCode orders the results by the materialCode field.
|
||||
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialName orders the results by the materialName field.
|
||||
func ByMaterialName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTheoryQty orders the results by the theoryQty field.
|
||||
func ByTheoryQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTheoryQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByActualQty orders the results by the actualQty field.
|
||||
func ByActualQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldActualQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLossQty orders the results by the lossQty field.
|
||||
func ByLossQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLossQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReason orders the results by the reason field.
|
||||
func ByReason(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReason, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReturnNo orders the results by the returnNo field.
|
||||
func ByReturnNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReturnNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByWorkOrderNo orders the results by the workOrderNo field.
|
||||
func ByWorkOrderNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldWorkOrderNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByComment orders the results by the comment field.
|
||||
func ByComment(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldComment, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCommenter orders the results by the commenter field.
|
||||
func ByCommenter(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCommenter, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCommentedAt orders the results by the commentedAt field.
|
||||
func ByCommentedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCommentedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOperator orders the results by the operator field.
|
||||
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOperator, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the createdAt field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,970 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package lossledger
|
||||
|
||||
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.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||||
func StationNo(v int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
|
||||
func MaterialCode(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialName applies equality check predicate on the "materialName" field. It's identical to MaterialNameEQ.
|
||||
func MaterialName(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// TheoryQty applies equality check predicate on the "theoryQty" field. It's identical to TheoryQtyEQ.
|
||||
func TheoryQty(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldTheoryQty, v))
|
||||
}
|
||||
|
||||
// ActualQty applies equality check predicate on the "actualQty" field. It's identical to ActualQtyEQ.
|
||||
func ActualQty(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldActualQty, v))
|
||||
}
|
||||
|
||||
// LossQty applies equality check predicate on the "lossQty" field. It's identical to LossQtyEQ.
|
||||
func LossQty(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldLossQty, v))
|
||||
}
|
||||
|
||||
// Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.
|
||||
func Reason(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReturnNo applies equality check predicate on the "returnNo" field. It's identical to ReturnNoEQ.
|
||||
func ReturnNo(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNo applies equality check predicate on the "workOrderNo" field. It's identical to WorkOrderNoEQ.
|
||||
func WorkOrderNo(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
|
||||
func Comment(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldComment, v))
|
||||
}
|
||||
|
||||
// Commenter applies equality check predicate on the "commenter" field. It's identical to CommenterEQ.
|
||||
func Commenter(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommentedAt applies equality check predicate on the "commentedAt" field. It's identical to CommentedAtEQ.
|
||||
func CommentedAt(v int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldCommentedAt, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||||
func StationNoEQ(v int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||||
func StationNoNEQ(v int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoIn applies the In predicate on the "stationNo" field.
|
||||
func StationNoIn(vs ...int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||||
func StationNoNotIn(vs ...int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||||
func StationNoGT(v int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||||
func StationNoGTE(v int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||||
func StationNoLT(v int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||||
func StationNoLTE(v int) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
|
||||
func MaterialCodeEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeNEQ applies the NEQ predicate on the "materialCode" field.
|
||||
func MaterialCodeNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeIn applies the In predicate on the "materialCode" field.
|
||||
func MaterialCodeIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeNotIn applies the NotIn predicate on the "materialCode" field.
|
||||
func MaterialCodeNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeGT applies the GT predicate on the "materialCode" field.
|
||||
func MaterialCodeGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeGTE applies the GTE predicate on the "materialCode" field.
|
||||
func MaterialCodeGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLT applies the LT predicate on the "materialCode" field.
|
||||
func MaterialCodeLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLTE applies the LTE predicate on the "materialCode" field.
|
||||
func MaterialCodeLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContains applies the Contains predicate on the "materialCode" field.
|
||||
func MaterialCodeContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEqualFold applies the EqualFold predicate on the "materialCode" field.
|
||||
func MaterialCodeEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContainsFold applies the ContainsFold predicate on the "materialCode" field.
|
||||
func MaterialCodeContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialNameEQ applies the EQ predicate on the "materialName" field.
|
||||
func MaterialNameEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameNEQ applies the NEQ predicate on the "materialName" field.
|
||||
func MaterialNameNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameIn applies the In predicate on the "materialName" field.
|
||||
func MaterialNameIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameNotIn applies the NotIn predicate on the "materialName" field.
|
||||
func MaterialNameNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameGT applies the GT predicate on the "materialName" field.
|
||||
func MaterialNameGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameGTE applies the GTE predicate on the "materialName" field.
|
||||
func MaterialNameGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLT applies the LT predicate on the "materialName" field.
|
||||
func MaterialNameLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLTE applies the LTE predicate on the "materialName" field.
|
||||
func MaterialNameLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContains applies the Contains predicate on the "materialName" field.
|
||||
func MaterialNameContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasPrefix applies the HasPrefix predicate on the "materialName" field.
|
||||
func MaterialNameHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasSuffix applies the HasSuffix predicate on the "materialName" field.
|
||||
func MaterialNameHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameEqualFold applies the EqualFold predicate on the "materialName" field.
|
||||
func MaterialNameEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContainsFold applies the ContainsFold predicate on the "materialName" field.
|
||||
func MaterialNameContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// TheoryQtyEQ applies the EQ predicate on the "theoryQty" field.
|
||||
func TheoryQtyEQ(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldTheoryQty, v))
|
||||
}
|
||||
|
||||
// TheoryQtyNEQ applies the NEQ predicate on the "theoryQty" field.
|
||||
func TheoryQtyNEQ(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldTheoryQty, v))
|
||||
}
|
||||
|
||||
// TheoryQtyIn applies the In predicate on the "theoryQty" field.
|
||||
func TheoryQtyIn(vs ...float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldTheoryQty, vs...))
|
||||
}
|
||||
|
||||
// TheoryQtyNotIn applies the NotIn predicate on the "theoryQty" field.
|
||||
func TheoryQtyNotIn(vs ...float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldTheoryQty, vs...))
|
||||
}
|
||||
|
||||
// TheoryQtyGT applies the GT predicate on the "theoryQty" field.
|
||||
func TheoryQtyGT(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldTheoryQty, v))
|
||||
}
|
||||
|
||||
// TheoryQtyGTE applies the GTE predicate on the "theoryQty" field.
|
||||
func TheoryQtyGTE(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldTheoryQty, v))
|
||||
}
|
||||
|
||||
// TheoryQtyLT applies the LT predicate on the "theoryQty" field.
|
||||
func TheoryQtyLT(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldTheoryQty, v))
|
||||
}
|
||||
|
||||
// TheoryQtyLTE applies the LTE predicate on the "theoryQty" field.
|
||||
func TheoryQtyLTE(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldTheoryQty, v))
|
||||
}
|
||||
|
||||
// ActualQtyEQ applies the EQ predicate on the "actualQty" field.
|
||||
func ActualQtyEQ(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldActualQty, v))
|
||||
}
|
||||
|
||||
// ActualQtyNEQ applies the NEQ predicate on the "actualQty" field.
|
||||
func ActualQtyNEQ(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldActualQty, v))
|
||||
}
|
||||
|
||||
// ActualQtyIn applies the In predicate on the "actualQty" field.
|
||||
func ActualQtyIn(vs ...float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldActualQty, vs...))
|
||||
}
|
||||
|
||||
// ActualQtyNotIn applies the NotIn predicate on the "actualQty" field.
|
||||
func ActualQtyNotIn(vs ...float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldActualQty, vs...))
|
||||
}
|
||||
|
||||
// ActualQtyGT applies the GT predicate on the "actualQty" field.
|
||||
func ActualQtyGT(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldActualQty, v))
|
||||
}
|
||||
|
||||
// ActualQtyGTE applies the GTE predicate on the "actualQty" field.
|
||||
func ActualQtyGTE(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldActualQty, v))
|
||||
}
|
||||
|
||||
// ActualQtyLT applies the LT predicate on the "actualQty" field.
|
||||
func ActualQtyLT(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldActualQty, v))
|
||||
}
|
||||
|
||||
// ActualQtyLTE applies the LTE predicate on the "actualQty" field.
|
||||
func ActualQtyLTE(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldActualQty, v))
|
||||
}
|
||||
|
||||
// LossQtyEQ applies the EQ predicate on the "lossQty" field.
|
||||
func LossQtyEQ(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldLossQty, v))
|
||||
}
|
||||
|
||||
// LossQtyNEQ applies the NEQ predicate on the "lossQty" field.
|
||||
func LossQtyNEQ(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldLossQty, v))
|
||||
}
|
||||
|
||||
// LossQtyIn applies the In predicate on the "lossQty" field.
|
||||
func LossQtyIn(vs ...float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldLossQty, vs...))
|
||||
}
|
||||
|
||||
// LossQtyNotIn applies the NotIn predicate on the "lossQty" field.
|
||||
func LossQtyNotIn(vs ...float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldLossQty, vs...))
|
||||
}
|
||||
|
||||
// LossQtyGT applies the GT predicate on the "lossQty" field.
|
||||
func LossQtyGT(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldLossQty, v))
|
||||
}
|
||||
|
||||
// LossQtyGTE applies the GTE predicate on the "lossQty" field.
|
||||
func LossQtyGTE(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldLossQty, v))
|
||||
}
|
||||
|
||||
// LossQtyLT applies the LT predicate on the "lossQty" field.
|
||||
func LossQtyLT(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldLossQty, v))
|
||||
}
|
||||
|
||||
// LossQtyLTE applies the LTE predicate on the "lossQty" field.
|
||||
func LossQtyLTE(v float64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldLossQty, v))
|
||||
}
|
||||
|
||||
// ReasonEQ applies the EQ predicate on the "reason" field.
|
||||
func ReasonEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonNEQ applies the NEQ predicate on the "reason" field.
|
||||
func ReasonNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonIn applies the In predicate on the "reason" field.
|
||||
func ReasonIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldReason, vs...))
|
||||
}
|
||||
|
||||
// ReasonNotIn applies the NotIn predicate on the "reason" field.
|
||||
func ReasonNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldReason, vs...))
|
||||
}
|
||||
|
||||
// ReasonGT applies the GT predicate on the "reason" field.
|
||||
func ReasonGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonGTE applies the GTE predicate on the "reason" field.
|
||||
func ReasonGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonLT applies the LT predicate on the "reason" field.
|
||||
func ReasonLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonLTE applies the LTE predicate on the "reason" field.
|
||||
func ReasonLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonContains applies the Contains predicate on the "reason" field.
|
||||
func ReasonContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.
|
||||
func ReasonHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.
|
||||
func ReasonHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonEqualFold applies the EqualFold predicate on the "reason" field.
|
||||
func ReasonEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReasonContainsFold applies the ContainsFold predicate on the "reason" field.
|
||||
func ReasonContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldReason, v))
|
||||
}
|
||||
|
||||
// ReturnNoEQ applies the EQ predicate on the "returnNo" field.
|
||||
func ReturnNoEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoNEQ applies the NEQ predicate on the "returnNo" field.
|
||||
func ReturnNoNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoIn applies the In predicate on the "returnNo" field.
|
||||
func ReturnNoIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldReturnNo, vs...))
|
||||
}
|
||||
|
||||
// ReturnNoNotIn applies the NotIn predicate on the "returnNo" field.
|
||||
func ReturnNoNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldReturnNo, vs...))
|
||||
}
|
||||
|
||||
// ReturnNoGT applies the GT predicate on the "returnNo" field.
|
||||
func ReturnNoGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoGTE applies the GTE predicate on the "returnNo" field.
|
||||
func ReturnNoGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoLT applies the LT predicate on the "returnNo" field.
|
||||
func ReturnNoLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoLTE applies the LTE predicate on the "returnNo" field.
|
||||
func ReturnNoLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoContains applies the Contains predicate on the "returnNo" field.
|
||||
func ReturnNoContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoHasPrefix applies the HasPrefix predicate on the "returnNo" field.
|
||||
func ReturnNoHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoHasSuffix applies the HasSuffix predicate on the "returnNo" field.
|
||||
func ReturnNoHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoEqualFold applies the EqualFold predicate on the "returnNo" field.
|
||||
func ReturnNoEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// ReturnNoContainsFold applies the ContainsFold predicate on the "returnNo" field.
|
||||
func ReturnNoContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldReturnNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoEQ applies the EQ predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoNEQ applies the NEQ predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoIn applies the In predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldWorkOrderNo, vs...))
|
||||
}
|
||||
|
||||
// WorkOrderNoNotIn applies the NotIn predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldWorkOrderNo, vs...))
|
||||
}
|
||||
|
||||
// WorkOrderNoGT applies the GT predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoGTE applies the GTE predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoLT applies the LT predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoLTE applies the LTE predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoContains applies the Contains predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoHasPrefix applies the HasPrefix predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoHasSuffix applies the HasSuffix predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoEqualFold applies the EqualFold predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoContainsFold applies the ContainsFold predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldWorkOrderNo, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CommentEQ applies the EQ predicate on the "comment" field.
|
||||
func CommentEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentNEQ applies the NEQ predicate on the "comment" field.
|
||||
func CommentNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentIn applies the In predicate on the "comment" field.
|
||||
func CommentIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldComment, vs...))
|
||||
}
|
||||
|
||||
// CommentNotIn applies the NotIn predicate on the "comment" field.
|
||||
func CommentNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldComment, vs...))
|
||||
}
|
||||
|
||||
// CommentGT applies the GT predicate on the "comment" field.
|
||||
func CommentGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentGTE applies the GTE predicate on the "comment" field.
|
||||
func CommentGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentLT applies the LT predicate on the "comment" field.
|
||||
func CommentLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentLTE applies the LTE predicate on the "comment" field.
|
||||
func CommentLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentContains applies the Contains predicate on the "comment" field.
|
||||
func CommentContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
|
||||
func CommentHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
|
||||
func CommentHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentEqualFold applies the EqualFold predicate on the "comment" field.
|
||||
func CommentEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommentContainsFold applies the ContainsFold predicate on the "comment" field.
|
||||
func CommentContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldComment, v))
|
||||
}
|
||||
|
||||
// CommenterEQ applies the EQ predicate on the "commenter" field.
|
||||
func CommenterEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterNEQ applies the NEQ predicate on the "commenter" field.
|
||||
func CommenterNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterIn applies the In predicate on the "commenter" field.
|
||||
func CommenterIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldCommenter, vs...))
|
||||
}
|
||||
|
||||
// CommenterNotIn applies the NotIn predicate on the "commenter" field.
|
||||
func CommenterNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldCommenter, vs...))
|
||||
}
|
||||
|
||||
// CommenterGT applies the GT predicate on the "commenter" field.
|
||||
func CommenterGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterGTE applies the GTE predicate on the "commenter" field.
|
||||
func CommenterGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterLT applies the LT predicate on the "commenter" field.
|
||||
func CommenterLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterLTE applies the LTE predicate on the "commenter" field.
|
||||
func CommenterLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterContains applies the Contains predicate on the "commenter" field.
|
||||
func CommenterContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterHasPrefix applies the HasPrefix predicate on the "commenter" field.
|
||||
func CommenterHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterHasSuffix applies the HasSuffix predicate on the "commenter" field.
|
||||
func CommenterHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterEqualFold applies the EqualFold predicate on the "commenter" field.
|
||||
func CommenterEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommenterContainsFold applies the ContainsFold predicate on the "commenter" field.
|
||||
func CommenterContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldCommenter, v))
|
||||
}
|
||||
|
||||
// CommentedAtEQ applies the EQ predicate on the "commentedAt" field.
|
||||
func CommentedAtEQ(v int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldCommentedAt, v))
|
||||
}
|
||||
|
||||
// CommentedAtNEQ applies the NEQ predicate on the "commentedAt" field.
|
||||
func CommentedAtNEQ(v int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldCommentedAt, v))
|
||||
}
|
||||
|
||||
// CommentedAtIn applies the In predicate on the "commentedAt" field.
|
||||
func CommentedAtIn(vs ...int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldCommentedAt, vs...))
|
||||
}
|
||||
|
||||
// CommentedAtNotIn applies the NotIn predicate on the "commentedAt" field.
|
||||
func CommentedAtNotIn(vs ...int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldCommentedAt, vs...))
|
||||
}
|
||||
|
||||
// CommentedAtGT applies the GT predicate on the "commentedAt" field.
|
||||
func CommentedAtGT(v int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldCommentedAt, v))
|
||||
}
|
||||
|
||||
// CommentedAtGTE applies the GTE predicate on the "commentedAt" field.
|
||||
func CommentedAtGTE(v int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldCommentedAt, v))
|
||||
}
|
||||
|
||||
// CommentedAtLT applies the LT predicate on the "commentedAt" field.
|
||||
func CommentedAtLT(v int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldCommentedAt, v))
|
||||
}
|
||||
|
||||
// CommentedAtLTE applies the LTE predicate on the "commentedAt" field.
|
||||
func CommentedAtLTE(v int64) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldCommentedAt, v))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.LossLedger) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.LossLedger) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.LossLedger) predicate.LossLedger {
|
||||
return predicate.LossLedger(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user