- MES(B): 工单/BOM/备料/工序字典/PLC下发/拧紧/扫码报工/半成品/AGV/追溯逻辑,WMS与海康RCS客户端,看板Redis缓存API(概览/设备/进度/报警/趋势)+SSE - WMS(C): JWT滑动续签、Excel导入、盘点、内部API、种子数据、独立Postgres配置 - WMS客户端(E): Go网关8891反向代理+内嵌Vue3十页 - 工位终端(D): SQLite本地缓存+模拟拧紧源+内嵌Vue3页面 - Dashboard(A): 看板数据改接MES内部缓存API,SSE实时刷新+vite代理 - 清理各项目球形磨遗留代码,新增部署手册.md
635 lines
24 KiB
Go
635 lines
24 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))
|
|
}
|
|
|
|
// 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))
|
|
}
|
|
|
|
// 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))
|
|
}
|