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
10f56e85
Commit
10f56e85
authored
Mar 30, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改预约
parent
f4e0d5a8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
ScheduleManageServiceImpl.java
...plication/order/serve/impl/ScheduleManageServiceImpl.java
+4
-3
ScheduleServeMapper.java
...nfrastructure/mapper/order/serve/ScheduleServeMapper.java
+2
-1
ScheduleServeMapper.xml
src/main/resources/mapper/order/ScheduleServeMapper.xml
+3
-0
No files found.
src/main/java/com/gogirl/application/order/serve/impl/ScheduleManageServiceImpl.java
View file @
10f56e85
...
...
@@ -757,7 +757,8 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
List
<
ScheduleServe
>
typeConflictScheduleServe
=
scheduleServeMapper
.
selectConflictType
(
scheduleManageDTO
.
getScheduledUser
(),
scheduleManageDTO
.
getArriveTime
(),
baseServe
.
getSchTypeId
());
baseServe
.
getSchTypeId
(),
scheduleServeCommand
.
getId
());
if
(
ListUtil
.
isNotEmpty
(
typeConflictScheduleServe
))
{
throw
new
RRException
(
"同类型服务一天只能预约一次"
);
}
...
...
@@ -765,10 +766,10 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
});
}
private
String
getScheduleNo
(
Integer
de
p
armentId
)
{
private
String
getScheduleNo
(
Integer
de
b
armentId
)
{
//调用店铺服务根据id查询店铺
StoreManage
storeManage
=
storeManageMapper
.
selectById
(
de
p
armentId
);
StoreManage
storeManage
=
storeManageMapper
.
selectById
(
de
b
armentId
);
//生成预约单号
String
shortCode
=
storeManage
.
getShortCode
();
...
...
src/main/java/com/gogirl/infrastructure/mapper/order/serve/ScheduleServeMapper.java
View file @
10f56e85
...
...
@@ -11,5 +11,6 @@ public interface ScheduleServeMapper extends BaseMapper<ScheduleServe> {
List
<
ScheduleServe
>
selectConflictType
(
@Param
(
"scheduledUser"
)
Integer
scheduledUser
,
@Param
(
"days"
)
Date
days
,
@Param
(
"schTypeId"
)
Integer
schTypeId
);
@Param
(
"schTypeId"
)
Integer
schTypeId
,
@Param
(
"scheduleServeId"
)
Integer
scheduleServeId
);
}
src/main/resources/mapper/order/ScheduleServeMapper.xml
View file @
10f56e85
...
...
@@ -13,6 +13,9 @@
and TO_DAYS(t1.start_time) = TO_DAYS(#{days})
and t1.main_serve_id is null
and t2.`status` = 1
<if
test=
"scheduleServeId!=null"
>
and t1.id != #{scheduleServeId}
</if>
</select>
</mapper>
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