浏览代码

fix:公告状态查询

liujunchi 3 年之前
父节点
当前提交
f7a8b946c5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      cooleshow-cms/src/main/resources/config/mybatis/HelpCenterContentMapper.xml

+ 2 - 1
cooleshow-cms/src/main/resources/config/mybatis/HelpCenterContentMapper.xml

@@ -31,7 +31,8 @@
 				and content.title_ like '%' #{title} '%'
 			</if>
 			<if test="status!= null">
-				and content.status_ = #{status}
+				and ((content.status_ = #{status} and content.catalog_id_ = 1)
+					or (content.release_status_ = #{status} and content.catalog_id_ = 2))
 			</if>
 			<if test="catalogType != null and catalogType != ''">
 				and content.catalog_type_ = #{catalogType}