xin
2025-07-02 bd375f4fe8081c0ca612d72ed06c47ab3f89d68d
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) {