Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Q
queueForTicket_bl
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mengmeng
queueForTicket_bl
Commits
407909bd
Commit
407909bd
authored
Mar 04, 2021
by
lings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
浙里办
parent
94ad2118
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
AppointmentOrderController.java
...es/appointment/controller/AppointmentOrderController.java
+2
-17
No files found.
hmit-api/src/main/java/io/hmit/modules/appointment/controller/AppointmentOrderController.java
View file @
407909bd
...
@@ -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
(
"获取当前事项的预约排队人数"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment