Aslee 3 years ago
parent
commit
d462e08b3e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/resources/mapper/ArticleMapper.xml

+ 3 - 1
src/main/resources/mapper/ArticleMapper.xml

@@ -30,6 +30,7 @@
 		from info a
 		where a.recommendStatus = 1
 		and a.enabledStatus = 1
+		and a.auditStatus = 2
 		and NOW() >= a.pubdate
 		<if test="typeId != null and typeId != ''">
 			and a.typeId = #{typeId}
@@ -61,6 +62,7 @@
 			</if>
 			and NOW() >= a.pubdate
 			and a.enabledStatus = 1
+        	and a.auditStatus = 2
 		</where>
 		order by a.pubdate desc
 	</select>
@@ -122,7 +124,7 @@
 		WHERE
 		  a.id = #{id}
 		  AND a.enabledStatus = 1
-		  and a.auditStatus = 1
+		  and a.auditStatus = 2
 	</select>
 	<select id="findLabelIdsByName" resultType="java.lang.Integer">
 		select id