|
|
@@ -710,6 +710,7 @@ public class ContentQuery extends JBaseQuery {
|
|
|
public Object load() {
|
|
|
StringBuilder sqlBuilder = new StringBuilder(" select c.* from content c ,mapping m, taxonomy t where c.module='news' and c.status='normal' and m.content_id=c.id and m.taxonomy_id=t.id and t.type = 'category' ");
|
|
|
List<Taxonomy> taxonomys = currentContent.getTaxonomys();
|
|
|
+ //TODO taxonomys 判空
|
|
|
for (int i = 0; i < taxonomys.size(); i++) {
|
|
|
String slug = taxonomys.get(i).getSlug();
|
|
|
if ("tradeNews".equals(slug) || "companyDynamic".equals(slug)) {
|
|
|
@@ -797,6 +798,7 @@ public class ContentQuery extends JBaseQuery {
|
|
|
public Object load() {
|
|
|
StringBuilder sqlBuilder = new StringBuilder(" select c.* from content c ,mapping m, taxonomy t where c.module='news' and c.status='normal' and m.content_id=c.id and m.taxonomy_id=t.id and t.type = 'category' ");
|
|
|
List<Taxonomy> taxonomys = currentContent.getTaxonomys();
|
|
|
+ //TODO taxonomys 判空
|
|
|
for (int i = 0; i < taxonomys.size(); i++) {
|
|
|
String slug = taxonomys.get(i).getSlug();
|
|
|
if ("tradeNews".equals(slug) || "companyDynamic".equals(slug)) {
|