Commit 7e5eca2c by liyijie

feat: 对于jorder,就不再执行distinct了

parent 6bcf569d
...@@ -299,7 +299,7 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -299,7 +299,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
end.join(', ') end.join(', ')
association = association.order(Arel.sql(sql)) association = association.order(Arel.sql(sql))
end end
association = association.distinct unless self.class.instance_variable_get(:@distinct_off) || !association.respond_to?(:distinct)|| !active_record? association = association.distinct unless self.class.instance_variable_get(:@distinct_off) || !association.respond_to?(:distinct)|| !active_record? || params.dig(:q, :jorder).present?
association association
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment