| | |
| | | import me.zhengjie.modules.system.domain.User;
|
| | | import me.zhengjie.modules.system.repository.SysConfigHolidayRepository;
|
| | | import me.zhengjie.modules.system.repository.UserRepository;
|
| | | import me.zhengjie.utils.DateUtil;
|
| | | import org.apache.commons.lang3.ObjectUtils;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | |
| | | List<AttendanceMonth> insertData = new ArrayList<>();
|
| | | for (AttendanceMonth value : info.values()) {
|
| | | // 查询当月外出
|
| | | List<AttendanceGoOut> goOutList = attendanceGoOutRepository.findByUserAndDate(value.getUserId(), startTime, endTime);
|
| | | List<AttendanceGoOut> goOutList = attendanceGoOutRepository.findByUserAndDate(value.getUserId(), DateUtil.parseAttStartTime(startTime), DateUtil.parseAttEndTime(endTime));
|
| | | int goOutNumber = goOutList.size();
|
| | | // 外出次数
|
| | | value.setGoOutNumber(Long.valueOf(goOutNumber));
|