| | |
| | | import me.zhengjie.modules.attendance.service.mapstruct.AttendanceLeaveMapper;
|
| | | import me.zhengjie.modules.constant.Constant;
|
| | | import me.zhengjie.modules.quartz.service.OpaiDingTalkService;
|
| | | import me.zhengjie.modules.quartz.service.impl.DingTalkServiceImpl;
|
| | | import me.zhengjie.modules.quartz.service.impl.WeComServiceImpl;
|
| | | import me.zhengjie.modules.system.domain.*;
|
| | | import me.zhengjie.modules.system.repository.DictDetailRepository;
|
| | | import me.zhengjie.modules.system.repository.SysConfigHolidayRepository;
|
| | |
| | | private final AttendanceGoOutRepository attendanceGoOutRepository;
|
| | | private final AttendanceBusinessTravelRepository attendanceBusinessTravelRepository;
|
| | | private final AttendanceOvertimeRepository attendanceOvertimeRepository;
|
| | | private final DingTalkServiceImpl dingTalkService;
|
| | | private final WeComServiceImpl weComService;
|
| | |
|
| | | @Override
|
| | | public Map<String,Object> queryAll(AttendanceLeaveQueryCriteria criteria, Pageable pageable){
|
| | |
| | | if (attendanceLeave.getLeaveStartTime().before(new Date())) {
|
| | | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
| | | String attendanceDate = df.format(attendanceLeave.getLeaveStartTime());
|
| | | dingTalkService.getDingTalkAttendanceListOfNoonOrNight(attendanceDate,userList);
|
| | | weComService.getWeComAttendanceListOfNoonOrNight(attendanceDate,userList);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
| | | String attendanceDate = df.format(attendanceLeave.getLeaveStartTime());
|
| | | dingTalkService.getDingTalkAttendanceListOfNoonOrNight(attendanceDate,userList);
|
| | | weComService.getWeComAttendanceListOfNoonOrNight(attendanceDate,userList);
|
| | | }
|
| | | }
|
| | |
|