feat(mes): 添加定时同步可生产数量到WMS及BOM项相关标准字段
- 在main.go中添加定时任务每10分钟同步可生产数量到WMS系统 - 为BomItem实体添加relatedStandard字段及相关CRUD方法 - 为InspectionRecord实体添加reportNo、materialCode、materialName等字段 - 更新ent schema确保新字段的验证和默认值设置 - 添加必要的数据库迁移和字段映射逻辑
This commit is contained in:
@@ -25,6 +25,12 @@ const (
|
||||
FieldBatchNo = "batch_no"
|
||||
// FieldZoneCode holds the string denoting the zone_code field in the database.
|
||||
FieldZoneCode = "zone_code"
|
||||
// FieldShelfNo holds the string denoting the shelf_no field in the database.
|
||||
FieldShelfNo = "shelf_no"
|
||||
// FieldLayerNo holds the string denoting the layer_no field in the database.
|
||||
FieldLayerNo = "layer_no"
|
||||
// FieldPositionNo holds the string denoting the position_no field in the database.
|
||||
FieldPositionNo = "position_no"
|
||||
// FieldQuantity holds the string denoting the quantity field in the database.
|
||||
FieldQuantity = "quantity"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
@@ -37,6 +43,8 @@ const (
|
||||
FieldOwnershipType = "ownership_type"
|
||||
// FieldOwnershipNo holds the string denoting the ownership_no field in the database.
|
||||
FieldOwnershipNo = "ownership_no"
|
||||
// FieldQualityStatus holds the string denoting the quality_status field in the database.
|
||||
FieldQualityStatus = "quality_status"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the inboundorder in the database.
|
||||
@@ -53,12 +61,16 @@ var Columns = []string{
|
||||
FieldManageMode,
|
||||
FieldBatchNo,
|
||||
FieldZoneCode,
|
||||
FieldShelfNo,
|
||||
FieldLayerNo,
|
||||
FieldPositionNo,
|
||||
FieldQuantity,
|
||||
FieldOperator,
|
||||
FieldRemark,
|
||||
FieldInspectionNo,
|
||||
FieldOwnershipType,
|
||||
FieldOwnershipNo,
|
||||
FieldQualityStatus,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -128,6 +140,21 @@ func ByZoneCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldZoneCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByShelfNo orders the results by the shelf_no field.
|
||||
func ByShelfNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldShelfNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLayerNo orders the results by the layer_no field.
|
||||
func ByLayerNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLayerNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPositionNo orders the results by the position_no field.
|
||||
func ByPositionNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPositionNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByQuantity orders the results by the quantity field.
|
||||
func ByQuantity(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldQuantity, opts...).ToFunc()
|
||||
@@ -158,6 +185,11 @@ func ByOwnershipNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOwnershipNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByQualityStatus orders the results by the quality_status field.
|
||||
func ByQualityStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldQualityStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
|
||||
@@ -88,6 +88,21 @@ func ZoneCode(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ShelfNo applies equality check predicate on the "shelf_no" field. It's identical to ShelfNoEQ.
|
||||
func ShelfNo(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// LayerNo applies equality check predicate on the "layer_no" field. It's identical to LayerNoEQ.
|
||||
func LayerNo(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// PositionNo applies equality check predicate on the "position_no" field. It's identical to PositionNoEQ.
|
||||
func PositionNo(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
|
||||
func Quantity(v int) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldQuantity, v))
|
||||
@@ -118,6 +133,11 @@ func OwnershipNo(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// QualityStatus applies equality check predicate on the "quality_status" field. It's identical to QualityStatusEQ.
|
||||
func QualityStatus(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldCreatedAt, v))
|
||||
@@ -583,6 +603,231 @@ func ZoneCodeContainsFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContainsFold(FieldZoneCode, v))
|
||||
}
|
||||
|
||||
// ShelfNoEQ applies the EQ predicate on the "shelf_no" field.
|
||||
func ShelfNoEQ(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoNEQ applies the NEQ predicate on the "shelf_no" field.
|
||||
func ShelfNoNEQ(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoIn applies the In predicate on the "shelf_no" field.
|
||||
func ShelfNoIn(vs ...string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldIn(FieldShelfNo, vs...))
|
||||
}
|
||||
|
||||
// ShelfNoNotIn applies the NotIn predicate on the "shelf_no" field.
|
||||
func ShelfNoNotIn(vs ...string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNotIn(FieldShelfNo, vs...))
|
||||
}
|
||||
|
||||
// ShelfNoGT applies the GT predicate on the "shelf_no" field.
|
||||
func ShelfNoGT(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldGT(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoGTE applies the GTE predicate on the "shelf_no" field.
|
||||
func ShelfNoGTE(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldGTE(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoLT applies the LT predicate on the "shelf_no" field.
|
||||
func ShelfNoLT(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldLT(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoLTE applies the LTE predicate on the "shelf_no" field.
|
||||
func ShelfNoLTE(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldLTE(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoContains applies the Contains predicate on the "shelf_no" field.
|
||||
func ShelfNoContains(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContains(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoHasPrefix applies the HasPrefix predicate on the "shelf_no" field.
|
||||
func ShelfNoHasPrefix(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldHasPrefix(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoHasSuffix applies the HasSuffix predicate on the "shelf_no" field.
|
||||
func ShelfNoHasSuffix(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldHasSuffix(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoIsNil applies the IsNil predicate on the "shelf_no" field.
|
||||
func ShelfNoIsNil() predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldIsNull(FieldShelfNo))
|
||||
}
|
||||
|
||||
// ShelfNoNotNil applies the NotNil predicate on the "shelf_no" field.
|
||||
func ShelfNoNotNil() predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNotNull(FieldShelfNo))
|
||||
}
|
||||
|
||||
// ShelfNoEqualFold applies the EqualFold predicate on the "shelf_no" field.
|
||||
func ShelfNoEqualFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEqualFold(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoContainsFold applies the ContainsFold predicate on the "shelf_no" field.
|
||||
func ShelfNoContainsFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContainsFold(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// LayerNoEQ applies the EQ predicate on the "layer_no" field.
|
||||
func LayerNoEQ(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoNEQ applies the NEQ predicate on the "layer_no" field.
|
||||
func LayerNoNEQ(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoIn applies the In predicate on the "layer_no" field.
|
||||
func LayerNoIn(vs ...string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldIn(FieldLayerNo, vs...))
|
||||
}
|
||||
|
||||
// LayerNoNotIn applies the NotIn predicate on the "layer_no" field.
|
||||
func LayerNoNotIn(vs ...string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNotIn(FieldLayerNo, vs...))
|
||||
}
|
||||
|
||||
// LayerNoGT applies the GT predicate on the "layer_no" field.
|
||||
func LayerNoGT(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldGT(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoGTE applies the GTE predicate on the "layer_no" field.
|
||||
func LayerNoGTE(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldGTE(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoLT applies the LT predicate on the "layer_no" field.
|
||||
func LayerNoLT(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldLT(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoLTE applies the LTE predicate on the "layer_no" field.
|
||||
func LayerNoLTE(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldLTE(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoContains applies the Contains predicate on the "layer_no" field.
|
||||
func LayerNoContains(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContains(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoHasPrefix applies the HasPrefix predicate on the "layer_no" field.
|
||||
func LayerNoHasPrefix(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldHasPrefix(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoHasSuffix applies the HasSuffix predicate on the "layer_no" field.
|
||||
func LayerNoHasSuffix(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldHasSuffix(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoIsNil applies the IsNil predicate on the "layer_no" field.
|
||||
func LayerNoIsNil() predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldIsNull(FieldLayerNo))
|
||||
}
|
||||
|
||||
// LayerNoNotNil applies the NotNil predicate on the "layer_no" field.
|
||||
func LayerNoNotNil() predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNotNull(FieldLayerNo))
|
||||
}
|
||||
|
||||
// LayerNoEqualFold applies the EqualFold predicate on the "layer_no" field.
|
||||
func LayerNoEqualFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEqualFold(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoContainsFold applies the ContainsFold predicate on the "layer_no" field.
|
||||
func LayerNoContainsFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContainsFold(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// PositionNoEQ applies the EQ predicate on the "position_no" field.
|
||||
func PositionNoEQ(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoNEQ applies the NEQ predicate on the "position_no" field.
|
||||
func PositionNoNEQ(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoIn applies the In predicate on the "position_no" field.
|
||||
func PositionNoIn(vs ...string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldIn(FieldPositionNo, vs...))
|
||||
}
|
||||
|
||||
// PositionNoNotIn applies the NotIn predicate on the "position_no" field.
|
||||
func PositionNoNotIn(vs ...string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNotIn(FieldPositionNo, vs...))
|
||||
}
|
||||
|
||||
// PositionNoGT applies the GT predicate on the "position_no" field.
|
||||
func PositionNoGT(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldGT(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoGTE applies the GTE predicate on the "position_no" field.
|
||||
func PositionNoGTE(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldGTE(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoLT applies the LT predicate on the "position_no" field.
|
||||
func PositionNoLT(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldLT(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoLTE applies the LTE predicate on the "position_no" field.
|
||||
func PositionNoLTE(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldLTE(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoContains applies the Contains predicate on the "position_no" field.
|
||||
func PositionNoContains(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContains(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoHasPrefix applies the HasPrefix predicate on the "position_no" field.
|
||||
func PositionNoHasPrefix(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldHasPrefix(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoHasSuffix applies the HasSuffix predicate on the "position_no" field.
|
||||
func PositionNoHasSuffix(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldHasSuffix(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoIsNil applies the IsNil predicate on the "position_no" field.
|
||||
func PositionNoIsNil() predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldIsNull(FieldPositionNo))
|
||||
}
|
||||
|
||||
// PositionNoNotNil applies the NotNil predicate on the "position_no" field.
|
||||
func PositionNoNotNil() predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNotNull(FieldPositionNo))
|
||||
}
|
||||
|
||||
// PositionNoEqualFold applies the EqualFold predicate on the "position_no" field.
|
||||
func PositionNoEqualFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEqualFold(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoContainsFold applies the ContainsFold predicate on the "position_no" field.
|
||||
func PositionNoContainsFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContainsFold(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// QuantityEQ applies the EQ predicate on the "quantity" field.
|
||||
func QuantityEQ(v int) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldQuantity, v))
|
||||
@@ -978,6 +1223,81 @@ func OwnershipNoContainsFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContainsFold(FieldOwnershipNo, v))
|
||||
}
|
||||
|
||||
// QualityStatusEQ applies the EQ predicate on the "quality_status" field.
|
||||
func QualityStatusEQ(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusNEQ applies the NEQ predicate on the "quality_status" field.
|
||||
func QualityStatusNEQ(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNEQ(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusIn applies the In predicate on the "quality_status" field.
|
||||
func QualityStatusIn(vs ...string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldIn(FieldQualityStatus, vs...))
|
||||
}
|
||||
|
||||
// QualityStatusNotIn applies the NotIn predicate on the "quality_status" field.
|
||||
func QualityStatusNotIn(vs ...string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNotIn(FieldQualityStatus, vs...))
|
||||
}
|
||||
|
||||
// QualityStatusGT applies the GT predicate on the "quality_status" field.
|
||||
func QualityStatusGT(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldGT(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusGTE applies the GTE predicate on the "quality_status" field.
|
||||
func QualityStatusGTE(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldGTE(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusLT applies the LT predicate on the "quality_status" field.
|
||||
func QualityStatusLT(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldLT(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusLTE applies the LTE predicate on the "quality_status" field.
|
||||
func QualityStatusLTE(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldLTE(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusContains applies the Contains predicate on the "quality_status" field.
|
||||
func QualityStatusContains(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContains(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusHasPrefix applies the HasPrefix predicate on the "quality_status" field.
|
||||
func QualityStatusHasPrefix(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldHasPrefix(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusHasSuffix applies the HasSuffix predicate on the "quality_status" field.
|
||||
func QualityStatusHasSuffix(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldHasSuffix(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusIsNil applies the IsNil predicate on the "quality_status" field.
|
||||
func QualityStatusIsNil() predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldIsNull(FieldQualityStatus))
|
||||
}
|
||||
|
||||
// QualityStatusNotNil applies the NotNil predicate on the "quality_status" field.
|
||||
func QualityStatusNotNil() predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldNotNull(FieldQualityStatus))
|
||||
}
|
||||
|
||||
// QualityStatusEqualFold applies the EqualFold predicate on the "quality_status" field.
|
||||
func QualityStatusEqualFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEqualFold(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// QualityStatusContainsFold applies the ContainsFold predicate on the "quality_status" field.
|
||||
func QualityStatusContainsFold(v string) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldContainsFold(FieldQualityStatus, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.InboundOrder {
|
||||
return predicate.InboundOrder(sql.FieldEQ(FieldCreatedAt, v))
|
||||
|
||||
Reference in New Issue
Block a user