|
|
@ -144,7 +144,20 @@ public class ClockingInService implements IClockingInService { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return list.stream().distinct().collect(Collectors.toList()); |
|
|
|
List<CClockingInVo.ClockingInInfo> collect = list.stream().distinct().collect(Collectors.toList()); |
|
|
|
//查询上次检查人
|
|
|
|
for (CClockingInVo.ClockingInInfo clockingInInfo : collect) { |
|
|
|
if (clockingInInfo.getDateTime().equals(format.format(new Date(System.currentTimeMillis())))) { |
|
|
|
for (CClockingInVo.ClockRecord clockRecord : clockingInInfo.getRecordList()) { |
|
|
|
CClockingInVo.LastChecker lastChecker = clockingInDao.queryLastChecker(clockRecord.getMemberId()); |
|
|
|
if (ObjectUtil.isNotNull(lastChecker)) { |
|
|
|
clockRecord.setLastCheckerId(lastChecker.getLastCheckerId()); |
|
|
|
clockRecord.setLastCheckerName(lastChecker.getLastCheckerName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return collect; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -224,6 +237,17 @@ public class ClockingInService implements IClockingInService { |
|
|
|
} |
|
|
|
clockingInDao.updateByPrimaryKeySelective(proClockingIn); |
|
|
|
} |
|
|
|
//审核通过
|
|
|
|
if (2 == params.getType()) { |
|
|
|
ProClockingIn proClockingIn = new ProClockingIn(); |
|
|
|
proClockingIn.setId(params.getId()); |
|
|
|
if (ObjectUtil.isNotNull(params.getMorning())) { |
|
|
|
proClockingIn.setMorningStatus((byte)3); |
|
|
|
} |
|
|
|
if (ObjectUtil.isNotNull(params.getNight())) { |
|
|
|
proClockingIn.setNightStatus((byte)3); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|