|
@ -45,7 +45,7 @@ public class ZjxlArticleContentService extends BaseService {
|
|
if (systemDictType != null && systemDictType > 0){
|
|
if (systemDictType != null && systemDictType > 0){
|
|
sql += " and article_content_type = "+systemDictType+"";
|
|
sql += " and article_content_type = "+systemDictType+"";
|
|
}
|
|
}
|
|
sql += " order by article_content_sort desc,article_content_create_time desc limit "+page+" , "+pagesiz+"";
|
|
|
|
|
|
sql += " order by article_content_sort asc,article_content_create_time desc limit "+page+" , "+pagesiz+"";
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
return articleContentList;
|
|
return articleContentList;
|
|
}
|
|
}
|
|
@ -86,7 +86,7 @@ public class ZjxlArticleContentService extends BaseService {
|
|
}
|
|
}
|
|
|
|
|
|
public List<ZjxlArticleContent> getArticleContent(String articleContentType,String articleContentClassify,String articleContentSubclassify){
|
|
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 concat(article_content_sort,article_content_create_time) 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 asc ,article_content_create_time desc limit 1";
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
return articleContentList;
|
|
return articleContentList;
|
|
}
|
|
}
|
|
@ -106,7 +106,7 @@ public class ZjxlArticleContentService extends BaseService {
|
|
if (systemDictType != null && systemDictType > 0){
|
|
if (systemDictType != null && systemDictType > 0){
|
|
sql += " and article_content_type = "+systemDictType+"";
|
|
sql += " and article_content_type = "+systemDictType+"";
|
|
}
|
|
}
|
|
sql += " order by concat(article_content_sort,article_content_create_time) desc limit "+page+" , "+pagesiz+"";
|
|
|
|
|
|
sql += " order by article_content_sort asc,article_content_create_time desc limit "+page+" , "+pagesiz+"";
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
return articleContentList;
|
|
return articleContentList;
|
|
}
|
|
}
|
|
@ -134,7 +134,7 @@ public class ZjxlArticleContentService extends BaseService {
|
|
if (StringUtils.isNotEmpty(articleContentType)){
|
|
if (StringUtils.isNotEmpty(articleContentType)){
|
|
sql += " and article_content_type = '"+articleContentType+"'";
|
|
sql += " and article_content_type = '"+articleContentType+"'";
|
|
}
|
|
}
|
|
sql += " order by concat(article_content_sort,article_content_create_time) desc ";
|
|
|
|
|
|
sql += " order by article_content_sort asc ,article_content_create_time desc ";
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
List<ZjxlArticleContent> articleContentList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ZjxlArticleContent.class));
|
|
return articleContentList;
|
|
return articleContentList;
|
|
}
|
|
}
|