- Timestamp:
- 01/05/23 04:11:40 (23 months ago)
- Branches:
- main
- Children:
- 1bd8d1e
- Parents:
- 7d43957
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/controller/UserController.java
r7d43957 r676144b 28 28 @GetMapping("orders") 29 29 public String getOrdersForUser(Model model, HttpServletRequest request){ 30 Integer id = userService.findByUsername(request.getRemoteUser()).getI D_user();30 Integer id = userService.findByUsername(request.getRemoteUser()).getId(); 31 31 model.addAttribute("userOrders",ordersForUserRepository.findAllByUserid(id)); 32 32 model.addAttribute("bodyContent","ordersForUser"); … … 35 35 @GetMapping("repairs") 36 36 public String getRepairsForUser(Model model, HttpServletRequest request){ 37 Integer id = userService.findByUsername(request.getRemoteUser()).getI D_user();37 Integer id = userService.findByUsername(request.getRemoteUser()).getId(); 38 38 model.addAttribute("userRepairs",repairsForUserRepository.findAllByUserid(id)); 39 39 model.addAttribute("bodyContent","repairsForUser"); … … 42 42 @GetMapping("reviews") 43 43 public String getReviewsForUser(Model model,HttpServletRequest request){ 44 Integer id = userService.findByUsername(request.getRemoteUser()).getI D_user();44 Integer id = userService.findByUsername(request.getRemoteUser()).getId(); 45 45 model.addAttribute("userReviews",reviewsForUserRepository.findAllByUserid(id)); 46 46 model.addAttribute("bodyContent","reviewsForUser");
Note:
See TracChangeset
for help on using the changeset viewer.