pengcheng il y a 3 semaines
Parent
commit
01c7fd8fa7

+ 1 - 0
ruoyi-system/src/main/java/com/ruoyi/clock/service/impl/ClockRecordServiceImpl.java

@@ -380,6 +380,7 @@ public class ClockRecordServiceImpl implements IClockRecordService {
         if (ObjectUtil.isNotNull(existing)) {
             // 今天已打卡 → 更新打卡记录
             existing.setScreenshot(bo.getScreenshot());
+            existing.setStatus(ClockStatusEnum.NORMAL.getCode());
             existing.setClockDate(bo.getClockDate() != null ? bo.getClockDate() : new Date());
             baseMapper.updateById(existing);
             recordId = existing.getRecordId();