Files
bj_power/bj_power_wms/ent/inventory/where.go
T
SunYF 68f50ee46e refactor(wms): 合并库存表为统一inventory,重构业务逻辑
1. 合并inventory_batch与serial_number为统一inventory表,用manage_mode区分结构件批次/精密件SN
2. 移除冗余的material_type字段与相关逻辑
3. 重构库存查询、检验、入库出库等业务逻辑适配新表结构
4. 调整前端路由与菜单,拆分基础数据为区域维护和物料档案
5. 优化入库校验逻辑,避免空单问题
6. 调整Vite构建配置,关闭自动清空输出目录
7. 为各模块添加详细中文注释,统一业务术语
8. 生成并更新Ent自动代码文件
2026-09-02 08:21:11 +08:00

1145 lines
42 KiB
Go

// Code generated by ent, DO NOT EDIT.
package inventory
import (
"bj_power_wms/ent/predicate"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldID, id))
}
// ManageMode applies equality check predicate on the "manage_mode" field. It's identical to ManageModeEQ.
func ManageMode(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldManageMode, v))
}
// MaterialCode applies equality check predicate on the "material_code" field. It's identical to MaterialCodeEQ.
func MaterialCode(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldMaterialCode, v))
}
// MaterialName applies equality check predicate on the "material_name" field. It's identical to MaterialNameEQ.
func MaterialName(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldMaterialName, v))
}
// BatchNo applies equality check predicate on the "batch_no" field. It's identical to BatchNoEQ.
func BatchNo(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldBatchNo, v))
}
// SnCode applies equality check predicate on the "sn_code" field. It's identical to SnCodeEQ.
func SnCode(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldSnCode, v))
}
// Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func Quantity(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldQuantity, v))
}
// LockedQty applies equality check predicate on the "locked_qty" field. It's identical to LockedQtyEQ.
func LockedQty(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldLockedQty, v))
}
// QualityStatus applies equality check predicate on the "quality_status" field. It's identical to QualityStatusEQ.
func QualityStatus(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldQualityStatus, v))
}
// ZoneCode applies equality check predicate on the "zone_code" field. It's identical to ZoneCodeEQ.
func ZoneCode(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldZoneCode, v))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldStatus, v))
}
// ProductionDate applies equality check predicate on the "production_date" field. It's identical to ProductionDateEQ.
func ProductionDate(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldProductionDate, v))
}
// Supplier applies equality check predicate on the "supplier" field. It's identical to SupplierEQ.
func Supplier(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldSupplier, v))
}
// InboundNo applies equality check predicate on the "inbound_no" field. It's identical to InboundNoEQ.
func InboundNo(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldInboundNo, v))
}
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func Remark(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldRemark, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldUpdatedAt, v))
}
// ManageModeEQ applies the EQ predicate on the "manage_mode" field.
func ManageModeEQ(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldManageMode, v))
}
// ManageModeNEQ applies the NEQ predicate on the "manage_mode" field.
func ManageModeNEQ(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldManageMode, v))
}
// ManageModeIn applies the In predicate on the "manage_mode" field.
func ManageModeIn(vs ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldManageMode, vs...))
}
// ManageModeNotIn applies the NotIn predicate on the "manage_mode" field.
func ManageModeNotIn(vs ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldManageMode, vs...))
}
// ManageModeGT applies the GT predicate on the "manage_mode" field.
func ManageModeGT(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldManageMode, v))
}
// ManageModeGTE applies the GTE predicate on the "manage_mode" field.
func ManageModeGTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldManageMode, v))
}
// ManageModeLT applies the LT predicate on the "manage_mode" field.
func ManageModeLT(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldManageMode, v))
}
// ManageModeLTE applies the LTE predicate on the "manage_mode" field.
func ManageModeLTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldManageMode, v))
}
// MaterialCodeEQ applies the EQ predicate on the "material_code" field.
func MaterialCodeEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldMaterialCode, v))
}
// MaterialCodeNEQ applies the NEQ predicate on the "material_code" field.
func MaterialCodeNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldMaterialCode, v))
}
// MaterialCodeIn applies the In predicate on the "material_code" field.
func MaterialCodeIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldMaterialCode, vs...))
}
// MaterialCodeNotIn applies the NotIn predicate on the "material_code" field.
func MaterialCodeNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldMaterialCode, vs...))
}
// MaterialCodeGT applies the GT predicate on the "material_code" field.
func MaterialCodeGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldMaterialCode, v))
}
// MaterialCodeGTE applies the GTE predicate on the "material_code" field.
func MaterialCodeGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldMaterialCode, v))
}
// MaterialCodeLT applies the LT predicate on the "material_code" field.
func MaterialCodeLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldMaterialCode, v))
}
// MaterialCodeLTE applies the LTE predicate on the "material_code" field.
func MaterialCodeLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldMaterialCode, v))
}
// MaterialCodeContains applies the Contains predicate on the "material_code" field.
func MaterialCodeContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldMaterialCode, v))
}
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "material_code" field.
func MaterialCodeHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldMaterialCode, v))
}
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "material_code" field.
func MaterialCodeHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldMaterialCode, v))
}
// MaterialCodeEqualFold applies the EqualFold predicate on the "material_code" field.
func MaterialCodeEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldMaterialCode, v))
}
// MaterialCodeContainsFold applies the ContainsFold predicate on the "material_code" field.
func MaterialCodeContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldMaterialCode, v))
}
// MaterialNameEQ applies the EQ predicate on the "material_name" field.
func MaterialNameEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldMaterialName, v))
}
// MaterialNameNEQ applies the NEQ predicate on the "material_name" field.
func MaterialNameNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldMaterialName, v))
}
// MaterialNameIn applies the In predicate on the "material_name" field.
func MaterialNameIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldMaterialName, vs...))
}
// MaterialNameNotIn applies the NotIn predicate on the "material_name" field.
func MaterialNameNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldMaterialName, vs...))
}
// MaterialNameGT applies the GT predicate on the "material_name" field.
func MaterialNameGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldMaterialName, v))
}
// MaterialNameGTE applies the GTE predicate on the "material_name" field.
func MaterialNameGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldMaterialName, v))
}
// MaterialNameLT applies the LT predicate on the "material_name" field.
func MaterialNameLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldMaterialName, v))
}
// MaterialNameLTE applies the LTE predicate on the "material_name" field.
func MaterialNameLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldMaterialName, v))
}
// MaterialNameContains applies the Contains predicate on the "material_name" field.
func MaterialNameContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldMaterialName, v))
}
// MaterialNameHasPrefix applies the HasPrefix predicate on the "material_name" field.
func MaterialNameHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldMaterialName, v))
}
// MaterialNameHasSuffix applies the HasSuffix predicate on the "material_name" field.
func MaterialNameHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldMaterialName, v))
}
// MaterialNameIsNil applies the IsNil predicate on the "material_name" field.
func MaterialNameIsNil() predicate.Inventory {
return predicate.Inventory(sql.FieldIsNull(FieldMaterialName))
}
// MaterialNameNotNil applies the NotNil predicate on the "material_name" field.
func MaterialNameNotNil() predicate.Inventory {
return predicate.Inventory(sql.FieldNotNull(FieldMaterialName))
}
// MaterialNameEqualFold applies the EqualFold predicate on the "material_name" field.
func MaterialNameEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldMaterialName, v))
}
// MaterialNameContainsFold applies the ContainsFold predicate on the "material_name" field.
func MaterialNameContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldMaterialName, v))
}
// BatchNoEQ applies the EQ predicate on the "batch_no" field.
func BatchNoEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldBatchNo, v))
}
// BatchNoNEQ applies the NEQ predicate on the "batch_no" field.
func BatchNoNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldBatchNo, v))
}
// BatchNoIn applies the In predicate on the "batch_no" field.
func BatchNoIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldBatchNo, vs...))
}
// BatchNoNotIn applies the NotIn predicate on the "batch_no" field.
func BatchNoNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldBatchNo, vs...))
}
// BatchNoGT applies the GT predicate on the "batch_no" field.
func BatchNoGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldBatchNo, v))
}
// BatchNoGTE applies the GTE predicate on the "batch_no" field.
func BatchNoGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldBatchNo, v))
}
// BatchNoLT applies the LT predicate on the "batch_no" field.
func BatchNoLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldBatchNo, v))
}
// BatchNoLTE applies the LTE predicate on the "batch_no" field.
func BatchNoLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldBatchNo, v))
}
// BatchNoContains applies the Contains predicate on the "batch_no" field.
func BatchNoContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldBatchNo, v))
}
// BatchNoHasPrefix applies the HasPrefix predicate on the "batch_no" field.
func BatchNoHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldBatchNo, v))
}
// BatchNoHasSuffix applies the HasSuffix predicate on the "batch_no" field.
func BatchNoHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldBatchNo, v))
}
// BatchNoIsNil applies the IsNil predicate on the "batch_no" field.
func BatchNoIsNil() predicate.Inventory {
return predicate.Inventory(sql.FieldIsNull(FieldBatchNo))
}
// BatchNoNotNil applies the NotNil predicate on the "batch_no" field.
func BatchNoNotNil() predicate.Inventory {
return predicate.Inventory(sql.FieldNotNull(FieldBatchNo))
}
// BatchNoEqualFold applies the EqualFold predicate on the "batch_no" field.
func BatchNoEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldBatchNo, v))
}
// BatchNoContainsFold applies the ContainsFold predicate on the "batch_no" field.
func BatchNoContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldBatchNo, v))
}
// SnCodeEQ applies the EQ predicate on the "sn_code" field.
func SnCodeEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldSnCode, v))
}
// SnCodeNEQ applies the NEQ predicate on the "sn_code" field.
func SnCodeNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldSnCode, v))
}
// SnCodeIn applies the In predicate on the "sn_code" field.
func SnCodeIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldSnCode, vs...))
}
// SnCodeNotIn applies the NotIn predicate on the "sn_code" field.
func SnCodeNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldSnCode, vs...))
}
// SnCodeGT applies the GT predicate on the "sn_code" field.
func SnCodeGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldSnCode, v))
}
// SnCodeGTE applies the GTE predicate on the "sn_code" field.
func SnCodeGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldSnCode, v))
}
// SnCodeLT applies the LT predicate on the "sn_code" field.
func SnCodeLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldSnCode, v))
}
// SnCodeLTE applies the LTE predicate on the "sn_code" field.
func SnCodeLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldSnCode, v))
}
// SnCodeContains applies the Contains predicate on the "sn_code" field.
func SnCodeContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldSnCode, v))
}
// SnCodeHasPrefix applies the HasPrefix predicate on the "sn_code" field.
func SnCodeHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldSnCode, v))
}
// SnCodeHasSuffix applies the HasSuffix predicate on the "sn_code" field.
func SnCodeHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldSnCode, v))
}
// SnCodeIsNil applies the IsNil predicate on the "sn_code" field.
func SnCodeIsNil() predicate.Inventory {
return predicate.Inventory(sql.FieldIsNull(FieldSnCode))
}
// SnCodeNotNil applies the NotNil predicate on the "sn_code" field.
func SnCodeNotNil() predicate.Inventory {
return predicate.Inventory(sql.FieldNotNull(FieldSnCode))
}
// SnCodeEqualFold applies the EqualFold predicate on the "sn_code" field.
func SnCodeEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldSnCode, v))
}
// SnCodeContainsFold applies the ContainsFold predicate on the "sn_code" field.
func SnCodeContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldSnCode, v))
}
// QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityEQ(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldQuantity, v))
}
// QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNEQ(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldQuantity, v))
}
// QuantityIn applies the In predicate on the "quantity" field.
func QuantityIn(vs ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldQuantity, vs...))
}
// QuantityNotIn applies the NotIn predicate on the "quantity" field.
func QuantityNotIn(vs ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldQuantity, vs...))
}
// QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGT(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldQuantity, v))
}
// QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityGTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldQuantity, v))
}
// QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLT(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldQuantity, v))
}
// QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityLTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldQuantity, v))
}
// LockedQtyEQ applies the EQ predicate on the "locked_qty" field.
func LockedQtyEQ(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldLockedQty, v))
}
// LockedQtyNEQ applies the NEQ predicate on the "locked_qty" field.
func LockedQtyNEQ(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldLockedQty, v))
}
// LockedQtyIn applies the In predicate on the "locked_qty" field.
func LockedQtyIn(vs ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldLockedQty, vs...))
}
// LockedQtyNotIn applies the NotIn predicate on the "locked_qty" field.
func LockedQtyNotIn(vs ...int) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldLockedQty, vs...))
}
// LockedQtyGT applies the GT predicate on the "locked_qty" field.
func LockedQtyGT(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldLockedQty, v))
}
// LockedQtyGTE applies the GTE predicate on the "locked_qty" field.
func LockedQtyGTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldLockedQty, v))
}
// LockedQtyLT applies the LT predicate on the "locked_qty" field.
func LockedQtyLT(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldLockedQty, v))
}
// LockedQtyLTE applies the LTE predicate on the "locked_qty" field.
func LockedQtyLTE(v int) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldLockedQty, v))
}
// QualityStatusEQ applies the EQ predicate on the "quality_status" field.
func QualityStatusEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldQualityStatus, v))
}
// QualityStatusNEQ applies the NEQ predicate on the "quality_status" field.
func QualityStatusNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldQualityStatus, v))
}
// QualityStatusIn applies the In predicate on the "quality_status" field.
func QualityStatusIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldQualityStatus, vs...))
}
// QualityStatusNotIn applies the NotIn predicate on the "quality_status" field.
func QualityStatusNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldQualityStatus, vs...))
}
// QualityStatusGT applies the GT predicate on the "quality_status" field.
func QualityStatusGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldQualityStatus, v))
}
// QualityStatusGTE applies the GTE predicate on the "quality_status" field.
func QualityStatusGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldQualityStatus, v))
}
// QualityStatusLT applies the LT predicate on the "quality_status" field.
func QualityStatusLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldQualityStatus, v))
}
// QualityStatusLTE applies the LTE predicate on the "quality_status" field.
func QualityStatusLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldQualityStatus, v))
}
// QualityStatusContains applies the Contains predicate on the "quality_status" field.
func QualityStatusContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldQualityStatus, v))
}
// QualityStatusHasPrefix applies the HasPrefix predicate on the "quality_status" field.
func QualityStatusHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldQualityStatus, v))
}
// QualityStatusHasSuffix applies the HasSuffix predicate on the "quality_status" field.
func QualityStatusHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldQualityStatus, v))
}
// QualityStatusEqualFold applies the EqualFold predicate on the "quality_status" field.
func QualityStatusEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldQualityStatus, v))
}
// QualityStatusContainsFold applies the ContainsFold predicate on the "quality_status" field.
func QualityStatusContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldQualityStatus, v))
}
// ZoneCodeEQ applies the EQ predicate on the "zone_code" field.
func ZoneCodeEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldZoneCode, v))
}
// ZoneCodeNEQ applies the NEQ predicate on the "zone_code" field.
func ZoneCodeNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldZoneCode, v))
}
// ZoneCodeIn applies the In predicate on the "zone_code" field.
func ZoneCodeIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldZoneCode, vs...))
}
// ZoneCodeNotIn applies the NotIn predicate on the "zone_code" field.
func ZoneCodeNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldZoneCode, vs...))
}
// ZoneCodeGT applies the GT predicate on the "zone_code" field.
func ZoneCodeGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldZoneCode, v))
}
// ZoneCodeGTE applies the GTE predicate on the "zone_code" field.
func ZoneCodeGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldZoneCode, v))
}
// ZoneCodeLT applies the LT predicate on the "zone_code" field.
func ZoneCodeLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldZoneCode, v))
}
// ZoneCodeLTE applies the LTE predicate on the "zone_code" field.
func ZoneCodeLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldZoneCode, v))
}
// ZoneCodeContains applies the Contains predicate on the "zone_code" field.
func ZoneCodeContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldZoneCode, v))
}
// ZoneCodeHasPrefix applies the HasPrefix predicate on the "zone_code" field.
func ZoneCodeHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldZoneCode, v))
}
// ZoneCodeHasSuffix applies the HasSuffix predicate on the "zone_code" field.
func ZoneCodeHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldZoneCode, v))
}
// ZoneCodeIsNil applies the IsNil predicate on the "zone_code" field.
func ZoneCodeIsNil() predicate.Inventory {
return predicate.Inventory(sql.FieldIsNull(FieldZoneCode))
}
// ZoneCodeNotNil applies the NotNil predicate on the "zone_code" field.
func ZoneCodeNotNil() predicate.Inventory {
return predicate.Inventory(sql.FieldNotNull(FieldZoneCode))
}
// ZoneCodeEqualFold applies the EqualFold predicate on the "zone_code" field.
func ZoneCodeEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldZoneCode, v))
}
// ZoneCodeContainsFold applies the ContainsFold predicate on the "zone_code" field.
func ZoneCodeContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldZoneCode, v))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldStatus, v))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldStatus, v))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldStatus, v))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldStatus, v))
}
// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldStatus, v))
}
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldStatus, v))
}
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldStatus, v))
}
// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldStatus, v))
}
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldStatus, v))
}
// ProductionDateEQ applies the EQ predicate on the "production_date" field.
func ProductionDateEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldProductionDate, v))
}
// ProductionDateNEQ applies the NEQ predicate on the "production_date" field.
func ProductionDateNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldProductionDate, v))
}
// ProductionDateIn applies the In predicate on the "production_date" field.
func ProductionDateIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldProductionDate, vs...))
}
// ProductionDateNotIn applies the NotIn predicate on the "production_date" field.
func ProductionDateNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldProductionDate, vs...))
}
// ProductionDateGT applies the GT predicate on the "production_date" field.
func ProductionDateGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldProductionDate, v))
}
// ProductionDateGTE applies the GTE predicate on the "production_date" field.
func ProductionDateGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldProductionDate, v))
}
// ProductionDateLT applies the LT predicate on the "production_date" field.
func ProductionDateLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldProductionDate, v))
}
// ProductionDateLTE applies the LTE predicate on the "production_date" field.
func ProductionDateLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldProductionDate, v))
}
// ProductionDateContains applies the Contains predicate on the "production_date" field.
func ProductionDateContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldProductionDate, v))
}
// ProductionDateHasPrefix applies the HasPrefix predicate on the "production_date" field.
func ProductionDateHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldProductionDate, v))
}
// ProductionDateHasSuffix applies the HasSuffix predicate on the "production_date" field.
func ProductionDateHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldProductionDate, v))
}
// ProductionDateIsNil applies the IsNil predicate on the "production_date" field.
func ProductionDateIsNil() predicate.Inventory {
return predicate.Inventory(sql.FieldIsNull(FieldProductionDate))
}
// ProductionDateNotNil applies the NotNil predicate on the "production_date" field.
func ProductionDateNotNil() predicate.Inventory {
return predicate.Inventory(sql.FieldNotNull(FieldProductionDate))
}
// ProductionDateEqualFold applies the EqualFold predicate on the "production_date" field.
func ProductionDateEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldProductionDate, v))
}
// ProductionDateContainsFold applies the ContainsFold predicate on the "production_date" field.
func ProductionDateContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldProductionDate, v))
}
// SupplierEQ applies the EQ predicate on the "supplier" field.
func SupplierEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldSupplier, v))
}
// SupplierNEQ applies the NEQ predicate on the "supplier" field.
func SupplierNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldSupplier, v))
}
// SupplierIn applies the In predicate on the "supplier" field.
func SupplierIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldSupplier, vs...))
}
// SupplierNotIn applies the NotIn predicate on the "supplier" field.
func SupplierNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldSupplier, vs...))
}
// SupplierGT applies the GT predicate on the "supplier" field.
func SupplierGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldSupplier, v))
}
// SupplierGTE applies the GTE predicate on the "supplier" field.
func SupplierGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldSupplier, v))
}
// SupplierLT applies the LT predicate on the "supplier" field.
func SupplierLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldSupplier, v))
}
// SupplierLTE applies the LTE predicate on the "supplier" field.
func SupplierLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldSupplier, v))
}
// SupplierContains applies the Contains predicate on the "supplier" field.
func SupplierContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldSupplier, v))
}
// SupplierHasPrefix applies the HasPrefix predicate on the "supplier" field.
func SupplierHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldSupplier, v))
}
// SupplierHasSuffix applies the HasSuffix predicate on the "supplier" field.
func SupplierHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldSupplier, v))
}
// SupplierIsNil applies the IsNil predicate on the "supplier" field.
func SupplierIsNil() predicate.Inventory {
return predicate.Inventory(sql.FieldIsNull(FieldSupplier))
}
// SupplierNotNil applies the NotNil predicate on the "supplier" field.
func SupplierNotNil() predicate.Inventory {
return predicate.Inventory(sql.FieldNotNull(FieldSupplier))
}
// SupplierEqualFold applies the EqualFold predicate on the "supplier" field.
func SupplierEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldSupplier, v))
}
// SupplierContainsFold applies the ContainsFold predicate on the "supplier" field.
func SupplierContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldSupplier, v))
}
// InboundNoEQ applies the EQ predicate on the "inbound_no" field.
func InboundNoEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldInboundNo, v))
}
// InboundNoNEQ applies the NEQ predicate on the "inbound_no" field.
func InboundNoNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldInboundNo, v))
}
// InboundNoIn applies the In predicate on the "inbound_no" field.
func InboundNoIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldInboundNo, vs...))
}
// InboundNoNotIn applies the NotIn predicate on the "inbound_no" field.
func InboundNoNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldInboundNo, vs...))
}
// InboundNoGT applies the GT predicate on the "inbound_no" field.
func InboundNoGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldInboundNo, v))
}
// InboundNoGTE applies the GTE predicate on the "inbound_no" field.
func InboundNoGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldInboundNo, v))
}
// InboundNoLT applies the LT predicate on the "inbound_no" field.
func InboundNoLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldInboundNo, v))
}
// InboundNoLTE applies the LTE predicate on the "inbound_no" field.
func InboundNoLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldInboundNo, v))
}
// InboundNoContains applies the Contains predicate on the "inbound_no" field.
func InboundNoContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldInboundNo, v))
}
// InboundNoHasPrefix applies the HasPrefix predicate on the "inbound_no" field.
func InboundNoHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldInboundNo, v))
}
// InboundNoHasSuffix applies the HasSuffix predicate on the "inbound_no" field.
func InboundNoHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldInboundNo, v))
}
// InboundNoIsNil applies the IsNil predicate on the "inbound_no" field.
func InboundNoIsNil() predicate.Inventory {
return predicate.Inventory(sql.FieldIsNull(FieldInboundNo))
}
// InboundNoNotNil applies the NotNil predicate on the "inbound_no" field.
func InboundNoNotNil() predicate.Inventory {
return predicate.Inventory(sql.FieldNotNull(FieldInboundNo))
}
// InboundNoEqualFold applies the EqualFold predicate on the "inbound_no" field.
func InboundNoEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldInboundNo, v))
}
// InboundNoContainsFold applies the ContainsFold predicate on the "inbound_no" field.
func InboundNoContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldInboundNo, v))
}
// RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldRemark, v))
}
// RemarkNEQ applies the NEQ predicate on the "remark" field.
func RemarkNEQ(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldRemark, v))
}
// RemarkIn applies the In predicate on the "remark" field.
func RemarkIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldRemark, vs...))
}
// RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotIn(vs ...string) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldRemark, vs...))
}
// RemarkGT applies the GT predicate on the "remark" field.
func RemarkGT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldRemark, v))
}
// RemarkGTE applies the GTE predicate on the "remark" field.
func RemarkGTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldRemark, v))
}
// RemarkLT applies the LT predicate on the "remark" field.
func RemarkLT(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldRemark, v))
}
// RemarkLTE applies the LTE predicate on the "remark" field.
func RemarkLTE(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldRemark, v))
}
// RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContains(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContains(FieldRemark, v))
}
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasPrefix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasPrefix(FieldRemark, v))
}
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkHasSuffix(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldHasSuffix(FieldRemark, v))
}
// RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkIsNil() predicate.Inventory {
return predicate.Inventory(sql.FieldIsNull(FieldRemark))
}
// RemarkNotNil applies the NotNil predicate on the "remark" field.
func RemarkNotNil() predicate.Inventory {
return predicate.Inventory(sql.FieldNotNull(FieldRemark))
}
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkEqualFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldEqualFold(FieldRemark, v))
}
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkContainsFold(v string) predicate.Inventory {
return predicate.Inventory(sql.FieldContainsFold(FieldRemark, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...int64) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...int64) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...int64) predicate.Inventory {
return predicate.Inventory(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...int64) predicate.Inventory {
return predicate.Inventory(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v int64) predicate.Inventory {
return predicate.Inventory(sql.FieldLTE(FieldUpdatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Inventory) predicate.Inventory {
return predicate.Inventory(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Inventory) predicate.Inventory {
return predicate.Inventory(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Inventory) predicate.Inventory {
return predicate.Inventory(sql.NotPredicates(p))
}