Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
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
huluobin
gogirl-miniapp-backend
Commits
77927ee7
Commit
77927ee7
authored
Jun 30, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
30df99a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
ScheduleManageController.java
...girl/interfaces/order/serve/ScheduleManageController.java
+17
-2
No files found.
src/main/java/com/gogirl/interfaces/order/serve/ScheduleManageController.java
View file @
77927ee7
...
...
@@ -36,6 +36,7 @@ import lombok.AllArgsConstructor;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.*
;
import
java.security.InvalidParameterException
;
import
java.text.ParseException
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -211,8 +212,22 @@ public class ScheduleManageController {
@ApiOperation
(
"更新预约"
)
@PostMapping
(
"/technician/schedule/updateSchedule"
)
public
JsonResult
<
Void
>
updateSchedule
(
@RequestBody
SubmitScheduleCommand
cmd
)
throws
ParseException
,
ExecutionException
,
InterruptedException
{
cmd
.
getScheduleManageDTO
().
setDepartmentId
(
SessionUtils
.
getTechnicianToken
().
getDepartmentId
());
scheduleManageService
.
updateSchedule
(
cmd
);
ScheduledLock
scheduledLock
=
ScheduledLock
.
getInstance
();
try
{
log
.
info
(
"店员更新预约:{}"
,
cmd
);
if
(
cmd
.
getScheduleManageDTO
().
getId
()
==
null
)
{
throw
new
InvalidParameterException
();
}
scheduledLock
.
lock
(
cmd
.
getScheduleManageDTO
().
getId
());
cmd
.
getScheduleManageDTO
().
setDepartmentId
(
SessionUtils
.
getTechnicianToken
().
getDepartmentId
());
scheduleManageService
.
updateSchedule
(
cmd
);
}
finally
{
scheduledLock
.
unlock
(
cmd
.
getScheduleManageDTO
().
getId
());
}
return
JsonResult
.
success
();
}
...
...
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