xin
2025-06-24 b5e0a4f030f4741825b7a8d3d65bc1c2ba616ea1
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) {