chunping 3 年 前
コミット
7e3bc02096

+ 1 - 1
mp-admin/src/main/java/com/qs/mp/web/controller/api/admin/GoodsCategoryMgrController.java

@@ -152,7 +152,7 @@ public class GoodsCategoryMgrController extends BaseApiController {
       return error(ErrorCodeEnum.ERROR_CODE_1001);
     }
     int cnt = goodsService.count(new LambdaQueryWrapper<Goods>()
-        .eq(Goods::getCategoryId, goodsCategory.getCategoryId()).eq(Goods::getIsDeleted, 1));
+        .eq(Goods::getCategoryId, goodsCategory.getCategoryId()).eq(Goods::getIsDeleted, 0));
     if (cnt > 0) {
       return error(ErrorCodeEnum.ERROR_CODE_1024);
     }