mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-19 11:40:05 +08:00
commit
a2ca746f0a
@ -100,7 +100,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
|
||||
if (category == null) {
|
||||
throw exception(CATEGORY_NOT_EXISTS);
|
||||
}
|
||||
if (Objects.equals(category.getStatus(), CommonStatusEnum.ENABLE.getStatus())) {
|
||||
if (Objects.equals(category.getStatus(), CommonStatusEnum.DISABLE.getStatus())) {
|
||||
throw exception(CATEGORY_DISABLED, category.getName());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user