24282 9 月之前
父节点
当前提交
6b4b410a75
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hx-item/src/main/java/com/fjhx/item/service/product/impl/ProductInfoServiceImpl.java

+ 1 - 1
hx-item/src/main/java/com/fjhx/item/service/product/impl/ProductInfoServiceImpl.java

@@ -592,7 +592,7 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
                     if (collect.size() > 1) {
                         throw new ServiceException("同级存在多个相同名称的分类:" + split[i]);
                     }
-                    if (collect.size() == 0) {
+                    if (collect.isEmpty()) {
                         throw new ServiceException("分类不存在:" + split[i]);
                     }
                     productClassify = collect.get(0);