Commit 5f5e4daa authored by tianbo's avatar tianbo

96333今日值班添加角色过滤

parent 8b72ba6d
...@@ -112,6 +112,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall ...@@ -112,6 +112,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
@Autowired @Autowired
TzsAuthService tzsAuthService; TzsAuthService tzsAuthService;
@Value("${duty.seats.role.ids}")
private String dutySeatsRoleIds;
private final Logger logger = LogManager.getLogger(AlertCalledServiceImpl.class); private final Logger logger = LogManager.getLogger(AlertCalledServiceImpl.class);
...@@ -388,7 +391,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall ...@@ -388,7 +391,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
@Override @Override
public List<DutySeatDto> getSeatInfos() { public List<DutySeatDto> getSeatInfos() {
// 获取人员信息 // 获取人员信息
FeignClientResult<List<AgencyUserModel>> userListResult = Privilege.agencyUserClient.list(null,null); // FeignClientResult<List<AgencyUserModel>> userListResult = Privilege.agencyUserClient.list(null,null);
FeignClientResult<List<AgencyUserModel>> userListResult = Privilege.agencyUserClient.queryByRoleId(dutySeatsRoleIds,null);
List<AgencyUserModel> userList = userListResult.getResult(); List<AgencyUserModel> userList = userListResult.getResult();
List<DutySeatDto> dutyList = new ArrayList<>(); List<DutySeatDto> dutyList = new ArrayList<>();
userList.stream().forEach(u -> { userList.stream().forEach(u -> {
......
...@@ -54,3 +54,4 @@ rule.definition.default-agency=tzs ...@@ -54,3 +54,4 @@ rule.definition.default-agency=tzs
rule.definition.localIp=172.16.3.39 rule.definition.localIp=172.16.3.39
org.filter.group.seq=1564150103147573249 org.filter.group.seq=1564150103147573249
duty.seats.role.ids=1585956200472674305,1585956257590706177
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment