Commit 94772bf3 by huluobin

美甲师排班

parent ba02730b
...@@ -51,7 +51,7 @@ public class StoreClassesTechnicianServiceImpl extends ServiceImpl<StoreClassesT ...@@ -51,7 +51,7 @@ public class StoreClassesTechnicianServiceImpl extends ServiceImpl<StoreClassesT
@Override @Override
public List<StoreClassesTechnician> listClassesTechnicianDetail(Integer userId, String days) { public List<StoreClassesTechnician> listClassesTechnicianDetail(Integer userId, String days) {
return storeClassesTechnicianMapper.listClassesTechnicianDetail(userId, days); return storeClassesTechnicianMapper.listClassesTechnicianDetail(userId, days, SessionUtils.getTechnicianToken().getDepartmentId());
} }
@Override @Override
......
...@@ -25,7 +25,7 @@ public interface StoreClassesTechnicianMapper extends BaseMapper<StoreClassesTec ...@@ -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> 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); List<StoreClassesTechnician> listClassesTechnicianDetailByDays(@Param("userId") Integer userId, @Param("days") String days);
......
...@@ -304,7 +304,6 @@ public class Schedule { ...@@ -304,7 +304,6 @@ public class Schedule {
orderServeMapper.syncOrderServeTimes(); orderServeMapper.syncOrderServeTimes();
} }
@Scheduled(cron = "0 0/1 * * * *") @Scheduled(cron = "0 0/1 * * * *")
public void weekTest() { public void weekTest() {
log.debug("同步闲时折扣周"); log.debug("同步闲时折扣周");
......
spring: spring:
profiles: profiles:
active: pre active: prod
servlet: servlet:
#文件上传最大容量 #文件上传最大容量
multipart: multipart:
......
...@@ -80,14 +80,17 @@ ...@@ -80,14 +80,17 @@
</sql> </sql>
<select id="listClassesTechnicianDetail" resultMap="classesTechnicianMap"> <select id="listClassesTechnicianDetail" resultMap="classesTechnicianMap">
select SELECT *
<include refid="storeClassesTechnicianSql"/> FROM (
from SELECT ct.*
store_classes_technician ct FROM store_classes_technician ct
where LEFT JOIN store_classes sc ON ct.classes = sc.id
user_id = #{userId} WHERE ct.user_id = #{userId}
and AND date_format(ct.days, '%Y-%m') = #{days}
date_format(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>
<select id="listClassesTechnicianDetailByDays" <select id="listClassesTechnicianDetailByDays"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment