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
ba02730b
Commit
ba02730b
authored
Apr 01, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预约修改
parent
35fa6c12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ScheduleManageServiceImpl.java
...plication/order/serve/impl/ScheduleManageServiceImpl.java
+1
-1
ScheduleServeMapper.java
...nfrastructure/mapper/order/serve/ScheduleServeMapper.java
+1
-1
ScheduleServeMapper.xml
src/main/resources/mapper/order/ScheduleServeMapper.xml
+2
-2
No files found.
src/main/java/com/gogirl/application/order/serve/impl/ScheduleManageServiceImpl.java
View file @
ba02730b
...
...
@@ -758,7 +758,7 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
scheduleManageDTO
.
getScheduledUser
(),
scheduleManageDTO
.
getArriveTime
(),
baseServe
.
getSchTypeId
(),
scheduleServeCommand
.
getId
());
scheduleServeCommand
.
get
Serve
Id
());
if
(
ListUtil
.
isNotEmpty
(
typeConflictScheduleServe
))
{
throw
new
RRException
(
"同类型服务一天只能预约一次"
);
}
...
...
src/main/java/com/gogirl/infrastructure/mapper/order/serve/ScheduleServeMapper.java
View file @
ba02730b
...
...
@@ -12,5 +12,5 @@ public interface ScheduleServeMapper extends BaseMapper<ScheduleServe> {
List
<
ScheduleServe
>
selectConflictType
(
@Param
(
"scheduledUser"
)
Integer
scheduledUser
,
@Param
(
"days"
)
Date
days
,
@Param
(
"schTypeId"
)
Integer
schTypeId
,
@Param
(
"s
cheduleServeId"
)
Integer
scheduleS
erveId
);
@Param
(
"s
erveId"
)
Integer
s
erveId
);
}
src/main/resources/mapper/order/ScheduleServeMapper.xml
View file @
ba02730b
...
...
@@ -13,8 +13,8 @@
and TO_DAYS(t1.start_time) = TO_DAYS(#{days})
and t1.main_serve_id is null
and t2.`status` = 1
<if
test=
"s
cheduleS
erveId!=null"
>
and t1.
id != #{scheduleS
erveId}
<if
test=
"serveId!=null"
>
and t1.
serve_id != #{s
erveId}
</if>
</select>
...
...
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