feat: 新增预警与附件模块,优化工位派工功能

1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑
2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能
3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工
4. 新增上传文件获取原文件名与大小的工具方法
5. 在系统管理菜单新增预警中心与附件中心入口
This commit is contained in:
SunYF
2026-09-14 16:31:08 +08:00
parent 0ab21b1234
commit 5c3b747a20
399 changed files with 147674 additions and 2213 deletions
@@ -0,0 +1,165 @@
// Code generated by ent, DO NOT EDIT.
package plcsendlog
import (
"time"
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the plcsendlog type in the database.
Label = "plc_send_log"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldOrderNo holds the string denoting the orderno field in the database.
FieldOrderNo = "order_no"
// FieldSn holds the string denoting the sn field in the database.
FieldSn = "sn"
// FieldStationNo holds the string denoting the stationno field in the database.
FieldStationNo = "station_no"
// FieldProcessCombination holds the string denoting the processcombination field in the database.
FieldProcessCombination = "process_combination"
// FieldProcessCodes holds the string denoting the processcodes field in the database.
FieldProcessCodes = "process_codes"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldSendTime holds the string denoting the sendtime field in the database.
FieldSendTime = "send_time"
// FieldDoneTime holds the string denoting the donetime field in the database.
FieldDoneTime = "done_time"
// FieldAck holds the string denoting the ack field in the database.
FieldAck = "ack"
// FieldRemark holds the string denoting the remark field in the database.
FieldRemark = "remark"
// 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 plcsendlog in the database.
Table = "plc_send_log"
)
// Columns holds all SQL columns for plcsendlog fields.
var Columns = []string{
FieldID,
FieldOrderNo,
FieldSn,
FieldStationNo,
FieldProcessCombination,
FieldProcessCodes,
FieldStatus,
FieldSendTime,
FieldDoneTime,
FieldAck,
FieldRemark,
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 (
// DefaultOrderNo holds the default value on creation for the "orderNo" field.
DefaultOrderNo string
// OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
OrderNoValidator func(string) error
// DefaultSn holds the default value on creation for the "sn" field.
DefaultSn string
// SnValidator is a validator for the "sn" field. It is called by the builders before save.
SnValidator func(string) error
// DefaultProcessCombination holds the default value on creation for the "processCombination" field.
DefaultProcessCombination string
// ProcessCombinationValidator is a validator for the "processCombination" field. It is called by the builders before save.
ProcessCombinationValidator 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
// DefaultAck holds the default value on creation for the "ack" field.
DefaultAck bool
// DefaultRemark holds the default value on creation for the "remark" field.
DefaultRemark string
// RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
RemarkValidator func(string) error
// 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
// IDValidator is a validator for the "id" field. It is called by the builders before save.
IDValidator func(int) error
)
// OrderOption defines the ordering options for the PlcSendLog 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()
}
// ByOrderNo orders the results by the orderNo field.
func ByOrderNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldOrderNo, opts...).ToFunc()
}
// BySn orders the results by the sn field.
func BySn(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSn, opts...).ToFunc()
}
// ByStationNo orders the results by the stationNo field.
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
}
// ByProcessCombination orders the results by the processCombination field.
func ByProcessCombination(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldProcessCombination, opts...).ToFunc()
}
// ByStatus orders the results by the status field.
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()
}
// BySendTime orders the results by the sendTime field.
func BySendTime(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSendTime, opts...).ToFunc()
}
// ByDoneTime orders the results by the doneTime field.
func ByDoneTime(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDoneTime, opts...).ToFunc()
}
// ByAck orders the results by the ack field.
func ByAck(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAck, opts...).ToFunc()
}
// ByRemark orders the results by the remark field.
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRemark, 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,725 @@
// Code generated by ent, DO NOT EDIT.
package plcsendlog
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.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldID, id))
}
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
func OrderNo(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldOrderNo, v))
}
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
func Sn(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldSn, v))
}
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
func StationNo(v int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldStationNo, v))
}
// ProcessCombination applies equality check predicate on the "processCombination" field. It's identical to ProcessCombinationEQ.
func ProcessCombination(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldProcessCombination, v))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldStatus, v))
}
// SendTime applies equality check predicate on the "sendTime" field. It's identical to SendTimeEQ.
func SendTime(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldSendTime, v))
}
// DoneTime applies equality check predicate on the "doneTime" field. It's identical to DoneTimeEQ.
func DoneTime(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldDoneTime, v))
}
// Ack applies equality check predicate on the "ack" field. It's identical to AckEQ.
func Ack(v bool) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldAck, v))
}
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func Remark(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldRemark, v))
}
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
func Operator(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldOperator, v))
}
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldCreatedAt, v))
}
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
func OrderNoEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldOrderNo, v))
}
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
func OrderNoNEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldOrderNo, v))
}
// OrderNoIn applies the In predicate on the "orderNo" field.
func OrderNoIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldOrderNo, vs...))
}
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
func OrderNoNotIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldOrderNo, vs...))
}
// OrderNoGT applies the GT predicate on the "orderNo" field.
func OrderNoGT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldOrderNo, v))
}
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
func OrderNoGTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldOrderNo, v))
}
// OrderNoLT applies the LT predicate on the "orderNo" field.
func OrderNoLT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldOrderNo, v))
}
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
func OrderNoLTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldOrderNo, v))
}
// OrderNoContains applies the Contains predicate on the "orderNo" field.
func OrderNoContains(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContains(FieldOrderNo, v))
}
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
func OrderNoHasPrefix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasPrefix(FieldOrderNo, v))
}
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
func OrderNoHasSuffix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasSuffix(FieldOrderNo, v))
}
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
func OrderNoEqualFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEqualFold(FieldOrderNo, v))
}
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
func OrderNoContainsFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContainsFold(FieldOrderNo, v))
}
// SnEQ applies the EQ predicate on the "sn" field.
func SnEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldSn, v))
}
// SnNEQ applies the NEQ predicate on the "sn" field.
func SnNEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldSn, v))
}
// SnIn applies the In predicate on the "sn" field.
func SnIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldSn, vs...))
}
// SnNotIn applies the NotIn predicate on the "sn" field.
func SnNotIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldSn, vs...))
}
// SnGT applies the GT predicate on the "sn" field.
func SnGT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldSn, v))
}
// SnGTE applies the GTE predicate on the "sn" field.
func SnGTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldSn, v))
}
// SnLT applies the LT predicate on the "sn" field.
func SnLT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldSn, v))
}
// SnLTE applies the LTE predicate on the "sn" field.
func SnLTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldSn, v))
}
// SnContains applies the Contains predicate on the "sn" field.
func SnContains(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContains(FieldSn, v))
}
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
func SnHasPrefix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasPrefix(FieldSn, v))
}
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
func SnHasSuffix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasSuffix(FieldSn, v))
}
// SnEqualFold applies the EqualFold predicate on the "sn" field.
func SnEqualFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEqualFold(FieldSn, v))
}
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
func SnContainsFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContainsFold(FieldSn, v))
}
// StationNoEQ applies the EQ predicate on the "stationNo" field.
func StationNoEQ(v int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldStationNo, v))
}
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
func StationNoNEQ(v int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldStationNo, v))
}
// StationNoIn applies the In predicate on the "stationNo" field.
func StationNoIn(vs ...int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldStationNo, vs...))
}
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
func StationNoNotIn(vs ...int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldStationNo, vs...))
}
// StationNoGT applies the GT predicate on the "stationNo" field.
func StationNoGT(v int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldStationNo, v))
}
// StationNoGTE applies the GTE predicate on the "stationNo" field.
func StationNoGTE(v int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldStationNo, v))
}
// StationNoLT applies the LT predicate on the "stationNo" field.
func StationNoLT(v int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldStationNo, v))
}
// StationNoLTE applies the LTE predicate on the "stationNo" field.
func StationNoLTE(v int) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldStationNo, v))
}
// StationNoIsNil applies the IsNil predicate on the "stationNo" field.
func StationNoIsNil() predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIsNull(FieldStationNo))
}
// StationNoNotNil applies the NotNil predicate on the "stationNo" field.
func StationNoNotNil() predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotNull(FieldStationNo))
}
// ProcessCombinationEQ applies the EQ predicate on the "processCombination" field.
func ProcessCombinationEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldProcessCombination, v))
}
// ProcessCombinationNEQ applies the NEQ predicate on the "processCombination" field.
func ProcessCombinationNEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldProcessCombination, v))
}
// ProcessCombinationIn applies the In predicate on the "processCombination" field.
func ProcessCombinationIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldProcessCombination, vs...))
}
// ProcessCombinationNotIn applies the NotIn predicate on the "processCombination" field.
func ProcessCombinationNotIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldProcessCombination, vs...))
}
// ProcessCombinationGT applies the GT predicate on the "processCombination" field.
func ProcessCombinationGT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldProcessCombination, v))
}
// ProcessCombinationGTE applies the GTE predicate on the "processCombination" field.
func ProcessCombinationGTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldProcessCombination, v))
}
// ProcessCombinationLT applies the LT predicate on the "processCombination" field.
func ProcessCombinationLT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldProcessCombination, v))
}
// ProcessCombinationLTE applies the LTE predicate on the "processCombination" field.
func ProcessCombinationLTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldProcessCombination, v))
}
// ProcessCombinationContains applies the Contains predicate on the "processCombination" field.
func ProcessCombinationContains(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContains(FieldProcessCombination, v))
}
// ProcessCombinationHasPrefix applies the HasPrefix predicate on the "processCombination" field.
func ProcessCombinationHasPrefix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasPrefix(FieldProcessCombination, v))
}
// ProcessCombinationHasSuffix applies the HasSuffix predicate on the "processCombination" field.
func ProcessCombinationHasSuffix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasSuffix(FieldProcessCombination, v))
}
// ProcessCombinationEqualFold applies the EqualFold predicate on the "processCombination" field.
func ProcessCombinationEqualFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEqualFold(FieldProcessCombination, v))
}
// ProcessCombinationContainsFold applies the ContainsFold predicate on the "processCombination" field.
func ProcessCombinationContainsFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContainsFold(FieldProcessCombination, v))
}
// ProcessCodesIsNil applies the IsNil predicate on the "processCodes" field.
func ProcessCodesIsNil() predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIsNull(FieldProcessCodes))
}
// ProcessCodesNotNil applies the NotNil predicate on the "processCodes" field.
func ProcessCodesNotNil() predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotNull(FieldProcessCodes))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldStatus, v))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldStatus, v))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldStatus, v))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldStatus, v))
}
// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContains(FieldStatus, v))
}
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasPrefix(FieldStatus, v))
}
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasSuffix(FieldStatus, v))
}
// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEqualFold(FieldStatus, v))
}
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContainsFold(FieldStatus, v))
}
// SendTimeEQ applies the EQ predicate on the "sendTime" field.
func SendTimeEQ(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldSendTime, v))
}
// SendTimeNEQ applies the NEQ predicate on the "sendTime" field.
func SendTimeNEQ(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldSendTime, v))
}
// SendTimeIn applies the In predicate on the "sendTime" field.
func SendTimeIn(vs ...time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldSendTime, vs...))
}
// SendTimeNotIn applies the NotIn predicate on the "sendTime" field.
func SendTimeNotIn(vs ...time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldSendTime, vs...))
}
// SendTimeGT applies the GT predicate on the "sendTime" field.
func SendTimeGT(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldSendTime, v))
}
// SendTimeGTE applies the GTE predicate on the "sendTime" field.
func SendTimeGTE(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldSendTime, v))
}
// SendTimeLT applies the LT predicate on the "sendTime" field.
func SendTimeLT(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldSendTime, v))
}
// SendTimeLTE applies the LTE predicate on the "sendTime" field.
func SendTimeLTE(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldSendTime, v))
}
// SendTimeIsNil applies the IsNil predicate on the "sendTime" field.
func SendTimeIsNil() predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIsNull(FieldSendTime))
}
// SendTimeNotNil applies the NotNil predicate on the "sendTime" field.
func SendTimeNotNil() predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotNull(FieldSendTime))
}
// DoneTimeEQ applies the EQ predicate on the "doneTime" field.
func DoneTimeEQ(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldDoneTime, v))
}
// DoneTimeNEQ applies the NEQ predicate on the "doneTime" field.
func DoneTimeNEQ(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldDoneTime, v))
}
// DoneTimeIn applies the In predicate on the "doneTime" field.
func DoneTimeIn(vs ...time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldDoneTime, vs...))
}
// DoneTimeNotIn applies the NotIn predicate on the "doneTime" field.
func DoneTimeNotIn(vs ...time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldDoneTime, vs...))
}
// DoneTimeGT applies the GT predicate on the "doneTime" field.
func DoneTimeGT(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldDoneTime, v))
}
// DoneTimeGTE applies the GTE predicate on the "doneTime" field.
func DoneTimeGTE(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldDoneTime, v))
}
// DoneTimeLT applies the LT predicate on the "doneTime" field.
func DoneTimeLT(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldDoneTime, v))
}
// DoneTimeLTE applies the LTE predicate on the "doneTime" field.
func DoneTimeLTE(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldDoneTime, v))
}
// DoneTimeIsNil applies the IsNil predicate on the "doneTime" field.
func DoneTimeIsNil() predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIsNull(FieldDoneTime))
}
// DoneTimeNotNil applies the NotNil predicate on the "doneTime" field.
func DoneTimeNotNil() predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotNull(FieldDoneTime))
}
// AckEQ applies the EQ predicate on the "ack" field.
func AckEQ(v bool) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldAck, v))
}
// AckNEQ applies the NEQ predicate on the "ack" field.
func AckNEQ(v bool) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldAck, v))
}
// RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldRemark, v))
}
// RemarkNEQ applies the NEQ predicate on the "remark" field.
func RemarkNEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldRemark, v))
}
// RemarkIn applies the In predicate on the "remark" field.
func RemarkIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldRemark, vs...))
}
// RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldRemark, vs...))
}
// RemarkGT applies the GT predicate on the "remark" field.
func RemarkGT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldRemark, v))
}
// RemarkGTE applies the GTE predicate on the "remark" field.
func RemarkGTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldRemark, v))
}
// RemarkLT applies the LT predicate on the "remark" field.
func RemarkLT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldRemark, v))
}
// RemarkLTE applies the LTE predicate on the "remark" field.
func RemarkLTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldRemark, v))
}
// RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContains(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContains(FieldRemark, v))
}
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasPrefix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasPrefix(FieldRemark, v))
}
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkHasSuffix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasSuffix(FieldRemark, v))
}
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkEqualFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEqualFold(FieldRemark, v))
}
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkContainsFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContainsFold(FieldRemark, v))
}
// OperatorEQ applies the EQ predicate on the "operator" field.
func OperatorEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldOperator, v))
}
// OperatorNEQ applies the NEQ predicate on the "operator" field.
func OperatorNEQ(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldOperator, v))
}
// OperatorIn applies the In predicate on the "operator" field.
func OperatorIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldOperator, vs...))
}
// OperatorNotIn applies the NotIn predicate on the "operator" field.
func OperatorNotIn(vs ...string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldOperator, vs...))
}
// OperatorGT applies the GT predicate on the "operator" field.
func OperatorGT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldOperator, v))
}
// OperatorGTE applies the GTE predicate on the "operator" field.
func OperatorGTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldOperator, v))
}
// OperatorLT applies the LT predicate on the "operator" field.
func OperatorLT(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldOperator, v))
}
// OperatorLTE applies the LTE predicate on the "operator" field.
func OperatorLTE(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldOperator, v))
}
// OperatorContains applies the Contains predicate on the "operator" field.
func OperatorContains(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContains(FieldOperator, v))
}
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
func OperatorHasPrefix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasPrefix(FieldOperator, v))
}
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
func OperatorHasSuffix(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldHasSuffix(FieldOperator, v))
}
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
func OperatorEqualFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEqualFold(FieldOperator, v))
}
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
func OperatorContainsFold(v string) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldContainsFold(FieldOperator, v))
}
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtEQ(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
func CreatedAtNEQ(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "createdAt" field.
func CreatedAtIn(vs ...time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
func CreatedAtNotIn(vs ...time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "createdAt" field.
func CreatedAtGT(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
func CreatedAtGTE(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "createdAt" field.
func CreatedAtLT(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
func CreatedAtLTE(v time.Time) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.FieldLTE(FieldCreatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.PlcSendLog) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.PlcSendLog) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.PlcSendLog) predicate.PlcSendLog {
return predicate.PlcSendLog(sql.NotPredicates(p))
}