- 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/PartController.java
r7d43957 r676144b 50 50 } 51 51 @PostMapping("/repairshopdelivery") 52 public void setRepairShopDelivery(@RequestParam String name, HttpServletResponse response ){52 public void setRepairShopDelivery(@RequestParam String name, HttpServletResponse response, HttpSession session){ 53 53 // insert into project.repair (vin, id_repair_shop, id_service_book) values (1111,3,1) 54 session.removeAttribute("order"); 54 55 try { 55 56 response.sendRedirect("/"); … … 59 60 } 60 61 @PostMapping("/homedelivery") 61 public void setHomeDelivery(@RequestParam String address, HttpServletResponse response ){62 public void setHomeDelivery(@RequestParam String address, HttpServletResponse response, HttpSession session){ 62 63 // insert into delivery (delivery_status, delivery_address,id_user,id_order) values ('in progress','Aerodrom',4,1) 64 session.removeAttribute("order"); 63 65 try { 64 66 response.sendRedirect("/");
Note:
See TracChangeset
for help on using the changeset viewer.