소스 검색

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}