DEBUG
This commit is contained in:
@@ -940,6 +940,8 @@ func NewSchema(config Config) (graphql.Schema, error) {
|
||||
return map[string]interface{}{"list": []Image{}, "total": 0}, nil
|
||||
}
|
||||
|
||||
query = query.Where(goqu.Ex{"web_images.id": goqu.Op{"in": item}})
|
||||
|
||||
//query = query.Where(goqu.Ex{"web_images.id": goqu.Op{"in": item}}).Select("web_images.id", goqu.L(
|
||||
// fmt.Sprintf("ROW_NUMBER() OVER(ORDER BY %s %s)", "web_images.id", "DESC"),
|
||||
//).As("row_num"))
|
||||
@@ -1049,9 +1051,6 @@ func NewSchema(config Config) (graphql.Schema, error) {
|
||||
goqu.I("web_praise.user_id").Eq(p.Args["praise"]),
|
||||
goqu.I("web_praise.type").Eq(4),
|
||||
))
|
||||
//.Select("web_images.id", goqu.L(
|
||||
// fmt.Sprintf("ROW_NUMBER() OVER(ORDER BY %s %s)", "web_praise.create_time", "DESC"),
|
||||
//).As("row_num"))
|
||||
}
|
||||
|
||||
var collect_params []goqu.Expression = []goqu.Expression{
|
||||
|
Reference in New Issue
Block a user