mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-12 09:11:53 +08:00
fix: 新建商品时商品分类状态判断错误
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user