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
94772bf3
Commit
94772bf3
authored
Apr 01, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
美甲师排班
parent
ba02730b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
12 deletions
+14
-12
StoreClassesTechnicianServiceImpl.java
...n/store/store/impl/StoreClassesTechnicianServiceImpl.java
+1
-1
StoreClassesTechnicianMapper.java
...ture/mapper/store/store/StoreClassesTechnicianMapper.java
+1
-1
Schedule.java
...ain/java/com/gogirl/infrastructure/schedule/Schedule.java
+0
-1
application.yml
src/main/resources/application.yml
+1
-1
StoreClassesTechnicianMapper.xml
...n/resources/mapper/store/StoreClassesTechnicianMapper.xml
+11
-8
Test.java
src/test/java/com/gogirl/Test.java
+0
-0
No files found.
src/main/java/com/gogirl/application/store/store/impl/StoreClassesTechnicianServiceImpl.java
View file @
94772bf3
...
...
@@ -51,7 +51,7 @@ public class StoreClassesTechnicianServiceImpl extends ServiceImpl<StoreClassesT
@Override
public
List
<
StoreClassesTechnician
>
listClassesTechnicianDetail
(
Integer
userId
,
String
days
)
{
return
storeClassesTechnicianMapper
.
listClassesTechnicianDetail
(
userId
,
days
);
return
storeClassesTechnicianMapper
.
listClassesTechnicianDetail
(
userId
,
days
,
SessionUtils
.
getTechnicianToken
().
getDepartmentId
()
);
}
@Override
...
...
src/main/java/com/gogirl/infrastructure/mapper/store/store/StoreClassesTechnicianMapper.java
View file @
94772bf3
...
...
@@ -25,7 +25,7 @@ public interface StoreClassesTechnicianMapper extends BaseMapper<StoreClassesTec
List
<
StoreClassesTechnician
>
listClassTimeByStartDate
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"departmentId"
)
Integer
departmentId
);
List
<
StoreClassesTechnician
>
listClassesTechnicianDetail
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"days"
)
String
days
);
List
<
StoreClassesTechnician
>
listClassesTechnicianDetail
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"days"
)
String
days
,
@Param
(
"departmentId"
)
Integer
departmentId
);
List
<
StoreClassesTechnician
>
listClassesTechnicianDetailByDays
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"days"
)
String
days
);
...
...
src/main/java/com/gogirl/infrastructure/schedule/Schedule.java
View file @
94772bf3
...
...
@@ -304,7 +304,6 @@ public class Schedule {
orderServeMapper
.
syncOrderServeTimes
();
}
@Scheduled
(
cron
=
"0 0/1 * * * *"
)
public
void
weekTest
()
{
log
.
debug
(
"同步闲时折扣周"
);
...
...
src/main/resources/application.yml
View file @
94772bf3
spring
:
profiles
:
active
:
pr
e
active
:
pr
od
servlet
:
#文件上传最大容量
multipart
:
...
...
src/main/resources/mapper/store/StoreClassesTechnicianMapper.xml
View file @
94772bf3
...
...
@@ -80,14 +80,17 @@
</sql>
<select
id=
"listClassesTechnicianDetail"
resultMap=
"classesTechnicianMap"
>
select
<include
refid=
"storeClassesTechnicianSql"
/>
from
store_classes_technician ct
where
user_id = #{userId}
and
date_format(days, '%Y-%m') = #{days}
SELECT *
FROM (
SELECT ct.*
FROM store_classes_technician ct
LEFT JOIN store_classes sc ON ct.classes = sc.id
WHERE ct.user_id = #{userId}
AND date_format(ct.days, '%Y-%m') = #{days}
and (sc.department_id = #{departmentId} or sc.department_id is null)
ORDER BY ct.days, ct.classes DESC
) t
GROUP BY days
</select>
<select
id=
"listClassesTechnicianDetailByDays"
...
...
src/test/java/com/gogirl/Test.java
View file @
94772bf3
This diff is collapsed.
Click to expand it.
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