XMTT 6 年之前
父节点
当前提交
8ed537360d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/ekexiu/portal/dao/ArticleDao.java

+ 1 - 1
src/main/java/com/ekexiu/portal/dao/ArticleDao.java

@ -245,7 +245,7 @@ public abstract class ArticleDao {
245 245

246 246
	public String[] queryArticleIdWithSameKeyWord(Connection con, String id, int rows) throws SQLException {
247 247
		List<String> ret = new ArrayList<String>();
248
		String sql = "select id,count(1) sort from art_key_word where kw in (select kw from art_key_word where id=?) and id <>? and status='1' group by id order by sort desc limit ?";
248
		String sql = "select id,count(1) sort from art_key_word where kw in (select kw from art_key_word where id=?) and id <>? group by id order by sort desc limit ?";
249 249
		PreparedStatement ps = con.prepareStatement(sql);
250 250
		try {
251 251
			ps.setString(1, id);