|
@@ -231,24 +231,24 @@
|
|
|
<select id="findArticleCount" resultType="java.lang.Integer">
|
|
|
select count(*)
|
|
|
from info
|
|
|
- where enabledStatus = 1
|
|
|
+ where enabledStatus = 1 and auditStatus = 2 and onlineStatus = 2
|
|
|
</select>
|
|
|
<select id="findArticleInvalidCount" resultType="java.lang.Integer">
|
|
|
select count(*)
|
|
|
from info
|
|
|
- where enabledStatus != 1
|
|
|
+ where enabledStatus != 1 or auditStatus != 2 or onlineStatus != 2
|
|
|
</select>
|
|
|
<select id="findArticleInvalidIds" resultType="java.lang.Integer">
|
|
|
select id
|
|
|
from info
|
|
|
- where enabledStatus != 1
|
|
|
+ where enabledStatus != 1 or auditStatus != 2 or onlineStatus != 2
|
|
|
</select>
|
|
|
<select id="searchArticleList" resultType="com.caimei365.commodity.model.search.ArticleDO">
|
|
|
select
|
|
|
<include refid="Search_Article_List"/>
|
|
|
from info as a
|
|
|
<include refid="Article_Joins"/>
|
|
|
- where a.enabledStatus = 1
|
|
|
+ where a.enabledStatus = 1 and a.auditStatus = 2 and a.onlineStatus = 2
|
|
|
order by a.priorityIndex desc
|
|
|
</select>
|
|
|
<select id="searchArticleById" resultType="com.caimei365.commodity.model.search.ArticleDO">
|
|
@@ -259,6 +259,7 @@
|
|
|
where a.id = #{articleId}
|
|
|
and a.enabledStatus = 1
|
|
|
and a.auditStatus = 2
|
|
|
+ and a.onlineStatus = 2
|
|
|
</select>
|
|
|
<select id="findLabelIdsByName" resultType="java.lang.Integer">
|
|
|
select id
|
|
@@ -407,6 +408,7 @@
|
|
|
<where>
|
|
|
a.enabledStatus = 1
|
|
|
and a.auditStatus = 2
|
|
|
+ and a.onlineStatus = 2
|
|
|
<if test="articleId != null">
|
|
|
and a.id = #{articleId}
|
|
|
</if>
|