Commit 407909bd authored by lings's avatar lings

浙里办

parent 94ad2118
...@@ -140,7 +140,7 @@ public class AppointmentOrderController { ...@@ -140,7 +140,7 @@ public class AppointmentOrderController {
return new Result(); return new Result();
} }
/*
@GetMapping(value = "/signin/{appointmentOrderId}") @GetMapping(value = "/signin/{appointmentOrderId}")
@ApiOperation("签到") @ApiOperation("签到")
public Result signin(@PathVariable(value = "appointmentOrderId") Long appointmentOrderId){ public Result signin(@PathVariable(value = "appointmentOrderId") Long appointmentOrderId){
...@@ -148,8 +148,6 @@ public class AppointmentOrderController { ...@@ -148,8 +148,6 @@ public class AppointmentOrderController {
//根据appointmentOrderId获取到订单实体 //根据appointmentOrderId获取到订单实体
AppointmentOrderDTO appointmentOrderDTO = appointmentOrderService.get(appointmentOrderId); AppointmentOrderDTO appointmentOrderDTO = appointmentOrderService.get(appointmentOrderId);
if (appointmentOrderDTO.getAppointmentTime().getTime() > new Date().getTime()) {
String appointmentIdCard = appointmentOrderDTO.getAppointmentIdCard(); String appointmentIdCard = appointmentOrderDTO.getAppointmentIdCard();
String appointmentPhone = appointmentOrderDTO.getAppointmentPhone(); String appointmentPhone = appointmentOrderDTO.getAppointmentPhone();
String serviceId = appointmentOrderDTO.getServiceId().toString(); String serviceId = appointmentOrderDTO.getServiceId().toString();
...@@ -176,23 +174,10 @@ public class AppointmentOrderController { ...@@ -176,23 +174,10 @@ public class AppointmentOrderController {
appointmentOrderService.update(appointmentOrderDTO); appointmentOrderService.update(appointmentOrderDTO);
return new Result(); return new Result();
}else{
return new Result().error("预约时间已过,签到失败!");
}
}
@GetMapping(value = "/waitingNum/{appointmentOrderId}")
@ApiOperation("获取当前预约的排队人数")
public Result waitingNum (@PathVariable(value = "appointmentOrderId") Long appointmentOrderId){
//根据appointmentOrderId获取到订单实体
AppointmentOrderDTO appointmentOrderDTO = appointmentOrderService.get(appointmentOrderId);
//获取当前订单预约时间
Integer waitingNum = appointmentOrderService.waitingNum(DateUtils.format(appointmentOrderDTO.getAppointmentTime()));
return new Result().ok(waitingNum); }
}*/
@GetMapping(value = "/serviceWaitingNum/{serviceId}") @GetMapping(value = "/serviceWaitingNum/{serviceId}")
@ApiOperation("获取当前事项的预约排队人数") @ApiOperation("获取当前事项的预约排队人数")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment