XMTT преди 6 години
родител
ревизия
9476883b64
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      src/main/java/com/ekexiu/portal/dao/ArticleDao.java
  2. 2 2
      src/main/java/com/ekexiu/portal/service/ArticleService.java

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

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

274 274
	@SelectList
275 275
	@Exclude("articleContent")
276
	public abstract List<Article> query(Connection con, @In String[] articleId) throws SQLException;
276
	public abstract List<Article> query(Connection con, @In String[] articleId,@Nullable String status) throws SQLException;
277 277

278 278
	@Exclude("articleContent")
279 279
	@LimitSelect

+ 2 - 2
src/main/java/com/ekexiu/portal/service/ArticleService.java

@ -1166,7 +1166,7 @@ public class ArticleService {
1166 1166
			String articleId, @DefaultValue("5") int rows) throws SQLException {
1167 1167
		String[] ids = this.articleDao.queryArticleIdWithSameKeyWord(con, articleId, rows);
1168 1168
		if (ids != null) {
1169
			return this.articleDao.query(con, ids);
1169
			return this.articleDao.query(con, ids,"1");
1170 1170
		}
1171 1171
		return Collections.<Article> emptyList();
1172 1172
	}
@ -1278,7 +1278,7 @@ public class ArticleService {
1278 1278
	@Get
1279 1279
	@Path("/qm")
1280 1280
	public List<Article> query(@JdbcConn Connection con,String[] id)throws SQLException {
1281
		return this.articleDao.query(con, id);
1281
		return this.articleDao.query(con, id,null);
1282 1282
	}
1283 1283

1284 1284
	public static void main(String[] args) {