|
@ -39,7 +39,7 @@ public class ZjxlArticleContentService extends BaseService {
|
|
|
if (systemDictType != null && systemDictType > 0){
|
|
|
sql += " and article_content_type = "+systemDictType+"";
|
|
|
}
|
|
|
sql += " order by article_content_sort desc limit "+page+" , "+pagesiz+"";
|
|
|
sql += " order by article_content_sort,article_content_create_time desc limit "+page+" , "+pagesiz+"";
|
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
|
return articleContentList;
|
|
|
}
|
|
@ -79,7 +79,7 @@ public class ZjxlArticleContentService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public List<ZjxlArticleContent> getArticleContent(String articleContentType,String articleContentClassify,String articleContentSubclassify){
|
|
|
String sql = "select * from zjxl_article_content where article_content_type = "+articleContentType+" and article_content_classify = '"+articleContentClassify+"' and article_content_subclassify = '"+articleContentSubclassify+"' order by article_content_sort desc limit 1";
|
|
|
String sql = "select * from zjxl_article_content where article_content_type = "+articleContentType+" and article_content_classify = '"+articleContentClassify+"' and article_content_subclassify = '"+articleContentSubclassify+"' order by article_content_sort,article_content_create_time desc limit 1";
|
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
|
return articleContentList;
|
|
|
}
|