Parcourir la source

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

lyhzzz il y a 3 ans
Parent
commit
cec8dae468

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

@@ -385,7 +385,7 @@
     </delete>
 
     <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=")">
             #{id}
         </foreach>