Commit 0d9150ec by guojuxing

操作日志过滤运营和品牌方

parent 60265391
...@@ -275,19 +275,17 @@ public class MenuController { ...@@ -275,19 +275,17 @@ public class MenuController {
//用于过滤 //用于过滤
List<String> matchPhoneList = new ArrayList<>(); List<String> matchPhoneList = new ArrayList<>();
//过滤运营操作,如果是品牌方登录;过滤品牌方日志,如果是运营登录 //过滤运营操作,如果是品牌方登录;过滤品牌方日志,如果是运营登录
if (isSuperAdmin) { 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);
......
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