|
@ -171,7 +171,7 @@ public class Service {
|
171
|
171
|
public List<Map<String, Object>> professor(@JdbcConn Connection con, final String id, final @DefaultValue("Integer.MAX_VALUE") int count,
|
172
|
172
|
final @DefaultValue("\"0\"") String pid, final @DefaultValue("Integer.MAX_VALUE") int rows) throws SQLException {
|
173
|
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
|
175
|
new PreparedStatementConfig() {
|
176
|
176
|
@Override
|
177
|
177
|
public void config(PreparedStatement ps) throws SQLException {
|