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
8ddb8897
Commit
8ddb8897
authored
Feb 19, 2021
by
lings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4、预约详情接口(林刚生)
5、当前预约排队人数接口(林刚生) 6、现场签到接口(林刚生)
parent
ba552e51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
AppointmentOrderController.java
...es/appointment/controller/AppointmentOrderController.java
+16
-9
No files found.
hmit-admin/src/main/java/io/hmit/modules/appointment/controller/AppointmentOrderController.java
View file @
8ddb8897
...
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.*;
import
springfox.documentation.annotations.ApiIgnore
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -77,15 +78,21 @@ public class AppointmentOrderController {
...
@@ -77,15 +78,21 @@ public class AppointmentOrderController {
return
new
Result
();
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
();
return
new
Result
();
}
}
...
...
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