Browse Source

Merge remote-tracking branch 'origin/dev' into test

jiapeng 7 years ago
parent
commit
0b55ef8ab7

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

853
	@Exclude("articleContent")
853
	@Exclude("articleContent")
854
	@OrderBy(" ORDER BY PUBLISH_TIME DESC,SHARE_ID ASC ")
854
	@OrderBy(" ORDER BY PUBLISH_TIME DESC,SHARE_ID ASC ")
855
	@Where("STATUS='1'")
855
	@Where("STATUS='1'")
856
	public abstract PageQueryResult<Article> queryFind(Connection con, Integer colNum, int pageSize, int pageNo) throws SQLException;
856
	public abstract PageQueryResult<Article> queryFind(Connection con, Integer colNum,@Nullable @In(include=false) String[] articleId, int pageSize, int pageNo) throws SQLException;
857

857

858
	@LimitSelect
858
	@LimitSelect
859
	@Exclude("articleContent")
859
	@Exclude("articleContent")

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

898
	
898
	
899
	@Path("/find")
899
	@Path("/find")
900
	@Get
900
	@Get
901
	public PageQueryResult<Article> find(@JdbcConn Connection con,@DefaultValue("0") int col,@DefaultValue("20") int pageSize,@DefaultValue("1") int pageNo) throws SQLException{
902
			return this.articleDao.queryFind(con,col>0?col:null, pageSize, pageNo);
901
	public PageQueryResult<Article> find(@JdbcConn Connection con,@DefaultValue("0") int col,@Nullable String[] exclude,@DefaultValue("20") int pageSize,@DefaultValue("1") int pageNo) throws SQLException{
902
			return this.articleDao.queryFind(con,col>0?col:null,exclude, pageSize, pageNo);
903
	}
903
	}
904
	@Path("/lastestPublished")
904
	@Path("/lastestPublished")
905
	@Get
905
	@Get