BAOLH
2025-12-02 ed46d8fc5e5ba43738b56fe05fdc1f55fabd05c2
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/AttendanceMonthTalkServiceImpl.java
@@ -14,6 +14,7 @@
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;
@@ -138,7 +139,7 @@
        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));