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
0d833f94
Commit
0d833f94
authored
Aug 17, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a61e2e85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
ScheduleManageServiceImpl.java
...plication/order/serve/impl/ScheduleManageServiceImpl.java
+19
-0
No files found.
src/main/java/com/gogirl/application/order/serve/impl/ScheduleManageServiceImpl.java
View file @
0d833f94
...
...
@@ -1560,6 +1560,7 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
scheduleServe
.
setProduceId
(
scheduleServeCommand
.
getProduceId
());
//服务id
scheduleServe
.
setServeId
(
scheduleServeCommand
.
getServeId
());
scheduleServe
.
setMainServeId
((
scheduleServeCommand
.
getMainServeId
()));
return
scheduleServe
;
})
.
collect
(
Collectors
.
toList
()));
...
...
@@ -1575,6 +1576,8 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
IdleTimeDTO
idleTimeDTO
=
idleTimeDTOList
.
stream
().
findAny
().
orElseThrow
(
NullPointerException:
:
new
);
if
(!
idleTimeDTO
.
isStatus
())
{
throw
new
RRException
(
"预约时间已过期"
);
}
else
{
this
.
validTechnician
(
scheduleManage
.
getListScheduleServer
().
stream
().
filter
(
scheduleServe
->
scheduleServe
.
getMainServeId
()
==
null
).
collect
(
Collectors
.
toCollection
(
LinkedList:
:
new
)),
idleTimeDTO
.
getTreeProgram
().
getChildList
());
}
}
catch
(
RRException
e
)
{
...
...
@@ -1596,6 +1599,22 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
}
}
void
validTechnician
(
Queue
<
ScheduleServe
>
scheduleServeList
,
List
<
TreeProgram
>
childList
)
{
if
(
ListUtil
.
isNotEmpty
(
scheduleServeList
))
{
ScheduleServe
scheduleServe
=
scheduleServeList
.
poll
();
TreeProgram
findChild
=
childList
.
stream
()
.
filter
(
treeProgram
->
treeProgram
.
getStoreTechnicianDTO
().
getTechnicianId
().
equals
(
scheduleServe
.
getTechnicianId
())
&&
treeProgram
.
getScheduleServeQuery
().
getServeId
().
equals
(
scheduleServe
.
getServeId
()))
.
findAny
()
.
orElseThrow
(()
->
new
RRException
(
"预约时间已过期"
));
if
(
ListUtil
.
isNotEmpty
(
scheduleServeList
))
{
this
.
validTechnician
(
scheduleServeList
,
findChild
.
getChildList
());
}
}
}
private
String
getScheduleNo
(
Integer
debarmentId
)
{
//调用店铺服务根据id查询店铺
...
...
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