xin
2025-07-14 b4d3224898d50b8f1e30b5c8083a520743927282
oying-system/src/main/java/com/oying/modules/pc/store/service/impl/StoreCategoryServiceImpl.java
@@ -45,7 +45,6 @@
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void create(StoreCategory resources) {
        // 重名
        this.calculateAndSetLevel(resources);
        storeCategoryMapper.insert(resources);
    }
@@ -68,10 +67,6 @@
     * 计算并设置类目的层级
     */
    private void calculateAndSetLevel(StoreCategory category) {
        if (category == null) {
            throw new IllegalArgumentException("对象不能为null");
        }
        Long parentCategoryId = category.getParentId();
        if (parentCategoryId == null) {