feat(mes): 添加定时同步可生产数量到WMS及BOM项相关标准字段

- 在main.go中添加定时任务每10分钟同步可生产数量到WMS系统
- 为BomItem实体添加relatedStandard字段及相关CRUD方法
- 为InspectionRecord实体添加reportNo、materialCode、materialName等字段
- 更新ent schema确保新字段的验证和默认值设置
- 添加必要的数据库迁移和字段映射逻辑
This commit is contained in:
SunYF
2026-09-17 12:49:07 +08:00
parent b4b274301d
commit 1cc93795ce
191 changed files with 24504 additions and 1250 deletions
@@ -41,6 +41,22 @@ const (
FieldStepName = "step_name"
// FieldMeasuredValue holds the string denoting the measuredvalue field in the database.
FieldMeasuredValue = "measured_value"
// FieldReportNo holds the string denoting the reportno field in the database.
FieldReportNo = "report_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"
// FieldManufacturer holds the string denoting the manufacturer field in the database.
FieldManufacturer = "manufacturer"
// FieldInspectionNo holds the string denoting the inspectionno field in the database.
FieldInspectionNo = "inspection_no"
// FieldAttachmentIds holds the string denoting the attachmentids field in the database.
FieldAttachmentIds = "attachment_ids"
// FieldDisposalType holds the string denoting the disposaltype field in the database.
FieldDisposalType = "disposal_type"
// FieldDisposalRemark holds the string denoting the disposalremark field in the database.
FieldDisposalRemark = "disposal_remark"
// FieldCreatedAt holds the string denoting the createdat field in the database.
FieldCreatedAt = "created_at"
// Table holds the table name of the inspectionrecord in the database.
@@ -64,6 +80,14 @@ var Columns = []string{
FieldStepId,
FieldStepName,
FieldMeasuredValue,
FieldReportNo,
FieldMaterialCode,
FieldMaterialName,
FieldManufacturer,
FieldInspectionNo,
FieldAttachmentIds,
FieldDisposalType,
FieldDisposalRemark,
FieldCreatedAt,
}
@@ -124,6 +148,38 @@ var (
DefaultMeasuredValue string
// MeasuredValueValidator is a validator for the "measuredValue" field. It is called by the builders before save.
MeasuredValueValidator func(string) error
// DefaultReportNo holds the default value on creation for the "reportNo" field.
DefaultReportNo string
// ReportNoValidator is a validator for the "reportNo" field. It is called by the builders before save.
ReportNoValidator func(string) error
// DefaultMaterialCode holds the default value on creation for the "materialCode" field.
DefaultMaterialCode string
// 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
// DefaultManufacturer holds the default value on creation for the "manufacturer" field.
DefaultManufacturer string
// ManufacturerValidator is a validator for the "manufacturer" field. It is called by the builders before save.
ManufacturerValidator func(string) error
// DefaultInspectionNo holds the default value on creation for the "inspectionNo" field.
DefaultInspectionNo string
// InspectionNoValidator is a validator for the "inspectionNo" field. It is called by the builders before save.
InspectionNoValidator func(string) error
// DefaultAttachmentIds holds the default value on creation for the "attachmentIds" field.
DefaultAttachmentIds string
// AttachmentIdsValidator is a validator for the "attachmentIds" field. It is called by the builders before save.
AttachmentIdsValidator func(string) error
// DefaultDisposalType holds the default value on creation for the "disposalType" field.
DefaultDisposalType string
// DisposalTypeValidator is a validator for the "disposalType" field. It is called by the builders before save.
DisposalTypeValidator func(string) error
// DefaultDisposalRemark holds the default value on creation for the "disposalRemark" field.
DefaultDisposalRemark string
// DisposalRemarkValidator is a validator for the "disposalRemark" field. It is called by the builders before save.
DisposalRemarkValidator 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.
@@ -203,6 +259,46 @@ func ByMeasuredValue(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMeasuredValue, opts...).ToFunc()
}
// ByReportNo orders the results by the reportNo field.
func ByReportNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldReportNo, 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()
}
// ByManufacturer orders the results by the manufacturer field.
func ByManufacturer(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldManufacturer, opts...).ToFunc()
}
// ByInspectionNo orders the results by the inspectionNo field.
func ByInspectionNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldInspectionNo, opts...).ToFunc()
}
// ByAttachmentIds orders the results by the attachmentIds field.
func ByAttachmentIds(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAttachmentIds, opts...).ToFunc()
}
// ByDisposalType orders the results by the disposalType field.
func ByDisposalType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDisposalType, opts...).ToFunc()
}
// ByDisposalRemark orders the results by the disposalRemark field.
func ByDisposalRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDisposalRemark, opts...).ToFunc()
}
// ByCreatedAt orders the results by the createdAt field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
+560
View File
@@ -119,6 +119,46 @@ func MeasuredValue(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldMeasuredValue, v))
}
// ReportNo applies equality check predicate on the "reportNo" field. It's identical to ReportNoEQ.
func ReportNo(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldReportNo, v))
}
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
func MaterialCode(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldMaterialCode, v))
}
// MaterialName applies equality check predicate on the "materialName" field. It's identical to MaterialNameEQ.
func MaterialName(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldMaterialName, v))
}
// Manufacturer applies equality check predicate on the "manufacturer" field. It's identical to ManufacturerEQ.
func Manufacturer(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldManufacturer, v))
}
// InspectionNo applies equality check predicate on the "inspectionNo" field. It's identical to InspectionNoEQ.
func InspectionNo(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldInspectionNo, v))
}
// AttachmentIds applies equality check predicate on the "attachmentIds" field. It's identical to AttachmentIdsEQ.
func AttachmentIds(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldAttachmentIds, v))
}
// DisposalType applies equality check predicate on the "disposalType" field. It's identical to DisposalTypeEQ.
func DisposalType(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalType, v))
}
// DisposalRemark applies equality check predicate on the "disposalRemark" field. It's identical to DisposalRemarkEQ.
func DisposalRemark(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalRemark, v))
}
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldCreatedAt, v))
@@ -929,6 +969,526 @@ func MeasuredValueContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldMeasuredValue, v))
}
// ReportNoEQ applies the EQ predicate on the "reportNo" field.
func ReportNoEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldReportNo, v))
}
// ReportNoNEQ applies the NEQ predicate on the "reportNo" field.
func ReportNoNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldReportNo, v))
}
// ReportNoIn applies the In predicate on the "reportNo" field.
func ReportNoIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldReportNo, vs...))
}
// ReportNoNotIn applies the NotIn predicate on the "reportNo" field.
func ReportNoNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldReportNo, vs...))
}
// ReportNoGT applies the GT predicate on the "reportNo" field.
func ReportNoGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldReportNo, v))
}
// ReportNoGTE applies the GTE predicate on the "reportNo" field.
func ReportNoGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldReportNo, v))
}
// ReportNoLT applies the LT predicate on the "reportNo" field.
func ReportNoLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldReportNo, v))
}
// ReportNoLTE applies the LTE predicate on the "reportNo" field.
func ReportNoLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldReportNo, v))
}
// ReportNoContains applies the Contains predicate on the "reportNo" field.
func ReportNoContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldReportNo, v))
}
// ReportNoHasPrefix applies the HasPrefix predicate on the "reportNo" field.
func ReportNoHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldReportNo, v))
}
// ReportNoHasSuffix applies the HasSuffix predicate on the "reportNo" field.
func ReportNoHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldReportNo, v))
}
// ReportNoEqualFold applies the EqualFold predicate on the "reportNo" field.
func ReportNoEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldReportNo, v))
}
// ReportNoContainsFold applies the ContainsFold predicate on the "reportNo" field.
func ReportNoContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldReportNo, v))
}
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
func MaterialCodeEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldMaterialCode, v))
}
// MaterialCodeNEQ applies the NEQ predicate on the "materialCode" field.
func MaterialCodeNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldMaterialCode, v))
}
// MaterialCodeIn applies the In predicate on the "materialCode" field.
func MaterialCodeIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldMaterialCode, vs...))
}
// MaterialCodeNotIn applies the NotIn predicate on the "materialCode" field.
func MaterialCodeNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldMaterialCode, vs...))
}
// MaterialCodeGT applies the GT predicate on the "materialCode" field.
func MaterialCodeGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldMaterialCode, v))
}
// MaterialCodeGTE applies the GTE predicate on the "materialCode" field.
func MaterialCodeGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldMaterialCode, v))
}
// MaterialCodeLT applies the LT predicate on the "materialCode" field.
func MaterialCodeLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldMaterialCode, v))
}
// MaterialCodeLTE applies the LTE predicate on the "materialCode" field.
func MaterialCodeLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldMaterialCode, v))
}
// MaterialCodeContains applies the Contains predicate on the "materialCode" field.
func MaterialCodeContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldMaterialCode, v))
}
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "materialCode" field.
func MaterialCodeHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldMaterialCode, v))
}
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "materialCode" field.
func MaterialCodeHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldMaterialCode, v))
}
// MaterialCodeEqualFold applies the EqualFold predicate on the "materialCode" field.
func MaterialCodeEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldMaterialCode, v))
}
// MaterialCodeContainsFold applies the ContainsFold predicate on the "materialCode" field.
func MaterialCodeContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldMaterialCode, v))
}
// MaterialNameEQ applies the EQ predicate on the "materialName" field.
func MaterialNameEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldMaterialName, v))
}
// MaterialNameNEQ applies the NEQ predicate on the "materialName" field.
func MaterialNameNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldMaterialName, v))
}
// MaterialNameIn applies the In predicate on the "materialName" field.
func MaterialNameIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldMaterialName, vs...))
}
// MaterialNameNotIn applies the NotIn predicate on the "materialName" field.
func MaterialNameNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldMaterialName, vs...))
}
// MaterialNameGT applies the GT predicate on the "materialName" field.
func MaterialNameGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldMaterialName, v))
}
// MaterialNameGTE applies the GTE predicate on the "materialName" field.
func MaterialNameGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldMaterialName, v))
}
// MaterialNameLT applies the LT predicate on the "materialName" field.
func MaterialNameLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldMaterialName, v))
}
// MaterialNameLTE applies the LTE predicate on the "materialName" field.
func MaterialNameLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldMaterialName, v))
}
// MaterialNameContains applies the Contains predicate on the "materialName" field.
func MaterialNameContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldMaterialName, v))
}
// MaterialNameHasPrefix applies the HasPrefix predicate on the "materialName" field.
func MaterialNameHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldMaterialName, v))
}
// MaterialNameHasSuffix applies the HasSuffix predicate on the "materialName" field.
func MaterialNameHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldMaterialName, v))
}
// MaterialNameEqualFold applies the EqualFold predicate on the "materialName" field.
func MaterialNameEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldMaterialName, v))
}
// MaterialNameContainsFold applies the ContainsFold predicate on the "materialName" field.
func MaterialNameContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldMaterialName, v))
}
// ManufacturerEQ applies the EQ predicate on the "manufacturer" field.
func ManufacturerEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldManufacturer, v))
}
// ManufacturerNEQ applies the NEQ predicate on the "manufacturer" field.
func ManufacturerNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldManufacturer, v))
}
// ManufacturerIn applies the In predicate on the "manufacturer" field.
func ManufacturerIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldManufacturer, vs...))
}
// ManufacturerNotIn applies the NotIn predicate on the "manufacturer" field.
func ManufacturerNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldManufacturer, vs...))
}
// ManufacturerGT applies the GT predicate on the "manufacturer" field.
func ManufacturerGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldManufacturer, v))
}
// ManufacturerGTE applies the GTE predicate on the "manufacturer" field.
func ManufacturerGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldManufacturer, v))
}
// ManufacturerLT applies the LT predicate on the "manufacturer" field.
func ManufacturerLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldManufacturer, v))
}
// ManufacturerLTE applies the LTE predicate on the "manufacturer" field.
func ManufacturerLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldManufacturer, v))
}
// ManufacturerContains applies the Contains predicate on the "manufacturer" field.
func ManufacturerContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldManufacturer, v))
}
// ManufacturerHasPrefix applies the HasPrefix predicate on the "manufacturer" field.
func ManufacturerHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldManufacturer, v))
}
// ManufacturerHasSuffix applies the HasSuffix predicate on the "manufacturer" field.
func ManufacturerHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldManufacturer, v))
}
// ManufacturerEqualFold applies the EqualFold predicate on the "manufacturer" field.
func ManufacturerEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldManufacturer, v))
}
// ManufacturerContainsFold applies the ContainsFold predicate on the "manufacturer" field.
func ManufacturerContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldManufacturer, v))
}
// InspectionNoEQ applies the EQ predicate on the "inspectionNo" field.
func InspectionNoEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldInspectionNo, v))
}
// InspectionNoNEQ applies the NEQ predicate on the "inspectionNo" field.
func InspectionNoNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldInspectionNo, v))
}
// InspectionNoIn applies the In predicate on the "inspectionNo" field.
func InspectionNoIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldInspectionNo, vs...))
}
// InspectionNoNotIn applies the NotIn predicate on the "inspectionNo" field.
func InspectionNoNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldInspectionNo, vs...))
}
// InspectionNoGT applies the GT predicate on the "inspectionNo" field.
func InspectionNoGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldInspectionNo, v))
}
// InspectionNoGTE applies the GTE predicate on the "inspectionNo" field.
func InspectionNoGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldInspectionNo, v))
}
// InspectionNoLT applies the LT predicate on the "inspectionNo" field.
func InspectionNoLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldInspectionNo, v))
}
// InspectionNoLTE applies the LTE predicate on the "inspectionNo" field.
func InspectionNoLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldInspectionNo, v))
}
// InspectionNoContains applies the Contains predicate on the "inspectionNo" field.
func InspectionNoContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldInspectionNo, v))
}
// InspectionNoHasPrefix applies the HasPrefix predicate on the "inspectionNo" field.
func InspectionNoHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldInspectionNo, v))
}
// InspectionNoHasSuffix applies the HasSuffix predicate on the "inspectionNo" field.
func InspectionNoHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldInspectionNo, v))
}
// InspectionNoEqualFold applies the EqualFold predicate on the "inspectionNo" field.
func InspectionNoEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldInspectionNo, v))
}
// InspectionNoContainsFold applies the ContainsFold predicate on the "inspectionNo" field.
func InspectionNoContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldInspectionNo, v))
}
// AttachmentIdsEQ applies the EQ predicate on the "attachmentIds" field.
func AttachmentIdsEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldAttachmentIds, v))
}
// AttachmentIdsNEQ applies the NEQ predicate on the "attachmentIds" field.
func AttachmentIdsNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldAttachmentIds, v))
}
// AttachmentIdsIn applies the In predicate on the "attachmentIds" field.
func AttachmentIdsIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldAttachmentIds, vs...))
}
// AttachmentIdsNotIn applies the NotIn predicate on the "attachmentIds" field.
func AttachmentIdsNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldAttachmentIds, vs...))
}
// AttachmentIdsGT applies the GT predicate on the "attachmentIds" field.
func AttachmentIdsGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldAttachmentIds, v))
}
// AttachmentIdsGTE applies the GTE predicate on the "attachmentIds" field.
func AttachmentIdsGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldAttachmentIds, v))
}
// AttachmentIdsLT applies the LT predicate on the "attachmentIds" field.
func AttachmentIdsLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldAttachmentIds, v))
}
// AttachmentIdsLTE applies the LTE predicate on the "attachmentIds" field.
func AttachmentIdsLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldAttachmentIds, v))
}
// AttachmentIdsContains applies the Contains predicate on the "attachmentIds" field.
func AttachmentIdsContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldAttachmentIds, v))
}
// AttachmentIdsHasPrefix applies the HasPrefix predicate on the "attachmentIds" field.
func AttachmentIdsHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldAttachmentIds, v))
}
// AttachmentIdsHasSuffix applies the HasSuffix predicate on the "attachmentIds" field.
func AttachmentIdsHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldAttachmentIds, v))
}
// AttachmentIdsEqualFold applies the EqualFold predicate on the "attachmentIds" field.
func AttachmentIdsEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldAttachmentIds, v))
}
// AttachmentIdsContainsFold applies the ContainsFold predicate on the "attachmentIds" field.
func AttachmentIdsContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldAttachmentIds, v))
}
// DisposalTypeEQ applies the EQ predicate on the "disposalType" field.
func DisposalTypeEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalType, v))
}
// DisposalTypeNEQ applies the NEQ predicate on the "disposalType" field.
func DisposalTypeNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldDisposalType, v))
}
// DisposalTypeIn applies the In predicate on the "disposalType" field.
func DisposalTypeIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldDisposalType, vs...))
}
// DisposalTypeNotIn applies the NotIn predicate on the "disposalType" field.
func DisposalTypeNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldDisposalType, vs...))
}
// DisposalTypeGT applies the GT predicate on the "disposalType" field.
func DisposalTypeGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldDisposalType, v))
}
// DisposalTypeGTE applies the GTE predicate on the "disposalType" field.
func DisposalTypeGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldDisposalType, v))
}
// DisposalTypeLT applies the LT predicate on the "disposalType" field.
func DisposalTypeLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldDisposalType, v))
}
// DisposalTypeLTE applies the LTE predicate on the "disposalType" field.
func DisposalTypeLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldDisposalType, v))
}
// DisposalTypeContains applies the Contains predicate on the "disposalType" field.
func DisposalTypeContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldDisposalType, v))
}
// DisposalTypeHasPrefix applies the HasPrefix predicate on the "disposalType" field.
func DisposalTypeHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldDisposalType, v))
}
// DisposalTypeHasSuffix applies the HasSuffix predicate on the "disposalType" field.
func DisposalTypeHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldDisposalType, v))
}
// DisposalTypeEqualFold applies the EqualFold predicate on the "disposalType" field.
func DisposalTypeEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldDisposalType, v))
}
// DisposalTypeContainsFold applies the ContainsFold predicate on the "disposalType" field.
func DisposalTypeContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldDisposalType, v))
}
// DisposalRemarkEQ applies the EQ predicate on the "disposalRemark" field.
func DisposalRemarkEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalRemark, v))
}
// DisposalRemarkNEQ applies the NEQ predicate on the "disposalRemark" field.
func DisposalRemarkNEQ(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNEQ(FieldDisposalRemark, v))
}
// DisposalRemarkIn applies the In predicate on the "disposalRemark" field.
func DisposalRemarkIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldIn(FieldDisposalRemark, vs...))
}
// DisposalRemarkNotIn applies the NotIn predicate on the "disposalRemark" field.
func DisposalRemarkNotIn(vs ...string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldNotIn(FieldDisposalRemark, vs...))
}
// DisposalRemarkGT applies the GT predicate on the "disposalRemark" field.
func DisposalRemarkGT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGT(FieldDisposalRemark, v))
}
// DisposalRemarkGTE applies the GTE predicate on the "disposalRemark" field.
func DisposalRemarkGTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldGTE(FieldDisposalRemark, v))
}
// DisposalRemarkLT applies the LT predicate on the "disposalRemark" field.
func DisposalRemarkLT(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLT(FieldDisposalRemark, v))
}
// DisposalRemarkLTE applies the LTE predicate on the "disposalRemark" field.
func DisposalRemarkLTE(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldLTE(FieldDisposalRemark, v))
}
// DisposalRemarkContains applies the Contains predicate on the "disposalRemark" field.
func DisposalRemarkContains(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContains(FieldDisposalRemark, v))
}
// DisposalRemarkHasPrefix applies the HasPrefix predicate on the "disposalRemark" field.
func DisposalRemarkHasPrefix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldDisposalRemark, v))
}
// DisposalRemarkHasSuffix applies the HasSuffix predicate on the "disposalRemark" field.
func DisposalRemarkHasSuffix(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldDisposalRemark, v))
}
// DisposalRemarkEqualFold applies the EqualFold predicate on the "disposalRemark" field.
func DisposalRemarkEqualFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEqualFold(FieldDisposalRemark, v))
}
// DisposalRemarkContainsFold applies the ContainsFold predicate on the "disposalRemark" field.
func DisposalRemarkContainsFold(v string) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldContainsFold(FieldDisposalRemark, v))
}
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtEQ(v time.Time) predicate.InspectionRecord {
return predicate.InspectionRecord(sql.FieldEQ(FieldCreatedAt, v))