bug
This commit is contained in:
+8
-2
@@ -1757,8 +1757,14 @@ public class SysUserController {
|
||||
@GetMapping(value = "/queryViewerInfo")
|
||||
public ViewerInfoVo queryViewerInfoVo(@RequestParam(name = "userId", required = true) String userId){
|
||||
ViewerInfoVo viewerInfoVo = new ViewerInfoVo();
|
||||
viewerInfoVo.setBrandList(projectUserBrandService.queryBrandByUserId(userId));
|
||||
viewerInfoVo.setDutyTerritoryList(projectUserDutyTerritoryService.queryDutyTerritoryByUserId(userId));
|
||||
List<String> brands = projectUserBrandService.queryBrandByUserId(userId);
|
||||
if (ObjectUtils.isNotEmpty(brands)) {
|
||||
viewerInfoVo.setBrandList(brands);
|
||||
}
|
||||
List<String> dutyTerritories = projectUserDutyTerritoryService.queryDutyTerritoryByUserId(userId);
|
||||
if (ObjectUtils.isNotEmpty(dutyTerritories)) {
|
||||
viewerInfoVo.setDutyTerritoryList(dutyTerritories);
|
||||
}
|
||||
return viewerInfoVo;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user