Commit a2ca746f0a0f27c5961a1731459da37fbc0a818d

Authored by 芋道源码
Committed by Gitee
2 parents 8c65afc5 d5a48e63

!459 新建商品时商品分类状态判断错误

Merge pull request !459 from LiZhongShi/master
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/service/category/ProductCategoryServiceImpl.java
@@ -100,7 +100,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService { @@ -100,7 +100,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
100 if (category == null) { 100 if (category == null) {
101 throw exception(CATEGORY_NOT_EXISTS); 101 throw exception(CATEGORY_NOT_EXISTS);
102 } 102 }
103 - if (Objects.equals(category.getStatus(), CommonStatusEnum.ENABLE.getStatus())) { 103 + if (Objects.equals(category.getStatus(), CommonStatusEnum.DISABLE.getStatus())) {
104 throw exception(CATEGORY_DISABLED, category.getName()); 104 throw exception(CATEGORY_DISABLED, category.getName());
105 } 105 }
106 } 106 }