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