Browse Source

bugfix-未审核成功和下线产品能查看详情

Aslee 3 năm trước cách đây
mục cha
commit
160de437e8

+ 1 - 1
src/main/resources/mapper/BaikeMapper.xml

@@ -39,7 +39,7 @@
 		from cm_baike_product a
 		from cm_baike_product a
 				 left join cm_baike_type cbt on a.typeId = cbt.id
 				 left join cm_baike_type cbt on a.typeId = cbt.id
 			left join shop s on a.shopId = s.shopID
 			left join shop s on a.shopId = s.shopID
-		where a.id = #{productId} and a.status = 1 and NOW() > publishTime;
+		where a.id = #{productId} and a.status = 1 and a.auditStatus = 2 and a.onlineStatus = 2 and NOW() > publishTime;
 	</select>
 	</select>
 
 
 	<select id="findParamList" resultType="com.caimei.www.pojo.baike.BaikeProductParam">
 	<select id="findParamList" resultType="com.caimei.www.pojo.baike.BaikeProductParam">