jiangping
2025-07-15 5af3e49dd60158bfe819135f7cbb45438ca015e2
server/services/src/main/java/com/doumee/service/business/impl/CategoryServiceImpl.java
@@ -25,6 +25,7 @@
import org.checkerframework.checker.units.qual.C;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import java.util.Date;
@@ -46,6 +47,7 @@
    private SystemDictDataBiz systemDictDataBiz;
    @Override
    @Transactional(rollbackFor = {Exception.class,BusinessException.class})
    public Integer create(Category category) {
        if(Objects.isNull(category)
        || Objects.isNull(category.getType())
@@ -93,6 +95,7 @@
    }
    @Override
    @Transactional(rollbackFor = {Exception.class,BusinessException.class})
    public void updateById(Category category) {
        if(Objects.isNull(category)
                || Objects.isNull(category.getId())