- Timestamp:
- 01/06/23 21:08:03 (23 months ago)
- Branches:
- main
- Children:
- 89865ae
- Parents:
- 9dcbf44
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/controller/AdminController.java
r9dcbf44 rcab5859 37 37 public String getAllUsers(Model model){ 38 38 List<User> pendingList = userService.findAllUsers().stream().filter(u->u.getAuthorities().contains(Role.ROLE_PENDING_DELIVERYMAN) || u.getAuthorities().contains(Role.ROLE_PENDING_WAREHOUSEMAN)).toList(); 39 model.addAttribute("users", pendingList); 39 if(pendingList.size()==0){ 40 model.addAttribute("hasError",true); 41 } 42 else { 43 model.addAttribute("hasError",false); 44 model.addAttribute("users", pendingList); 45 } 40 46 model.addAttribute("bodyContent", "viewUsers"); 41 47 return "master-template";
Note:
See TracChangeset
for help on using the changeset viewer.