feat(mes): 添加定时同步可生产数量到WMS及BOM项相关标准字段
- 在main.go中添加定时任务每10分钟同步可生产数量到WMS系统 - 为BomItem实体添加relatedStandard字段及相关CRUD方法 - 为InspectionRecord实体添加reportNo、materialCode、materialName等字段 - 更新ent schema确保新字段的验证和默认值设置 - 添加必要的数据库迁移和字段映射逻辑
This commit is contained in:
@@ -103,6 +103,21 @@ func ZoneCode(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ShelfNo applies equality check predicate on the "shelf_no" field. It's identical to ShelfNoEQ.
|
||||
func ShelfNo(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// LayerNo applies equality check predicate on the "layer_no" field. It's identical to LayerNoEQ.
|
||||
func LayerNo(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// PositionNo applies equality check predicate on the "position_no" field. It's identical to PositionNoEQ.
|
||||
func PositionNo(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldPositionNo, 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))
|
||||
@@ -133,6 +148,46 @@ func CompletedProcess(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// OwnershipType applies equality check predicate on the "ownership_type" field. It's identical to OwnershipTypeEQ.
|
||||
func OwnershipType(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipNo applies equality check predicate on the "ownership_no" field. It's identical to OwnershipNoEQ.
|
||||
func OwnershipNo(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// ProductStatus applies equality check predicate on the "product_status" field. It's identical to ProductStatusEQ.
|
||||
func ProductStatus(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// RelatedStandard applies equality check predicate on the "related_standard" field. It's identical to RelatedStandardEQ.
|
||||
func RelatedStandard(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// TestRecordNo applies equality check predicate on the "test_record_no" field. It's identical to TestRecordNoEQ.
|
||||
func TestRecordNo(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// RecordedBy applies equality check predicate on the "recorded_by" field. It's identical to RecordedByEQ.
|
||||
func RecordedBy(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedAt applies equality check predicate on the "recorded_at" field. It's identical to RecordedAtEQ.
|
||||
func RecordedAt(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedAt, v))
|
||||
}
|
||||
|
||||
// OutboundReason applies equality check predicate on the "outbound_reason" field. It's identical to OutboundReasonEQ.
|
||||
func OutboundReason(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldOutboundReason, 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))
|
||||
@@ -738,6 +793,231 @@ func ZoneCodeContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ShelfNoEQ applies the EQ predicate on the "shelf_no" field.
|
||||
func ShelfNoEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoNEQ applies the NEQ predicate on the "shelf_no" field.
|
||||
func ShelfNoNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoIn applies the In predicate on the "shelf_no" field.
|
||||
func ShelfNoIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldShelfNo, vs...))
|
||||
}
|
||||
|
||||
// ShelfNoNotIn applies the NotIn predicate on the "shelf_no" field.
|
||||
func ShelfNoNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldShelfNo, vs...))
|
||||
}
|
||||
|
||||
// ShelfNoGT applies the GT predicate on the "shelf_no" field.
|
||||
func ShelfNoGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoGTE applies the GTE predicate on the "shelf_no" field.
|
||||
func ShelfNoGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoLT applies the LT predicate on the "shelf_no" field.
|
||||
func ShelfNoLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoLTE applies the LTE predicate on the "shelf_no" field.
|
||||
func ShelfNoLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoContains applies the Contains predicate on the "shelf_no" field.
|
||||
func ShelfNoContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoHasPrefix applies the HasPrefix predicate on the "shelf_no" field.
|
||||
func ShelfNoHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoHasSuffix applies the HasSuffix predicate on the "shelf_no" field.
|
||||
func ShelfNoHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoIsNil applies the IsNil predicate on the "shelf_no" field.
|
||||
func ShelfNoIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldShelfNo))
|
||||
}
|
||||
|
||||
// ShelfNoNotNil applies the NotNil predicate on the "shelf_no" field.
|
||||
func ShelfNoNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldShelfNo))
|
||||
}
|
||||
|
||||
// ShelfNoEqualFold applies the EqualFold predicate on the "shelf_no" field.
|
||||
func ShelfNoEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoContainsFold applies the ContainsFold predicate on the "shelf_no" field.
|
||||
func ShelfNoContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// LayerNoEQ applies the EQ predicate on the "layer_no" field.
|
||||
func LayerNoEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoNEQ applies the NEQ predicate on the "layer_no" field.
|
||||
func LayerNoNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoIn applies the In predicate on the "layer_no" field.
|
||||
func LayerNoIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldLayerNo, vs...))
|
||||
}
|
||||
|
||||
// LayerNoNotIn applies the NotIn predicate on the "layer_no" field.
|
||||
func LayerNoNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldLayerNo, vs...))
|
||||
}
|
||||
|
||||
// LayerNoGT applies the GT predicate on the "layer_no" field.
|
||||
func LayerNoGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoGTE applies the GTE predicate on the "layer_no" field.
|
||||
func LayerNoGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoLT applies the LT predicate on the "layer_no" field.
|
||||
func LayerNoLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoLTE applies the LTE predicate on the "layer_no" field.
|
||||
func LayerNoLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoContains applies the Contains predicate on the "layer_no" field.
|
||||
func LayerNoContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoHasPrefix applies the HasPrefix predicate on the "layer_no" field.
|
||||
func LayerNoHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoHasSuffix applies the HasSuffix predicate on the "layer_no" field.
|
||||
func LayerNoHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoIsNil applies the IsNil predicate on the "layer_no" field.
|
||||
func LayerNoIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldLayerNo))
|
||||
}
|
||||
|
||||
// LayerNoNotNil applies the NotNil predicate on the "layer_no" field.
|
||||
func LayerNoNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldLayerNo))
|
||||
}
|
||||
|
||||
// LayerNoEqualFold applies the EqualFold predicate on the "layer_no" field.
|
||||
func LayerNoEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoContainsFold applies the ContainsFold predicate on the "layer_no" field.
|
||||
func LayerNoContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// PositionNoEQ applies the EQ predicate on the "position_no" field.
|
||||
func PositionNoEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoNEQ applies the NEQ predicate on the "position_no" field.
|
||||
func PositionNoNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoIn applies the In predicate on the "position_no" field.
|
||||
func PositionNoIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldPositionNo, vs...))
|
||||
}
|
||||
|
||||
// PositionNoNotIn applies the NotIn predicate on the "position_no" field.
|
||||
func PositionNoNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldPositionNo, vs...))
|
||||
}
|
||||
|
||||
// PositionNoGT applies the GT predicate on the "position_no" field.
|
||||
func PositionNoGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoGTE applies the GTE predicate on the "position_no" field.
|
||||
func PositionNoGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoLT applies the LT predicate on the "position_no" field.
|
||||
func PositionNoLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoLTE applies the LTE predicate on the "position_no" field.
|
||||
func PositionNoLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoContains applies the Contains predicate on the "position_no" field.
|
||||
func PositionNoContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoHasPrefix applies the HasPrefix predicate on the "position_no" field.
|
||||
func PositionNoHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoHasSuffix applies the HasSuffix predicate on the "position_no" field.
|
||||
func PositionNoHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoIsNil applies the IsNil predicate on the "position_no" field.
|
||||
func PositionNoIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldPositionNo))
|
||||
}
|
||||
|
||||
// PositionNoNotNil applies the NotNil predicate on the "position_no" field.
|
||||
func PositionNoNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldPositionNo))
|
||||
}
|
||||
|
||||
// PositionNoEqualFold applies the EqualFold predicate on the "position_no" field.
|
||||
func PositionNoEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoContainsFold applies the ContainsFold predicate on the "position_no" field.
|
||||
func PositionNoContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldStatus, v))
|
||||
@@ -1158,6 +1438,581 @@ func CompletedProcessContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldCompletedProcess, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeEQ applies the EQ predicate on the "ownership_type" field.
|
||||
func OwnershipTypeEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeNEQ applies the NEQ predicate on the "ownership_type" field.
|
||||
func OwnershipTypeNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeIn applies the In predicate on the "ownership_type" field.
|
||||
func OwnershipTypeIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldOwnershipType, vs...))
|
||||
}
|
||||
|
||||
// OwnershipTypeNotIn applies the NotIn predicate on the "ownership_type" field.
|
||||
func OwnershipTypeNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldOwnershipType, vs...))
|
||||
}
|
||||
|
||||
// OwnershipTypeGT applies the GT predicate on the "ownership_type" field.
|
||||
func OwnershipTypeGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeGTE applies the GTE predicate on the "ownership_type" field.
|
||||
func OwnershipTypeGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeLT applies the LT predicate on the "ownership_type" field.
|
||||
func OwnershipTypeLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeLTE applies the LTE predicate on the "ownership_type" field.
|
||||
func OwnershipTypeLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeContains applies the Contains predicate on the "ownership_type" field.
|
||||
func OwnershipTypeContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeHasPrefix applies the HasPrefix predicate on the "ownership_type" field.
|
||||
func OwnershipTypeHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeHasSuffix applies the HasSuffix predicate on the "ownership_type" field.
|
||||
func OwnershipTypeHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeIsNil applies the IsNil predicate on the "ownership_type" field.
|
||||
func OwnershipTypeIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldOwnershipType))
|
||||
}
|
||||
|
||||
// OwnershipTypeNotNil applies the NotNil predicate on the "ownership_type" field.
|
||||
func OwnershipTypeNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldOwnershipType))
|
||||
}
|
||||
|
||||
// OwnershipTypeEqualFold applies the EqualFold predicate on the "ownership_type" field.
|
||||
func OwnershipTypeEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipTypeContainsFold applies the ContainsFold predicate on the "ownership_type" field.
|
||||
func OwnershipTypeContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldOwnershipType, v))
|
||||
}
|
||||
|
||||
// OwnershipNoEQ applies the EQ predicate on the "ownership_no" field.
|
||||
func OwnershipNoEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoNEQ applies the NEQ predicate on the "ownership_no" field.
|
||||
func OwnershipNoNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoIn applies the In predicate on the "ownership_no" field.
|
||||
func OwnershipNoIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldOwnershipNo, vs...))
|
||||
}
|
||||
|
||||
// OwnershipNoNotIn applies the NotIn predicate on the "ownership_no" field.
|
||||
func OwnershipNoNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldOwnershipNo, vs...))
|
||||
}
|
||||
|
||||
// OwnershipNoGT applies the GT predicate on the "ownership_no" field.
|
||||
func OwnershipNoGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoGTE applies the GTE predicate on the "ownership_no" field.
|
||||
func OwnershipNoGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoLT applies the LT predicate on the "ownership_no" field.
|
||||
func OwnershipNoLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoLTE applies the LTE predicate on the "ownership_no" field.
|
||||
func OwnershipNoLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoContains applies the Contains predicate on the "ownership_no" field.
|
||||
func OwnershipNoContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoHasPrefix applies the HasPrefix predicate on the "ownership_no" field.
|
||||
func OwnershipNoHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoHasSuffix applies the HasSuffix predicate on the "ownership_no" field.
|
||||
func OwnershipNoHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoIsNil applies the IsNil predicate on the "ownership_no" field.
|
||||
func OwnershipNoIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldOwnershipNo))
|
||||
}
|
||||
|
||||
// OwnershipNoNotNil applies the NotNil predicate on the "ownership_no" field.
|
||||
func OwnershipNoNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldOwnershipNo))
|
||||
}
|
||||
|
||||
// OwnershipNoEqualFold applies the EqualFold predicate on the "ownership_no" field.
|
||||
func OwnershipNoEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// OwnershipNoContainsFold applies the ContainsFold predicate on the "ownership_no" field.
|
||||
func OwnershipNoContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// ProductStatusEQ applies the EQ predicate on the "product_status" field.
|
||||
func ProductStatusEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusNEQ applies the NEQ predicate on the "product_status" field.
|
||||
func ProductStatusNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusIn applies the In predicate on the "product_status" field.
|
||||
func ProductStatusIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldProductStatus, vs...))
|
||||
}
|
||||
|
||||
// ProductStatusNotIn applies the NotIn predicate on the "product_status" field.
|
||||
func ProductStatusNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldProductStatus, vs...))
|
||||
}
|
||||
|
||||
// ProductStatusGT applies the GT predicate on the "product_status" field.
|
||||
func ProductStatusGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusGTE applies the GTE predicate on the "product_status" field.
|
||||
func ProductStatusGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusLT applies the LT predicate on the "product_status" field.
|
||||
func ProductStatusLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusLTE applies the LTE predicate on the "product_status" field.
|
||||
func ProductStatusLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusContains applies the Contains predicate on the "product_status" field.
|
||||
func ProductStatusContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusHasPrefix applies the HasPrefix predicate on the "product_status" field.
|
||||
func ProductStatusHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusHasSuffix applies the HasSuffix predicate on the "product_status" field.
|
||||
func ProductStatusHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusIsNil applies the IsNil predicate on the "product_status" field.
|
||||
func ProductStatusIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldProductStatus))
|
||||
}
|
||||
|
||||
// ProductStatusNotNil applies the NotNil predicate on the "product_status" field.
|
||||
func ProductStatusNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldProductStatus))
|
||||
}
|
||||
|
||||
// ProductStatusEqualFold applies the EqualFold predicate on the "product_status" field.
|
||||
func ProductStatusEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// ProductStatusContainsFold applies the ContainsFold predicate on the "product_status" field.
|
||||
func ProductStatusContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldProductStatus, v))
|
||||
}
|
||||
|
||||
// RelatedStandardEQ applies the EQ predicate on the "related_standard" field.
|
||||
func RelatedStandardEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardNEQ applies the NEQ predicate on the "related_standard" field.
|
||||
func RelatedStandardNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardIn applies the In predicate on the "related_standard" field.
|
||||
func RelatedStandardIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldRelatedStandard, vs...))
|
||||
}
|
||||
|
||||
// RelatedStandardNotIn applies the NotIn predicate on the "related_standard" field.
|
||||
func RelatedStandardNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldRelatedStandard, vs...))
|
||||
}
|
||||
|
||||
// RelatedStandardGT applies the GT predicate on the "related_standard" field.
|
||||
func RelatedStandardGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardGTE applies the GTE predicate on the "related_standard" field.
|
||||
func RelatedStandardGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardLT applies the LT predicate on the "related_standard" field.
|
||||
func RelatedStandardLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardLTE applies the LTE predicate on the "related_standard" field.
|
||||
func RelatedStandardLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardContains applies the Contains predicate on the "related_standard" field.
|
||||
func RelatedStandardContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardHasPrefix applies the HasPrefix predicate on the "related_standard" field.
|
||||
func RelatedStandardHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardHasSuffix applies the HasSuffix predicate on the "related_standard" field.
|
||||
func RelatedStandardHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardIsNil applies the IsNil predicate on the "related_standard" field.
|
||||
func RelatedStandardIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldRelatedStandard))
|
||||
}
|
||||
|
||||
// RelatedStandardNotNil applies the NotNil predicate on the "related_standard" field.
|
||||
func RelatedStandardNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldRelatedStandard))
|
||||
}
|
||||
|
||||
// RelatedStandardEqualFold applies the EqualFold predicate on the "related_standard" field.
|
||||
func RelatedStandardEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// RelatedStandardContainsFold applies the ContainsFold predicate on the "related_standard" field.
|
||||
func RelatedStandardContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldRelatedStandard, v))
|
||||
}
|
||||
|
||||
// TestRecordNoEQ applies the EQ predicate on the "test_record_no" field.
|
||||
func TestRecordNoEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoNEQ applies the NEQ predicate on the "test_record_no" field.
|
||||
func TestRecordNoNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoIn applies the In predicate on the "test_record_no" field.
|
||||
func TestRecordNoIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldTestRecordNo, vs...))
|
||||
}
|
||||
|
||||
// TestRecordNoNotIn applies the NotIn predicate on the "test_record_no" field.
|
||||
func TestRecordNoNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldTestRecordNo, vs...))
|
||||
}
|
||||
|
||||
// TestRecordNoGT applies the GT predicate on the "test_record_no" field.
|
||||
func TestRecordNoGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoGTE applies the GTE predicate on the "test_record_no" field.
|
||||
func TestRecordNoGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoLT applies the LT predicate on the "test_record_no" field.
|
||||
func TestRecordNoLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoLTE applies the LTE predicate on the "test_record_no" field.
|
||||
func TestRecordNoLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoContains applies the Contains predicate on the "test_record_no" field.
|
||||
func TestRecordNoContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoHasPrefix applies the HasPrefix predicate on the "test_record_no" field.
|
||||
func TestRecordNoHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoHasSuffix applies the HasSuffix predicate on the "test_record_no" field.
|
||||
func TestRecordNoHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoIsNil applies the IsNil predicate on the "test_record_no" field.
|
||||
func TestRecordNoIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldTestRecordNo))
|
||||
}
|
||||
|
||||
// TestRecordNoNotNil applies the NotNil predicate on the "test_record_no" field.
|
||||
func TestRecordNoNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldTestRecordNo))
|
||||
}
|
||||
|
||||
// TestRecordNoEqualFold applies the EqualFold predicate on the "test_record_no" field.
|
||||
func TestRecordNoEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// TestRecordNoContainsFold applies the ContainsFold predicate on the "test_record_no" field.
|
||||
func TestRecordNoContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldTestRecordNo, v))
|
||||
}
|
||||
|
||||
// RecordedByEQ applies the EQ predicate on the "recorded_by" field.
|
||||
func RecordedByEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByNEQ applies the NEQ predicate on the "recorded_by" field.
|
||||
func RecordedByNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByIn applies the In predicate on the "recorded_by" field.
|
||||
func RecordedByIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldRecordedBy, vs...))
|
||||
}
|
||||
|
||||
// RecordedByNotIn applies the NotIn predicate on the "recorded_by" field.
|
||||
func RecordedByNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldRecordedBy, vs...))
|
||||
}
|
||||
|
||||
// RecordedByGT applies the GT predicate on the "recorded_by" field.
|
||||
func RecordedByGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByGTE applies the GTE predicate on the "recorded_by" field.
|
||||
func RecordedByGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByLT applies the LT predicate on the "recorded_by" field.
|
||||
func RecordedByLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByLTE applies the LTE predicate on the "recorded_by" field.
|
||||
func RecordedByLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByContains applies the Contains predicate on the "recorded_by" field.
|
||||
func RecordedByContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByHasPrefix applies the HasPrefix predicate on the "recorded_by" field.
|
||||
func RecordedByHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByHasSuffix applies the HasSuffix predicate on the "recorded_by" field.
|
||||
func RecordedByHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByIsNil applies the IsNil predicate on the "recorded_by" field.
|
||||
func RecordedByIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldRecordedBy))
|
||||
}
|
||||
|
||||
// RecordedByNotNil applies the NotNil predicate on the "recorded_by" field.
|
||||
func RecordedByNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldRecordedBy))
|
||||
}
|
||||
|
||||
// RecordedByEqualFold applies the EqualFold predicate on the "recorded_by" field.
|
||||
func RecordedByEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByContainsFold applies the ContainsFold predicate on the "recorded_by" field.
|
||||
func RecordedByContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedAtEQ applies the EQ predicate on the "recorded_at" field.
|
||||
func RecordedAtEQ(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedAt, v))
|
||||
}
|
||||
|
||||
// RecordedAtNEQ applies the NEQ predicate on the "recorded_at" field.
|
||||
func RecordedAtNEQ(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldRecordedAt, v))
|
||||
}
|
||||
|
||||
// RecordedAtIn applies the In predicate on the "recorded_at" field.
|
||||
func RecordedAtIn(vs ...int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldRecordedAt, vs...))
|
||||
}
|
||||
|
||||
// RecordedAtNotIn applies the NotIn predicate on the "recorded_at" field.
|
||||
func RecordedAtNotIn(vs ...int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldRecordedAt, vs...))
|
||||
}
|
||||
|
||||
// RecordedAtGT applies the GT predicate on the "recorded_at" field.
|
||||
func RecordedAtGT(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldRecordedAt, v))
|
||||
}
|
||||
|
||||
// RecordedAtGTE applies the GTE predicate on the "recorded_at" field.
|
||||
func RecordedAtGTE(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldRecordedAt, v))
|
||||
}
|
||||
|
||||
// RecordedAtLT applies the LT predicate on the "recorded_at" field.
|
||||
func RecordedAtLT(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldRecordedAt, v))
|
||||
}
|
||||
|
||||
// RecordedAtLTE applies the LTE predicate on the "recorded_at" field.
|
||||
func RecordedAtLTE(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldRecordedAt, v))
|
||||
}
|
||||
|
||||
// RecordedAtIsNil applies the IsNil predicate on the "recorded_at" field.
|
||||
func RecordedAtIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldRecordedAt))
|
||||
}
|
||||
|
||||
// RecordedAtNotNil applies the NotNil predicate on the "recorded_at" field.
|
||||
func RecordedAtNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldRecordedAt))
|
||||
}
|
||||
|
||||
// OutboundReasonEQ applies the EQ predicate on the "outbound_reason" field.
|
||||
func OutboundReasonEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonNEQ applies the NEQ predicate on the "outbound_reason" field.
|
||||
func OutboundReasonNEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonIn applies the In predicate on the "outbound_reason" field.
|
||||
func OutboundReasonIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldOutboundReason, vs...))
|
||||
}
|
||||
|
||||
// OutboundReasonNotIn applies the NotIn predicate on the "outbound_reason" field.
|
||||
func OutboundReasonNotIn(vs ...string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldOutboundReason, vs...))
|
||||
}
|
||||
|
||||
// OutboundReasonGT applies the GT predicate on the "outbound_reason" field.
|
||||
func OutboundReasonGT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonGTE applies the GTE predicate on the "outbound_reason" field.
|
||||
func OutboundReasonGTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonLT applies the LT predicate on the "outbound_reason" field.
|
||||
func OutboundReasonLT(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonLTE applies the LTE predicate on the "outbound_reason" field.
|
||||
func OutboundReasonLTE(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonContains applies the Contains predicate on the "outbound_reason" field.
|
||||
func OutboundReasonContains(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContains(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonHasPrefix applies the HasPrefix predicate on the "outbound_reason" field.
|
||||
func OutboundReasonHasPrefix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasPrefix(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonHasSuffix applies the HasSuffix predicate on the "outbound_reason" field.
|
||||
func OutboundReasonHasSuffix(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldHasSuffix(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonIsNil applies the IsNil predicate on the "outbound_reason" field.
|
||||
func OutboundReasonIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldOutboundReason))
|
||||
}
|
||||
|
||||
// OutboundReasonNotNil applies the NotNil predicate on the "outbound_reason" field.
|
||||
func OutboundReasonNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldOutboundReason))
|
||||
}
|
||||
|
||||
// OutboundReasonEqualFold applies the EqualFold predicate on the "outbound_reason" field.
|
||||
func OutboundReasonEqualFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEqualFold(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// OutboundReasonContainsFold applies the ContainsFold predicate on the "outbound_reason" field.
|
||||
func OutboundReasonContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldOutboundReason, v))
|
||||
}
|
||||
|
||||
// RemarkEQ applies the EQ predicate on the "remark" field.
|
||||
func RemarkEQ(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRemark, v))
|
||||
|
||||
Reference in New Issue
Block a user