فهرست منبع

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}