@GetMapping("{oid}") public Order getByOidAndUid(@PathVariable Integer oid,HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByOidAndUid(oid,user.getUid()); }
@GetMapping("/stated") public List<Order> getByUidAndStated(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndStated(user.getUid()); }
@GetMapping("/noPay") public List<Order> getByUidAndNoPay(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndPayState(user.getUid(),"未支付"); }
@GetMapping("/payed") public List<Order> getByUidAndPayed(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndPayState(user.getUid(),"已支付"); }
@GetMapping("/cel") public List<Order> getByUidAndState(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndState(user.getUid(),"已取消"); }
@GetMapping("{oid}") public Order getByOidAndUid(@PathVariable Integer oid,HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByOidAndUid(oid,user.getUid()); }
@GetMapping("/stated") public List<Order> getByUidAndStated(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndStated(user.getUid()); }
@GetMapping("/noPay") public List<Order> getByUidAndNoPay(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndPayState(user.getUid(),"未支付");
@GetMapping("{oid}") public Order getByOidAndUid(@PathVariable Integer oid,HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByOidAndUid(oid,user.getUid()); }
@GetMapping("/stated") public List<Order> getByUidAndStated(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndStated(user.getUid()); }
@GetMapping("/noPay") public List<Order> getByUidAndNoPay(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndPayState(user.getUid(),"未支付");
@GetMapping("/stated") public List<Order> getByUidAndStated(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndStated(user.getUid()); }
@GetMapping("/ad") public List<Order> getAll(){ return orderService.getAll(); }
@GetMapping("/noPay") public List<Order> getByUidAndNoPay(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndPayState(user.getUid(),"未支付"); }
@GetMapping("/payed") public List<Order> getByUidAndPayed(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndPayState(user.getUid(),"已支付"); }
@GetMapping("/cel") public List<Order> getByUidAndState(HttpSession session){ User user = (User) session.getAttribute("user"); return orderService.getByUidAndState(user.getUid(),"已取消"); }
public Boolean updatepassword(@RequestBody User user,HttpSession session){ User user1= (User) session.getAttribute("user"); userService.updateUser(user); returntrue; }