XMTT 7 years ago
parent
commit
ca6a190bb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/ekexiu/portal/question/Service.java

+ 1 - 1
src/main/java/com/ekexiu/portal/question/Service.java

@ -173,7 +173,7 @@ public class Service {
173 173
	public List<Map<String, Object>> professor(@JdbcConn Connection con, final String id,final String uid, final @DefaultValue("Integer.MAX_VALUE") int count,
174 174
			final @DefaultValue("\"0\"") String pid, final @DefaultValue("Integer.MAX_VALUE") int rows) throws SQLException {
175 175
		return JdbcUtil.queryMaps(con,
176
				"select id, kws from(select id,count(1) kws from pro_key_word where id <>? kw in (select kw from qet_key_word where id =?) group by id ) t where kws<= ? and id >? order by kws desc,id asc limit ?",
176
				"select id, kws from(select id,count(1) kws from pro_key_word where id <> ? and kw in (select kw from qet_key_word where id =?) group by id ) t where kws<= ? and id >? order by kws desc,id asc limit ?",
177 177
				new PreparedStatementConfig() {
178 178
					@Override
179 179
					public void config(PreparedStatement ps) throws SQLException {