Commit 8ddb8897 authored by lings's avatar lings

4、预约详情接口(林刚生)

5、当前预约排队人数接口(林刚生)
6、现场签到接口(林刚生)
parent ba552e51
......@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;
import java.util.Map;
......@@ -77,15 +78,21 @@ public class AppointmentOrderController {
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@RequiresPermissions("appointment:appointmentorder:update")
public Result update(@RequestBody AppointmentOrderDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
appointmentOrderService.update(dto);
@GetMapping(value = "/signin/{appointmentOrderId}")
@ApiOperation("签到")
@LogOperation("签到")
public Result update(@PathVariable(value = "appointmentOrderId") Long appointmentOrderId){
//根据appointmentOrderId获取到订单实体
AppointmentOrderDTO appointmentOrderDTO = appointmentOrderService.get(appointmentOrderId);
if (appointmentOrderDTO.getAppointmentTime().getTime() > new Date().getTime()) {
appointmentOrderDTO.setStatus(2);
appointmentOrderDTO.setStatusName("签到");
}
appointmentOrderService.update(appointmentOrderDTO);
return new Result();
}
......
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