实训首页搜索有重复

dev_course
daiao 6 years ago
parent 5f6e59d46c
commit 93203edade

@ -47,7 +47,7 @@ class ShixunsController < ApplicationController
where("challenge_tags.name like '%#{keyword}%'
or challenges.subject like '%#{keyword}%'
or concat(lastname, firstname) like '%#{keyword}%'
or shixuns.name like '%#{keyword.split(" ").join("%")}%'")
or shixuns.name like '%#{keyword.split(" ").join("%")}%'").distinct
end
## 筛选 状态

Loading…
Cancel
Save