瀏覽代碼

bugfix-删除百科不显示

Aslee 3 年之前
父節點
當前提交
635f52379b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/resources/mapper/BaikeMapper.xml

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

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