1
This commit is contained in:
parent
f5159ab5f7
commit
2150602335
@ -256,6 +256,18 @@ public class AttendanceGroupServiceImpl implements IAttendanceGroupService {
|
|||||||
AttendanceGroup update = MapstructUtils.convert(bo, AttendanceGroup.class);
|
AttendanceGroup update = MapstructUtils.convert(bo, AttendanceGroup.class);
|
||||||
validEntityBeforeSave(update);
|
validEntityBeforeSave(update);
|
||||||
|
|
||||||
|
//根据参数判断当前是固定班制还是排班制
|
||||||
|
if (Objects.equals(update.getAttendanceType(), FIXEDSCHEDULE)) {
|
||||||
|
//1.固定班制
|
||||||
|
//取出考勤组id
|
||||||
|
Long groupId = update.getId();
|
||||||
|
//根据考勤组id修改attendance_week_set表中的数据
|
||||||
|
weekSetMapper.update(null, Wrappers.<AttendanceWeekSet>lambdaUpdate().eq(AttendanceWeekSet::getGroupId, groupId));
|
||||||
|
//根据考勤组id查询出考勤周期id
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return baseMapper.updateById(update) > 0;
|
return baseMapper.updateById(update) > 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user