|
@@ -228,6 +228,19 @@ public class OrdinaryController {
|
|
|
return "/ordinary/cancelApplication";
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据预约id查看详情
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/findByReservationId", method = RequestMethod.POST)
|
|
|
+ public ReservationVo findByReservationId(@RequestBody String id) throws Exception{
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(id);
|
|
|
+ Integer cancelID = jsonObject.getInteger("id");
|
|
|
+ ReservationVo reservationVo =reservationService.findByReservationId(cancelID);
|
|
|
+ return reservationVo;
|
|
|
+ }
|
|
|
//取消预约申请业务实现
|
|
|
@RequestMapping(value = "/cancelApply", method = RequestMethod.POST)
|
|
|
public ReservationVo cancelApplication(@RequestBody String id) throws Exception{
|