xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpClockInController.java
@@ -74,17 +74,5 @@ return xpClockInService.clockOut(dto); } @ApiOperation(value = "通过日期查询打卡信息", tags = "运维APP-排班与考勤") @GetMapping("/api/v1/clock/queryClockByDate") public R<XpClockIn> queryClockByDate(@RequestParam String date) { Long id = tokenService.getLoginOperationUser().getId(); XpClockIn xpClockIn = xpClockInService.getOne(Wrappers.lambdaQuery(XpClockIn.class) .eq(XpClockIn::getAppUserId, id) .likeRight(XpClockIn::getClockInTime, date) .orderByDesc(XpClockIn::getClockInTime) .last("LIMIT 1")); return R.ok(xpClockIn); } } xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/service/impl/XpSchedulingDetailServiceImpl.java
@@ -79,6 +79,7 @@ shiftAttendanceVO.setClockIn(false); shiftAttendanceVO.setClockOut(false); }else { shiftAttendanceVO.setXpClockIn(xpClockIn); shiftAttendanceVO.setClockIn(true); shiftAttendanceVO.setClockOut(xpClockIn.getClockOutTime() != null); } xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/vo/ShiftAttendanceVO.java
@@ -1,6 +1,7 @@ package com.xiaopeng.maintenance.vo; import com.xiaopeng.api.model.maintenance.XpCheckLocation; import com.xiaopeng.api.model.maintenance.XpClockIn; import com.xiaopeng.api.model.maintenance.XpShift; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -18,6 +19,9 @@ @ApiModelProperty(value = "打卡地信息") private XpCheckLocation xpCheckLocation; @ApiModelProperty(value = "打卡信息") private XpClockIn xpClockIn; @ApiModelProperty(value = "是否上班打卡 true false") private boolean isClockIn;