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);