- 在main.go中添加定时任务每10分钟同步可生产数量到WMS系统 - 为BomItem实体添加relatedStandard字段及相关CRUD方法 - 为InspectionRecord实体添加reportNo、materialCode、materialName等字段 - 更新ent schema确保新字段的验证和默认值设置 - 添加必要的数据库迁移和字段映射逻辑
875 lines
33 KiB
Go
875 lines
33 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package stocktakeitem
|
|
|
|
import (
|
|
"bj_power_wms/ent/predicate"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// StocktakeNo applies equality check predicate on the "stocktake_no" field. It's identical to StocktakeNoEQ.
|
|
func StocktakeNo(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// TargetType applies equality check predicate on the "target_type" field. It's identical to TargetTypeEQ.
|
|
func TargetType(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetID applies equality check predicate on the "target_id" field. It's identical to TargetIDEQ.
|
|
func TargetID(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldTargetID, v))
|
|
}
|
|
|
|
// MaterialCode applies equality check predicate on the "material_code" field. It's identical to MaterialCodeEQ.
|
|
func MaterialCode(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldMaterialCode, v))
|
|
}
|
|
|
|
// ZoneCode applies equality check predicate on the "zone_code" field. It's identical to ZoneCodeEQ.
|
|
func ZoneCode(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldZoneCode, v))
|
|
}
|
|
|
|
// ShelfNo applies equality check predicate on the "shelf_no" field. It's identical to ShelfNoEQ.
|
|
func ShelfNo(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldShelfNo, v))
|
|
}
|
|
|
|
// LayerNo applies equality check predicate on the "layer_no" field. It's identical to LayerNoEQ.
|
|
func LayerNo(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldLayerNo, v))
|
|
}
|
|
|
|
// PositionNo applies equality check predicate on the "position_no" field. It's identical to PositionNoEQ.
|
|
func PositionNo(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldPositionNo, v))
|
|
}
|
|
|
|
// BookQty applies equality check predicate on the "book_qty" field. It's identical to BookQtyEQ.
|
|
func BookQty(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldBookQty, v))
|
|
}
|
|
|
|
// ScannedQty applies equality check predicate on the "scanned_qty" field. It's identical to ScannedQtyEQ.
|
|
func ScannedQty(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldScannedQty, v))
|
|
}
|
|
|
|
// DiffQty applies equality check predicate on the "diff_qty" field. It's identical to DiffQtyEQ.
|
|
func DiffQty(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldDiffQty, v))
|
|
}
|
|
|
|
// Counted applies equality check predicate on the "counted" field. It's identical to CountedEQ.
|
|
func Counted(v bool) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldCounted, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// StocktakeNoEQ applies the EQ predicate on the "stocktake_no" field.
|
|
func StocktakeNoEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoNEQ applies the NEQ predicate on the "stocktake_no" field.
|
|
func StocktakeNoNEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoIn applies the In predicate on the "stocktake_no" field.
|
|
func StocktakeNoIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldStocktakeNo, vs...))
|
|
}
|
|
|
|
// StocktakeNoNotIn applies the NotIn predicate on the "stocktake_no" field.
|
|
func StocktakeNoNotIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldStocktakeNo, vs...))
|
|
}
|
|
|
|
// StocktakeNoGT applies the GT predicate on the "stocktake_no" field.
|
|
func StocktakeNoGT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoGTE applies the GTE predicate on the "stocktake_no" field.
|
|
func StocktakeNoGTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoLT applies the LT predicate on the "stocktake_no" field.
|
|
func StocktakeNoLT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoLTE applies the LTE predicate on the "stocktake_no" field.
|
|
func StocktakeNoLTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoContains applies the Contains predicate on the "stocktake_no" field.
|
|
func StocktakeNoContains(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContains(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoHasPrefix applies the HasPrefix predicate on the "stocktake_no" field.
|
|
func StocktakeNoHasPrefix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasPrefix(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoHasSuffix applies the HasSuffix predicate on the "stocktake_no" field.
|
|
func StocktakeNoHasSuffix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasSuffix(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoEqualFold applies the EqualFold predicate on the "stocktake_no" field.
|
|
func StocktakeNoEqualFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEqualFold(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// StocktakeNoContainsFold applies the ContainsFold predicate on the "stocktake_no" field.
|
|
func StocktakeNoContainsFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContainsFold(FieldStocktakeNo, v))
|
|
}
|
|
|
|
// TargetTypeEQ applies the EQ predicate on the "target_type" field.
|
|
func TargetTypeEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeNEQ applies the NEQ predicate on the "target_type" field.
|
|
func TargetTypeNEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeIn applies the In predicate on the "target_type" field.
|
|
func TargetTypeIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldTargetType, vs...))
|
|
}
|
|
|
|
// TargetTypeNotIn applies the NotIn predicate on the "target_type" field.
|
|
func TargetTypeNotIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldTargetType, vs...))
|
|
}
|
|
|
|
// TargetTypeGT applies the GT predicate on the "target_type" field.
|
|
func TargetTypeGT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeGTE applies the GTE predicate on the "target_type" field.
|
|
func TargetTypeGTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeLT applies the LT predicate on the "target_type" field.
|
|
func TargetTypeLT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeLTE applies the LTE predicate on the "target_type" field.
|
|
func TargetTypeLTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeContains applies the Contains predicate on the "target_type" field.
|
|
func TargetTypeContains(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContains(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeHasPrefix applies the HasPrefix predicate on the "target_type" field.
|
|
func TargetTypeHasPrefix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasPrefix(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeHasSuffix applies the HasSuffix predicate on the "target_type" field.
|
|
func TargetTypeHasSuffix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasSuffix(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeEqualFold applies the EqualFold predicate on the "target_type" field.
|
|
func TargetTypeEqualFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEqualFold(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetTypeContainsFold applies the ContainsFold predicate on the "target_type" field.
|
|
func TargetTypeContainsFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContainsFold(FieldTargetType, v))
|
|
}
|
|
|
|
// TargetIDEQ applies the EQ predicate on the "target_id" field.
|
|
func TargetIDEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDNEQ applies the NEQ predicate on the "target_id" field.
|
|
func TargetIDNEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDIn applies the In predicate on the "target_id" field.
|
|
func TargetIDIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldTargetID, vs...))
|
|
}
|
|
|
|
// TargetIDNotIn applies the NotIn predicate on the "target_id" field.
|
|
func TargetIDNotIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldTargetID, vs...))
|
|
}
|
|
|
|
// TargetIDGT applies the GT predicate on the "target_id" field.
|
|
func TargetIDGT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDGTE applies the GTE predicate on the "target_id" field.
|
|
func TargetIDGTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDLT applies the LT predicate on the "target_id" field.
|
|
func TargetIDLT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDLTE applies the LTE predicate on the "target_id" field.
|
|
func TargetIDLTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDContains applies the Contains predicate on the "target_id" field.
|
|
func TargetIDContains(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContains(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDHasPrefix applies the HasPrefix predicate on the "target_id" field.
|
|
func TargetIDHasPrefix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasPrefix(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDHasSuffix applies the HasSuffix predicate on the "target_id" field.
|
|
func TargetIDHasSuffix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasSuffix(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDEqualFold applies the EqualFold predicate on the "target_id" field.
|
|
func TargetIDEqualFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEqualFold(FieldTargetID, v))
|
|
}
|
|
|
|
// TargetIDContainsFold applies the ContainsFold predicate on the "target_id" field.
|
|
func TargetIDContainsFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContainsFold(FieldTargetID, v))
|
|
}
|
|
|
|
// MaterialCodeEQ applies the EQ predicate on the "material_code" field.
|
|
func MaterialCodeEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeNEQ applies the NEQ predicate on the "material_code" field.
|
|
func MaterialCodeNEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeIn applies the In predicate on the "material_code" field.
|
|
func MaterialCodeIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldMaterialCode, vs...))
|
|
}
|
|
|
|
// MaterialCodeNotIn applies the NotIn predicate on the "material_code" field.
|
|
func MaterialCodeNotIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldMaterialCode, vs...))
|
|
}
|
|
|
|
// MaterialCodeGT applies the GT predicate on the "material_code" field.
|
|
func MaterialCodeGT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeGTE applies the GTE predicate on the "material_code" field.
|
|
func MaterialCodeGTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeLT applies the LT predicate on the "material_code" field.
|
|
func MaterialCodeLT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeLTE applies the LTE predicate on the "material_code" field.
|
|
func MaterialCodeLTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeContains applies the Contains predicate on the "material_code" field.
|
|
func MaterialCodeContains(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContains(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "material_code" field.
|
|
func MaterialCodeHasPrefix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasPrefix(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "material_code" field.
|
|
func MaterialCodeHasSuffix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasSuffix(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeIsNil applies the IsNil predicate on the "material_code" field.
|
|
func MaterialCodeIsNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIsNull(FieldMaterialCode))
|
|
}
|
|
|
|
// MaterialCodeNotNil applies the NotNil predicate on the "material_code" field.
|
|
func MaterialCodeNotNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotNull(FieldMaterialCode))
|
|
}
|
|
|
|
// MaterialCodeEqualFold applies the EqualFold predicate on the "material_code" field.
|
|
func MaterialCodeEqualFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEqualFold(FieldMaterialCode, v))
|
|
}
|
|
|
|
// MaterialCodeContainsFold applies the ContainsFold predicate on the "material_code" field.
|
|
func MaterialCodeContainsFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContainsFold(FieldMaterialCode, v))
|
|
}
|
|
|
|
// ZoneCodeEQ applies the EQ predicate on the "zone_code" field.
|
|
func ZoneCodeEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeNEQ applies the NEQ predicate on the "zone_code" field.
|
|
func ZoneCodeNEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeIn applies the In predicate on the "zone_code" field.
|
|
func ZoneCodeIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldZoneCode, vs...))
|
|
}
|
|
|
|
// ZoneCodeNotIn applies the NotIn predicate on the "zone_code" field.
|
|
func ZoneCodeNotIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldZoneCode, vs...))
|
|
}
|
|
|
|
// ZoneCodeGT applies the GT predicate on the "zone_code" field.
|
|
func ZoneCodeGT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeGTE applies the GTE predicate on the "zone_code" field.
|
|
func ZoneCodeGTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeLT applies the LT predicate on the "zone_code" field.
|
|
func ZoneCodeLT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeLTE applies the LTE predicate on the "zone_code" field.
|
|
func ZoneCodeLTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeContains applies the Contains predicate on the "zone_code" field.
|
|
func ZoneCodeContains(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContains(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeHasPrefix applies the HasPrefix predicate on the "zone_code" field.
|
|
func ZoneCodeHasPrefix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasPrefix(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeHasSuffix applies the HasSuffix predicate on the "zone_code" field.
|
|
func ZoneCodeHasSuffix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasSuffix(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeIsNil applies the IsNil predicate on the "zone_code" field.
|
|
func ZoneCodeIsNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIsNull(FieldZoneCode))
|
|
}
|
|
|
|
// ZoneCodeNotNil applies the NotNil predicate on the "zone_code" field.
|
|
func ZoneCodeNotNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotNull(FieldZoneCode))
|
|
}
|
|
|
|
// ZoneCodeEqualFold applies the EqualFold predicate on the "zone_code" field.
|
|
func ZoneCodeEqualFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEqualFold(FieldZoneCode, v))
|
|
}
|
|
|
|
// ZoneCodeContainsFold applies the ContainsFold predicate on the "zone_code" field.
|
|
func ZoneCodeContainsFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContainsFold(FieldZoneCode, v))
|
|
}
|
|
|
|
// ShelfNoEQ applies the EQ predicate on the "shelf_no" field.
|
|
func ShelfNoEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoNEQ applies the NEQ predicate on the "shelf_no" field.
|
|
func ShelfNoNEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoIn applies the In predicate on the "shelf_no" field.
|
|
func ShelfNoIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldShelfNo, vs...))
|
|
}
|
|
|
|
// ShelfNoNotIn applies the NotIn predicate on the "shelf_no" field.
|
|
func ShelfNoNotIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldShelfNo, vs...))
|
|
}
|
|
|
|
// ShelfNoGT applies the GT predicate on the "shelf_no" field.
|
|
func ShelfNoGT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoGTE applies the GTE predicate on the "shelf_no" field.
|
|
func ShelfNoGTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoLT applies the LT predicate on the "shelf_no" field.
|
|
func ShelfNoLT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoLTE applies the LTE predicate on the "shelf_no" field.
|
|
func ShelfNoLTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoContains applies the Contains predicate on the "shelf_no" field.
|
|
func ShelfNoContains(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContains(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoHasPrefix applies the HasPrefix predicate on the "shelf_no" field.
|
|
func ShelfNoHasPrefix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasPrefix(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoHasSuffix applies the HasSuffix predicate on the "shelf_no" field.
|
|
func ShelfNoHasSuffix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasSuffix(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoIsNil applies the IsNil predicate on the "shelf_no" field.
|
|
func ShelfNoIsNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIsNull(FieldShelfNo))
|
|
}
|
|
|
|
// ShelfNoNotNil applies the NotNil predicate on the "shelf_no" field.
|
|
func ShelfNoNotNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotNull(FieldShelfNo))
|
|
}
|
|
|
|
// ShelfNoEqualFold applies the EqualFold predicate on the "shelf_no" field.
|
|
func ShelfNoEqualFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEqualFold(FieldShelfNo, v))
|
|
}
|
|
|
|
// ShelfNoContainsFold applies the ContainsFold predicate on the "shelf_no" field.
|
|
func ShelfNoContainsFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContainsFold(FieldShelfNo, v))
|
|
}
|
|
|
|
// LayerNoEQ applies the EQ predicate on the "layer_no" field.
|
|
func LayerNoEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoNEQ applies the NEQ predicate on the "layer_no" field.
|
|
func LayerNoNEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoIn applies the In predicate on the "layer_no" field.
|
|
func LayerNoIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldLayerNo, vs...))
|
|
}
|
|
|
|
// LayerNoNotIn applies the NotIn predicate on the "layer_no" field.
|
|
func LayerNoNotIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldLayerNo, vs...))
|
|
}
|
|
|
|
// LayerNoGT applies the GT predicate on the "layer_no" field.
|
|
func LayerNoGT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoGTE applies the GTE predicate on the "layer_no" field.
|
|
func LayerNoGTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoLT applies the LT predicate on the "layer_no" field.
|
|
func LayerNoLT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoLTE applies the LTE predicate on the "layer_no" field.
|
|
func LayerNoLTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoContains applies the Contains predicate on the "layer_no" field.
|
|
func LayerNoContains(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContains(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoHasPrefix applies the HasPrefix predicate on the "layer_no" field.
|
|
func LayerNoHasPrefix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasPrefix(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoHasSuffix applies the HasSuffix predicate on the "layer_no" field.
|
|
func LayerNoHasSuffix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasSuffix(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoIsNil applies the IsNil predicate on the "layer_no" field.
|
|
func LayerNoIsNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIsNull(FieldLayerNo))
|
|
}
|
|
|
|
// LayerNoNotNil applies the NotNil predicate on the "layer_no" field.
|
|
func LayerNoNotNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotNull(FieldLayerNo))
|
|
}
|
|
|
|
// LayerNoEqualFold applies the EqualFold predicate on the "layer_no" field.
|
|
func LayerNoEqualFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEqualFold(FieldLayerNo, v))
|
|
}
|
|
|
|
// LayerNoContainsFold applies the ContainsFold predicate on the "layer_no" field.
|
|
func LayerNoContainsFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContainsFold(FieldLayerNo, v))
|
|
}
|
|
|
|
// PositionNoEQ applies the EQ predicate on the "position_no" field.
|
|
func PositionNoEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoNEQ applies the NEQ predicate on the "position_no" field.
|
|
func PositionNoNEQ(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoIn applies the In predicate on the "position_no" field.
|
|
func PositionNoIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldPositionNo, vs...))
|
|
}
|
|
|
|
// PositionNoNotIn applies the NotIn predicate on the "position_no" field.
|
|
func PositionNoNotIn(vs ...string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldPositionNo, vs...))
|
|
}
|
|
|
|
// PositionNoGT applies the GT predicate on the "position_no" field.
|
|
func PositionNoGT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoGTE applies the GTE predicate on the "position_no" field.
|
|
func PositionNoGTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoLT applies the LT predicate on the "position_no" field.
|
|
func PositionNoLT(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoLTE applies the LTE predicate on the "position_no" field.
|
|
func PositionNoLTE(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoContains applies the Contains predicate on the "position_no" field.
|
|
func PositionNoContains(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContains(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoHasPrefix applies the HasPrefix predicate on the "position_no" field.
|
|
func PositionNoHasPrefix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasPrefix(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoHasSuffix applies the HasSuffix predicate on the "position_no" field.
|
|
func PositionNoHasSuffix(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldHasSuffix(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoIsNil applies the IsNil predicate on the "position_no" field.
|
|
func PositionNoIsNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIsNull(FieldPositionNo))
|
|
}
|
|
|
|
// PositionNoNotNil applies the NotNil predicate on the "position_no" field.
|
|
func PositionNoNotNil() predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotNull(FieldPositionNo))
|
|
}
|
|
|
|
// PositionNoEqualFold applies the EqualFold predicate on the "position_no" field.
|
|
func PositionNoEqualFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEqualFold(FieldPositionNo, v))
|
|
}
|
|
|
|
// PositionNoContainsFold applies the ContainsFold predicate on the "position_no" field.
|
|
func PositionNoContainsFold(v string) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldContainsFold(FieldPositionNo, v))
|
|
}
|
|
|
|
// BookQtyEQ applies the EQ predicate on the "book_qty" field.
|
|
func BookQtyEQ(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldBookQty, v))
|
|
}
|
|
|
|
// BookQtyNEQ applies the NEQ predicate on the "book_qty" field.
|
|
func BookQtyNEQ(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldBookQty, v))
|
|
}
|
|
|
|
// BookQtyIn applies the In predicate on the "book_qty" field.
|
|
func BookQtyIn(vs ...int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldBookQty, vs...))
|
|
}
|
|
|
|
// BookQtyNotIn applies the NotIn predicate on the "book_qty" field.
|
|
func BookQtyNotIn(vs ...int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldBookQty, vs...))
|
|
}
|
|
|
|
// BookQtyGT applies the GT predicate on the "book_qty" field.
|
|
func BookQtyGT(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldBookQty, v))
|
|
}
|
|
|
|
// BookQtyGTE applies the GTE predicate on the "book_qty" field.
|
|
func BookQtyGTE(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldBookQty, v))
|
|
}
|
|
|
|
// BookQtyLT applies the LT predicate on the "book_qty" field.
|
|
func BookQtyLT(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldBookQty, v))
|
|
}
|
|
|
|
// BookQtyLTE applies the LTE predicate on the "book_qty" field.
|
|
func BookQtyLTE(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldBookQty, v))
|
|
}
|
|
|
|
// ScannedQtyEQ applies the EQ predicate on the "scanned_qty" field.
|
|
func ScannedQtyEQ(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldScannedQty, v))
|
|
}
|
|
|
|
// ScannedQtyNEQ applies the NEQ predicate on the "scanned_qty" field.
|
|
func ScannedQtyNEQ(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldScannedQty, v))
|
|
}
|
|
|
|
// ScannedQtyIn applies the In predicate on the "scanned_qty" field.
|
|
func ScannedQtyIn(vs ...int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldScannedQty, vs...))
|
|
}
|
|
|
|
// ScannedQtyNotIn applies the NotIn predicate on the "scanned_qty" field.
|
|
func ScannedQtyNotIn(vs ...int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldScannedQty, vs...))
|
|
}
|
|
|
|
// ScannedQtyGT applies the GT predicate on the "scanned_qty" field.
|
|
func ScannedQtyGT(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldScannedQty, v))
|
|
}
|
|
|
|
// ScannedQtyGTE applies the GTE predicate on the "scanned_qty" field.
|
|
func ScannedQtyGTE(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldScannedQty, v))
|
|
}
|
|
|
|
// ScannedQtyLT applies the LT predicate on the "scanned_qty" field.
|
|
func ScannedQtyLT(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldScannedQty, v))
|
|
}
|
|
|
|
// ScannedQtyLTE applies the LTE predicate on the "scanned_qty" field.
|
|
func ScannedQtyLTE(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldScannedQty, v))
|
|
}
|
|
|
|
// DiffQtyEQ applies the EQ predicate on the "diff_qty" field.
|
|
func DiffQtyEQ(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldDiffQty, v))
|
|
}
|
|
|
|
// DiffQtyNEQ applies the NEQ predicate on the "diff_qty" field.
|
|
func DiffQtyNEQ(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldDiffQty, v))
|
|
}
|
|
|
|
// DiffQtyIn applies the In predicate on the "diff_qty" field.
|
|
func DiffQtyIn(vs ...int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldDiffQty, vs...))
|
|
}
|
|
|
|
// DiffQtyNotIn applies the NotIn predicate on the "diff_qty" field.
|
|
func DiffQtyNotIn(vs ...int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldDiffQty, vs...))
|
|
}
|
|
|
|
// DiffQtyGT applies the GT predicate on the "diff_qty" field.
|
|
func DiffQtyGT(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldDiffQty, v))
|
|
}
|
|
|
|
// DiffQtyGTE applies the GTE predicate on the "diff_qty" field.
|
|
func DiffQtyGTE(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldDiffQty, v))
|
|
}
|
|
|
|
// DiffQtyLT applies the LT predicate on the "diff_qty" field.
|
|
func DiffQtyLT(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldDiffQty, v))
|
|
}
|
|
|
|
// DiffQtyLTE applies the LTE predicate on the "diff_qty" field.
|
|
func DiffQtyLTE(v int) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldDiffQty, v))
|
|
}
|
|
|
|
// CountedEQ applies the EQ predicate on the "counted" field.
|
|
func CountedEQ(v bool) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldCounted, v))
|
|
}
|
|
|
|
// CountedNEQ applies the NEQ predicate on the "counted" field.
|
|
func CountedNEQ(v bool) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldCounted, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v int64) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.StocktakeItem) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.StocktakeItem) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.StocktakeItem) predicate.StocktakeItem {
|
|
return predicate.StocktakeItem(sql.NotPredicates(p))
|
|
}
|