From fe84832c609b75a0435ac181007048597ad4467a Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Wed, 12 Feb 2020 15:36:18 +0800 Subject: [PATCH] test --- app/queries/weapps/subject_query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/queries/weapps/subject_query.rb b/app/queries/weapps/subject_query.rb index 4fb0053a0..bc2f331b1 100644 --- a/app/queries/weapps/subject_query.rb +++ b/app/queries/weapps/subject_query.rb @@ -21,7 +21,7 @@ class Weapps::SubjectQuery < ApplicationQuery subjects = subjects.left_joins(:shixuns).select('subjects.id, subjects.name, subjects.excellent, subjects.stages_count, subjects.status, subjects.homepage_show, subjects.shixuns_count, subjects.updated_at, IFNULL(sum(shixuns.myshixuns_count), 0) myshixuns_count') - .group('subjects.id').order("(homepage_show #{sort_type}, #{order_type} #{sort_type})") + .group('subjects.id').order("subjects.homepage_show #{sort_type}, #{order_type} #{sort_type})") subjects end