|
@@ -95,7 +95,7 @@ func AfterNumber(v float64) predicate.CreditUsage {
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethod applies equality check predicate on the "pay_method" field. It's identical to PayMethodEQ.
|
|
// PayMethod applies equality check predicate on the "pay_method" field. It's identical to PayMethodEQ.
|
|
-func PayMethod(v string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethod(v int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldEQ(FieldPayMethod, v))
|
|
return predicate.CreditUsage(sql.FieldEQ(FieldPayMethod, v))
|
|
}
|
|
}
|
|
|
|
|
|
@@ -525,60 +525,45 @@ func AfterNumberNotNil() predicate.CreditUsage {
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethodEQ applies the EQ predicate on the "pay_method" field.
|
|
// PayMethodEQ applies the EQ predicate on the "pay_method" field.
|
|
-func PayMethodEQ(v string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethodEQ(v int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldEQ(FieldPayMethod, v))
|
|
return predicate.CreditUsage(sql.FieldEQ(FieldPayMethod, v))
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethodNEQ applies the NEQ predicate on the "pay_method" field.
|
|
// PayMethodNEQ applies the NEQ predicate on the "pay_method" field.
|
|
-func PayMethodNEQ(v string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethodNEQ(v int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldNEQ(FieldPayMethod, v))
|
|
return predicate.CreditUsage(sql.FieldNEQ(FieldPayMethod, v))
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethodIn applies the In predicate on the "pay_method" field.
|
|
// PayMethodIn applies the In predicate on the "pay_method" field.
|
|
-func PayMethodIn(vs ...string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethodIn(vs ...int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldIn(FieldPayMethod, vs...))
|
|
return predicate.CreditUsage(sql.FieldIn(FieldPayMethod, vs...))
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethodNotIn applies the NotIn predicate on the "pay_method" field.
|
|
// PayMethodNotIn applies the NotIn predicate on the "pay_method" field.
|
|
-func PayMethodNotIn(vs ...string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethodNotIn(vs ...int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldNotIn(FieldPayMethod, vs...))
|
|
return predicate.CreditUsage(sql.FieldNotIn(FieldPayMethod, vs...))
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethodGT applies the GT predicate on the "pay_method" field.
|
|
// PayMethodGT applies the GT predicate on the "pay_method" field.
|
|
-func PayMethodGT(v string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethodGT(v int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldGT(FieldPayMethod, v))
|
|
return predicate.CreditUsage(sql.FieldGT(FieldPayMethod, v))
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethodGTE applies the GTE predicate on the "pay_method" field.
|
|
// PayMethodGTE applies the GTE predicate on the "pay_method" field.
|
|
-func PayMethodGTE(v string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethodGTE(v int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldGTE(FieldPayMethod, v))
|
|
return predicate.CreditUsage(sql.FieldGTE(FieldPayMethod, v))
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethodLT applies the LT predicate on the "pay_method" field.
|
|
// PayMethodLT applies the LT predicate on the "pay_method" field.
|
|
-func PayMethodLT(v string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethodLT(v int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldLT(FieldPayMethod, v))
|
|
return predicate.CreditUsage(sql.FieldLT(FieldPayMethod, v))
|
|
}
|
|
}
|
|
|
|
|
|
// PayMethodLTE applies the LTE predicate on the "pay_method" field.
|
|
// PayMethodLTE applies the LTE predicate on the "pay_method" field.
|
|
-func PayMethodLTE(v string) predicate.CreditUsage {
|
|
|
|
|
|
+func PayMethodLTE(v int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldLTE(FieldPayMethod, v))
|
|
return predicate.CreditUsage(sql.FieldLTE(FieldPayMethod, v))
|
|
}
|
|
}
|
|
|
|
|
|
-// PayMethodContains applies the Contains predicate on the "pay_method" field.
|
|
|
|
-func PayMethodContains(v string) predicate.CreditUsage {
|
|
|
|
- return predicate.CreditUsage(sql.FieldContains(FieldPayMethod, v))
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-// PayMethodHasPrefix applies the HasPrefix predicate on the "pay_method" field.
|
|
|
|
-func PayMethodHasPrefix(v string) predicate.CreditUsage {
|
|
|
|
- return predicate.CreditUsage(sql.FieldHasPrefix(FieldPayMethod, v))
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-// PayMethodHasSuffix applies the HasSuffix predicate on the "pay_method" field.
|
|
|
|
-func PayMethodHasSuffix(v string) predicate.CreditUsage {
|
|
|
|
- return predicate.CreditUsage(sql.FieldHasSuffix(FieldPayMethod, v))
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// PayMethodIsNil applies the IsNil predicate on the "pay_method" field.
|
|
// PayMethodIsNil applies the IsNil predicate on the "pay_method" field.
|
|
func PayMethodIsNil() predicate.CreditUsage {
|
|
func PayMethodIsNil() predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldIsNull(FieldPayMethod))
|
|
return predicate.CreditUsage(sql.FieldIsNull(FieldPayMethod))
|
|
@@ -589,16 +574,6 @@ func PayMethodNotNil() predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldNotNull(FieldPayMethod))
|
|
return predicate.CreditUsage(sql.FieldNotNull(FieldPayMethod))
|
|
}
|
|
}
|
|
|
|
|
|
-// PayMethodEqualFold applies the EqualFold predicate on the "pay_method" field.
|
|
|
|
-func PayMethodEqualFold(v string) predicate.CreditUsage {
|
|
|
|
- return predicate.CreditUsage(sql.FieldEqualFold(FieldPayMethod, v))
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-// PayMethodContainsFold applies the ContainsFold predicate on the "pay_method" field.
|
|
|
|
-func PayMethodContainsFold(v string) predicate.CreditUsage {
|
|
|
|
- return predicate.CreditUsage(sql.FieldContainsFold(FieldPayMethod, v))
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v int) predicate.CreditUsage {
|
|
func StatusEQ(v int) predicate.CreditUsage {
|
|
return predicate.CreditUsage(sql.FieldEQ(FieldStatus, v))
|
|
return predicate.CreditUsage(sql.FieldEQ(FieldStatus, v))
|