唐耀东
2022-05-12 ede630639ad494189282c2c02dbcd4b88741cc30
ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/BsOrganizationServiceImpl.java
@@ -17,6 +17,7 @@
import com.ruoyi.oa.domain.BsOrganization;
import com.ruoyi.oa.mapper.BsOrganizationMapper;
import com.ruoyi.oa.service.IBsOrganizationService;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
@@ -54,6 +55,7 @@
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean insertByBo(BsOrganizationBo bo) {
        BsOrganization add = BeanUtil.toBean(bo, BsOrganization.class);
        if (bo.getParentId() == Long.valueOf(0)) {
@@ -73,6 +75,7 @@
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean updateByBo(BsOrganizationBo bo) {
        BsOrganization update = BeanUtil.toBean(bo, BsOrganization.class);
        if (bo.getParentId() == Long.valueOf(0)) {
@@ -98,6 +101,7 @@
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
        List<BsOrganization> list = baseMapper.selectList(new LambdaQueryWrapper<BsOrganization>()
            .in(BsOrganization::getParentId, ids));