XMTT 7 years ago
parent
commit
a08507f891
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

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