Commit f8f5fc55 by guojuxing

过滤登录人员类型:运营人员/gic管理员

parent 2321bd30
...@@ -291,23 +291,25 @@ public class MenuController { ...@@ -291,23 +291,25 @@ public class MenuController {
} }
//用于过滤 //用于过滤
List<String> matchPhoneList = new ArrayList<>(); // List<String> matchPhoneList = new ArrayList<>();
//过滤运营操作,如果是品牌方登录;过滤品牌方日志,如果是运营登录 // //过滤运营操作,如果是品牌方登录;过滤品牌方日志,如果是运营登录
ServiceResponse<List<UserDTO>> userResult; // ServiceResponse<List<UserDTO>> userResult;
if (userDetail.getUserInfo().getLoginType().intValue() == 0) { // if (userDetail.getUserInfo().getLoginType().intValue() == 0) {
userResult = userApiService.listGicUser(enterpriseId); // userResult = userApiService.listGicUser(enterpriseId);
} else { // } else {
userResult = userApiService.listOperationUser(enterpriseId); // userResult = userApiService.listOperationUser(enterpriseId);
} // }
if (userResult.isSuccess()) { // if (userResult.isSuccess()) {
List<UserDTO> userList = userResult.getResult(); // List<UserDTO> userList = userResult.getResult();
matchPhoneList = userList.stream() // matchPhoneList = userList.stream()
.map(e -> e.getPhoneNumber()) // .map(e -> e.getPhoneNumber())
.collect(Collectors.toList()); // .collect(Collectors.toList());
} // }
if (CollectionUtils.isNotEmpty(matchPhoneList)) { // if (CollectionUtils.isNotEmpty(matchPhoneList)) {
searchParam.setPhoneList(matchPhoneList); // searchParam.setPhoneList(matchPhoneList);
} // }
//过滤登录人员类型:运营人员/gic管理员
searchParam.setLoginType(userDetail.getUserInfo().getLoginType().toString());
ServiceResponse<Page<SystemSetLogDTO>> response = logApiService.listSystemSetLog(pageQO.getPageSize(), ServiceResponse<Page<SystemSetLogDTO>> response = logApiService.listSystemSetLog(pageQO.getPageSize(),
pageQO.getCurrentPage(), searchParam); pageQO.getCurrentPage(), searchParam);
......
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