|
@ -159,11 +159,43 @@ public class ClockingInService implements IClockingInService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void auditRecord(CClockingInDto.Audit params, Long userId) { |
|
|
public void auditRecord(CClockingInDto.Audit params, Long userId) { |
|
|
|
|
|
ProClockingIn record = clockingInDao.selectByPrimaryKey(params.getId()); |
|
|
|
|
|
Long userOfMemberId = memberDao.findUserOfMemberId(params.getProjectId(), userId); |
|
|
|
|
|
if (!record.getCheckerId().equals(userOfMemberId)) { |
|
|
|
|
|
throw new BaseException(CommonCodeError.NO_POWER); |
|
|
|
|
|
} |
|
|
|
|
|
//修改
|
|
|
|
|
|
if (0 == params.getType()) { |
|
|
|
|
|
ProClockingIn proClockingIn = new ProClockingIn(); |
|
|
|
|
|
proClockingIn.setId(params.getId()); |
|
|
|
|
|
if (ObjectUtil.isNotNull(params.getMorning())) { |
|
|
|
|
|
proClockingIn.setMorning(params.getMorning()); |
|
|
|
|
|
} |
|
|
|
|
|
if (ObjectUtil.isNotNull(params.getNight())) { |
|
|
|
|
|
proClockingIn.setNight(params.getNight()); |
|
|
|
|
|
} |
|
|
|
|
|
clockingInDao.updateByPrimaryKeySelective(proClockingIn); |
|
|
|
|
|
} |
|
|
|
|
|
//驳回
|
|
|
|
|
|
if (1 == params.getType()) { |
|
|
|
|
|
ProClockingIn proClockingIn = new ProClockingIn(); |
|
|
|
|
|
if (ObjectUtil.isNotNull(params.getMorning())) { |
|
|
|
|
|
proClockingIn.setMorningStatus((byte)2); |
|
|
|
|
|
} |
|
|
|
|
|
if (ObjectUtil.isNotNull(params.getNight())) { |
|
|
|
|
|
proClockingIn.setNightStatus((byte)2); |
|
|
|
|
|
} |
|
|
|
|
|
clockingInDao.updateByPrimaryKeySelective(proClockingIn); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public CClockingInVo.ExcelUrl exportRecord(CClockingInDto.ExportRecord params, Long userId) { |
|
|
public CClockingInVo.ExcelUrl exportRecord(CClockingInDto.QueryClockingIn params, Long userId) { |
|
|
|
|
|
log.info("开始调用查询考勤方法"); |
|
|
|
|
|
List<CClockingInVo.ClockingInInfo> clockingInInfos = queryClockingIn(params, userId); |
|
|
|
|
|
log.info("调用查询考勤方法结束{}",clockingInInfos); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|