|
|
|
@ -10,10 +10,12 @@ package com.elink.esua.epdc.service.impl; |
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|
|
|
import com.elink.esua.epdc.dao.SysRoleDataScopeDao; |
|
|
|
import com.elink.esua.epdc.dto.DataScopeDeptList; |
|
|
|
import com.elink.esua.epdc.entity.SysRoleDataScopeEntity; |
|
|
|
import com.elink.esua.epdc.service.SysRoleDataScopeService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
@ -28,6 +30,8 @@ import java.util.List; |
|
|
|
@Service |
|
|
|
public class SysRoleDataScopeServiceImpl extends BaseServiceImpl<SysRoleDataScopeDao, SysRoleDataScopeEntity> |
|
|
|
implements SysRoleDataScopeService { |
|
|
|
@Autowired |
|
|
|
private RedisUtils redisUtils; |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<Long> getDeptIdList(Long roleId) { |
|
|
|
@ -64,6 +68,7 @@ public class SysRoleDataScopeServiceImpl extends BaseServiceImpl<SysRoleDataScop |
|
|
|
//保存
|
|
|
|
insert(sysRoleDataScopeEntity); |
|
|
|
} |
|
|
|
redisUtils.deleteByPattern("options:dept:*"); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|