Ignore:
Timestamp:
01/06/23 15:26:00 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
9dcbf44
Parents:
f484b14
Message:

Added full functionality for adding review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/controller/PartController.java

    rf484b14 rd4b888e  
    103103    public void chooseRepairShop(@RequestParam Integer rs,HttpSession session, HttpServletResponse response){
    104104        Order o = (Order) session.getAttribute("order");
    105         CarSample cs = (CarSample)session.getAttribute("car");
     105        CarSample cs = carSampleRepository.findById((Integer)session.getAttribute("carVin")).get();
    106106        ServiceBook sb = serviceBookRepository.findByCarSample(cs);
    107107        RepairShop repairShop = repairShopService.getById(rs);
    108108        repairRepository.save(new Repair(o,repairShop,sb));
     109//        o.setOrder_status("finished");
     110//        orderService.save(o);
    109111        session.removeAttribute("order");
    110112        try {
     
    123125        Deliveryman dm = deliverymanList.get(deliverer);
    124126        deliveryRepository.save(new Delivery("in progress",address,dm,o));
     127//        o.setOrder_status("finished");
     128//        orderService.save(o);
    125129        session.removeAttribute("order");
    126130        try {
Note: See TracChangeset for help on using the changeset viewer.