feat: 新增预警与附件模块,优化工位派工功能
1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package dailyplan
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the dailyplan type in the database.
|
||||
Label = "daily_plan"
|
||||
// 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"
|
||||
// FieldPlanDate holds the string denoting the plandate field in the database.
|
||||
FieldPlanDate = "plan_date"
|
||||
// FieldPlanQty holds the string denoting the planqty field in the database.
|
||||
FieldPlanQty = "plan_qty"
|
||||
// FieldCompletedQty holds the string denoting the completedqty field in the database.
|
||||
FieldCompletedQty = "completed_qty"
|
||||
// FieldDockCodes holds the string denoting the dockcodes field in the database.
|
||||
FieldDockCodes = "dock_codes"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// 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"
|
||||
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// Table holds the table name of the dailyplan in the database.
|
||||
Table = "daily_plan"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for dailyplan fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldOrderNo,
|
||||
FieldPlanDate,
|
||||
FieldPlanQty,
|
||||
FieldCompletedQty,
|
||||
FieldDockCodes,
|
||||
FieldStatus,
|
||||
FieldOperator,
|
||||
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 (
|
||||
// OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
OrderNoValidator func(string) error
|
||||
// PlanDateValidator is a validator for the "planDate" field. It is called by the builders before save.
|
||||
PlanDateValidator func(string) error
|
||||
// DefaultPlanQty holds the default value on creation for the "planQty" field.
|
||||
DefaultPlanQty int
|
||||
// DefaultCompletedQty holds the default value on creation for the "completedQty" field.
|
||||
DefaultCompletedQty int
|
||||
// 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
|
||||
// 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
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updatedAt" field.
|
||||
DefaultUpdatedAt func() time.Time
|
||||
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
|
||||
UpdateDefaultUpdatedAt func() time.Time
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the DailyPlan 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()
|
||||
}
|
||||
|
||||
// ByPlanDate orders the results by the planDate field.
|
||||
func ByPlanDate(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPlanDate, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPlanQty orders the results by the planQty field.
|
||||
func ByPlanQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPlanQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCompletedQty orders the results by the completedQty field.
|
||||
func ByCompletedQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCompletedQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, 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()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updatedAt field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,550 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package dailyplan
|
||||
|
||||
import (
|
||||
"bj_power_mes/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
|
||||
func OrderNo(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// PlanDate applies equality check predicate on the "planDate" field. It's identical to PlanDateEQ.
|
||||
func PlanDate(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanQty applies equality check predicate on the "planQty" field. It's identical to PlanQtyEQ.
|
||||
func PlanQty(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldPlanQty, v))
|
||||
}
|
||||
|
||||
// CompletedQty applies equality check predicate on the "completedQty" field. It's identical to CompletedQtyEQ.
|
||||
func CompletedQty(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldCompletedQty, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
|
||||
func OrderNoEQ(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
|
||||
func OrderNoNEQ(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoIn applies the In predicate on the "orderNo" field.
|
||||
func OrderNoIn(vs ...string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
|
||||
func OrderNoNotIn(vs ...string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldOrderNo, vs...))
|
||||
}
|
||||
|
||||
// OrderNoGT applies the GT predicate on the "orderNo" field.
|
||||
func OrderNoGT(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
|
||||
func OrderNoGTE(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLT applies the LT predicate on the "orderNo" field.
|
||||
func OrderNoLT(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
|
||||
func OrderNoLTE(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContains applies the Contains predicate on the "orderNo" field.
|
||||
func OrderNoContains(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldContains(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
|
||||
func OrderNoHasPrefix(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldHasPrefix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
|
||||
func OrderNoHasSuffix(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldHasSuffix(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
|
||||
func OrderNoEqualFold(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEqualFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
|
||||
func OrderNoContainsFold(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldContainsFold(FieldOrderNo, v))
|
||||
}
|
||||
|
||||
// PlanDateEQ applies the EQ predicate on the "planDate" field.
|
||||
func PlanDateEQ(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateNEQ applies the NEQ predicate on the "planDate" field.
|
||||
func PlanDateNEQ(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateIn applies the In predicate on the "planDate" field.
|
||||
func PlanDateIn(vs ...string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldPlanDate, vs...))
|
||||
}
|
||||
|
||||
// PlanDateNotIn applies the NotIn predicate on the "planDate" field.
|
||||
func PlanDateNotIn(vs ...string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldPlanDate, vs...))
|
||||
}
|
||||
|
||||
// PlanDateGT applies the GT predicate on the "planDate" field.
|
||||
func PlanDateGT(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateGTE applies the GTE predicate on the "planDate" field.
|
||||
func PlanDateGTE(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateLT applies the LT predicate on the "planDate" field.
|
||||
func PlanDateLT(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateLTE applies the LTE predicate on the "planDate" field.
|
||||
func PlanDateLTE(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateContains applies the Contains predicate on the "planDate" field.
|
||||
func PlanDateContains(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldContains(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateHasPrefix applies the HasPrefix predicate on the "planDate" field.
|
||||
func PlanDateHasPrefix(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldHasPrefix(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateHasSuffix applies the HasSuffix predicate on the "planDate" field.
|
||||
func PlanDateHasSuffix(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldHasSuffix(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateEqualFold applies the EqualFold predicate on the "planDate" field.
|
||||
func PlanDateEqualFold(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEqualFold(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanDateContainsFold applies the ContainsFold predicate on the "planDate" field.
|
||||
func PlanDateContainsFold(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldContainsFold(FieldPlanDate, v))
|
||||
}
|
||||
|
||||
// PlanQtyEQ applies the EQ predicate on the "planQty" field.
|
||||
func PlanQtyEQ(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldPlanQty, v))
|
||||
}
|
||||
|
||||
// PlanQtyNEQ applies the NEQ predicate on the "planQty" field.
|
||||
func PlanQtyNEQ(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldPlanQty, v))
|
||||
}
|
||||
|
||||
// PlanQtyIn applies the In predicate on the "planQty" field.
|
||||
func PlanQtyIn(vs ...int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldPlanQty, vs...))
|
||||
}
|
||||
|
||||
// PlanQtyNotIn applies the NotIn predicate on the "planQty" field.
|
||||
func PlanQtyNotIn(vs ...int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldPlanQty, vs...))
|
||||
}
|
||||
|
||||
// PlanQtyGT applies the GT predicate on the "planQty" field.
|
||||
func PlanQtyGT(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldPlanQty, v))
|
||||
}
|
||||
|
||||
// PlanQtyGTE applies the GTE predicate on the "planQty" field.
|
||||
func PlanQtyGTE(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldPlanQty, v))
|
||||
}
|
||||
|
||||
// PlanQtyLT applies the LT predicate on the "planQty" field.
|
||||
func PlanQtyLT(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldPlanQty, v))
|
||||
}
|
||||
|
||||
// PlanQtyLTE applies the LTE predicate on the "planQty" field.
|
||||
func PlanQtyLTE(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldPlanQty, v))
|
||||
}
|
||||
|
||||
// CompletedQtyEQ applies the EQ predicate on the "completedQty" field.
|
||||
func CompletedQtyEQ(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldCompletedQty, v))
|
||||
}
|
||||
|
||||
// CompletedQtyNEQ applies the NEQ predicate on the "completedQty" field.
|
||||
func CompletedQtyNEQ(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldCompletedQty, v))
|
||||
}
|
||||
|
||||
// CompletedQtyIn applies the In predicate on the "completedQty" field.
|
||||
func CompletedQtyIn(vs ...int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldCompletedQty, vs...))
|
||||
}
|
||||
|
||||
// CompletedQtyNotIn applies the NotIn predicate on the "completedQty" field.
|
||||
func CompletedQtyNotIn(vs ...int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldCompletedQty, vs...))
|
||||
}
|
||||
|
||||
// CompletedQtyGT applies the GT predicate on the "completedQty" field.
|
||||
func CompletedQtyGT(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldCompletedQty, v))
|
||||
}
|
||||
|
||||
// CompletedQtyGTE applies the GTE predicate on the "completedQty" field.
|
||||
func CompletedQtyGTE(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldCompletedQty, v))
|
||||
}
|
||||
|
||||
// CompletedQtyLT applies the LT predicate on the "completedQty" field.
|
||||
func CompletedQtyLT(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldCompletedQty, v))
|
||||
}
|
||||
|
||||
// CompletedQtyLTE applies the LTE predicate on the "completedQty" field.
|
||||
func CompletedQtyLTE(v int) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldCompletedQty, v))
|
||||
}
|
||||
|
||||
// DockCodesIsNil applies the IsNil predicate on the "dockCodes" field.
|
||||
func DockCodesIsNil() predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIsNull(FieldDockCodes))
|
||||
}
|
||||
|
||||
// DockCodesNotNil applies the NotNil predicate on the "dockCodes" field.
|
||||
func DockCodesNotNil() predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotNull(FieldDockCodes))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIsNil applies the IsNil predicate on the "updatedAt" field.
|
||||
func UpdatedAtIsNil() predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldIsNull(FieldUpdatedAt))
|
||||
}
|
||||
|
||||
// UpdatedAtNotNil applies the NotNil predicate on the "updatedAt" field.
|
||||
func UpdatedAtNotNil() predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.FieldNotNull(FieldUpdatedAt))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.DailyPlan) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.DailyPlan) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.DailyPlan) predicate.DailyPlan {
|
||||
return predicate.DailyPlan(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user