Commit 59bdeabb authored by 他是超人他会飞's avatar 他是超人他会飞 Committed by 铭飞

!160 上下篇的判断修改

Merge pull request !160 from 他是超人他会飞/4.7.0
parents 016fc549 4e7cd16e
This diff is collapsed.
This diff is collapsed.
...@@ -160,8 +160,12 @@ public class SearchAction extends BaseAction { ...@@ -160,8 +160,12 @@ public class SearchAction extends BaseAction {
ContentModelEntity contentModel = null; // 栏目对应模型 ContentModelEntity contentModel = null; // 栏目对应模型
List<ContentModelFieldEntity> fieldList = new ArrayList<ContentModelFieldEntity>(); // 栏目对应字段 List<ContentModelFieldEntity> fieldList = new ArrayList<ContentModelFieldEntity>(); // 栏目对应字段
List<DiyModelMap> fieldValueList = new ArrayList<DiyModelMap>(); // 栏目对应字段的值 List<DiyModelMap> fieldValueList = new ArrayList<DiyModelMap>(); // 栏目对应字段的值
int typeId = BasicUtil.getInt("typeid",0); int typeId = 0;
String categoryIds = BasicUtil.getString("categoryId"); String categoryIds = BasicUtil.getString("categoryId");
//当传递了栏目编号,但不是栏目集合
if(!StringUtil.isBlank(categoryIds) && !categoryIds.contains(",")){
typeId = Integer.parseInt(categoryIds);
}
//记录自定义模型字段名 //记录自定义模型字段名
List filedStr = new ArrayList<>(); List filedStr = new ArrayList<>();
//根据栏目确定自定义模型 //根据栏目确定自定义模型
......
...@@ -458,10 +458,10 @@ ...@@ -458,10 +458,10 @@
left join basic_column cl left join basic_column cl
on c.CATEGORY_ID = on c.CATEGORY_ID =
cl.COLUMN_CATEGORY_ID cl.COLUMN_CATEGORY_ID
<if test="tableName!=null">left join ${tableName} d on d.basicId=a.ARTICLE_BASICID <if test="tableName!=null and tableName!=''">left join ${tableName} d on d.basicId=a.ARTICLE_BASICID
</if> </if>
where a.ARTICLE_WEBID = #{websiteId} where a.ARTICLE_WEBID = #{websiteId}
<if test="ids!=null"> <if test="ids!=null and ids!=''">
and FIND_IN_SET(category_categoryid,'${ids}') and FIND_IN_SET(category_categoryid,'${ids}')
</if> </if>
<foreach item="item" index="key" collection="map" open="" <foreach item="item" index="key" collection="map" open=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment