liujie
2026-06-09 c96fbe6b0aeb413a17c429133ee6d81d138144b9
xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpClockInServiceImpl.java
@@ -129,7 +129,7 @@
    }
    @Override
    public R<String> clockIn(ClockDTO dto) {
    public R<Integer> clockIn(ClockDTO dto) {
        XpCheckLocation xpCheckLocation = xpCheckLocationMapper.selectById(dto.getLocationId());
        if (null == xpCheckLocation) {
@@ -173,11 +173,11 @@
        }
        this.save(xpClockIn);
        sendAgreementUpdateNotification(now);
        return R.ok();
        return R.ok(xpClockIn.getClockInResult());
    }
    @Override
    public R<String> clockOut(ClockDTO dto) {
    public R<Integer> clockOut(ClockDTO dto) {
        XpCheckLocation xpCheckLocation = xpCheckLocationMapper.selectById(dto.getLocationId());
        if (null == xpCheckLocation) {
@@ -229,7 +229,7 @@
                this.updateById(xpClockIn);
            }
            sendAgreementUpdateNotification(now);
            return R.ok();
            return R.ok(xpClockIn.getClockOutResult());
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            log.error("下班打卡获取考勤锁被中断, appUserId={}", dto.getOperationsUserId(), e);
@@ -318,6 +318,9 @@
        } else {
            xpClockIn.setClockOutResult(1);
        }
        xpClockIn.setAppUserId(null);
        this.updateById(xpClockIn);
        sendAgreementUpdateNotification(now);
    }
    private String buildAttendanceLockKey(Long appUserId, LocalDate attendanceDate) {