Commit a2ca746f0a0f27c5961a1731459da37fbc0a818d
Committed by
Gitee
!459 新建商品时商品分类状态判断错误
Merge pull request !459 from LiZhongShi/master
Showing
1 changed file
with
1 additions
and
1 deletions
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 | 100 | if (category == null) { |
| 101 | 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 | 104 | throw exception(CATEGORY_DISABLED, category.getName()); |
| 105 | 105 | } |
| 106 | 106 | } | ... | ... |