- Timestamp:
- 01/06/23 15:26:00 (23 months ago)
- Branches:
- main
- Children:
- 9dcbf44
- Parents:
- f484b14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/controller/PartController.java
rf484b14 rd4b888e 103 103 public void chooseRepairShop(@RequestParam Integer rs,HttpSession session, HttpServletResponse response){ 104 104 Order o = (Order) session.getAttribute("order"); 105 CarSample cs = (CarSample)session.getAttribute("car");105 CarSample cs = carSampleRepository.findById((Integer)session.getAttribute("carVin")).get(); 106 106 ServiceBook sb = serviceBookRepository.findByCarSample(cs); 107 107 RepairShop repairShop = repairShopService.getById(rs); 108 108 repairRepository.save(new Repair(o,repairShop,sb)); 109 // o.setOrder_status("finished"); 110 // orderService.save(o); 109 111 session.removeAttribute("order"); 110 112 try { … … 123 125 Deliveryman dm = deliverymanList.get(deliverer); 124 126 deliveryRepository.save(new Delivery("in progress",address,dm,o)); 127 // o.setOrder_status("finished"); 128 // orderService.save(o); 125 129 session.removeAttribute("order"); 126 130 try {
Note:
See TracChangeset
for help on using the changeset viewer.