mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-23 14:41:54 +08:00
@@ -100,7 +100,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
|
|||||||
if (category == null) {
|
if (category == null) {
|
||||||
throw exception(CATEGORY_NOT_EXISTS);
|
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());
|
throw exception(CATEGORY_DISABLED, category.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user