浏览代码

http://192.168.0.21/index.php?m=bug&f=view&bugID=25922
删除商品分类

lyhzzz 3 年之前
父节点
当前提交
cec8dae468
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform-shop/src/main/resources/com/platform/dao/GoodsDao.xml

+ 1 - 1
platform-shop/src/main/resources/com/platform/dao/GoodsDao.xml

@@ -385,7 +385,7 @@
     </delete>
     </delete>
 
 
     <select id="queryCountByCategoryIds" resultType="integer">
     <select id="queryCountByCategoryIds" resultType="integer">
-        select count(id) from nideshop_goods where category_id in
+        select count(id) from nideshop_goods where is_delete = 0 AND category_id in
         <foreach item="id" collection="ids" open="(" separator="," close=")">
         <foreach item="id" collection="ids" open="(" separator="," close=")">
             #{id}
             #{id}
         </foreach>
         </foreach>