diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/AttendanceGroupServiceImpl.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/AttendanceGroupServiceImpl.java index 0c27bf9..26acfeb 100644 --- a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/AttendanceGroupServiceImpl.java +++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/AttendanceGroupServiceImpl.java @@ -256,6 +256,18 @@ public class AttendanceGroupServiceImpl implements IAttendanceGroupService { AttendanceGroup update = MapstructUtils.convert(bo, AttendanceGroup.class); validEntityBeforeSave(update); + //根据参数判断当前是固定班制还是排班制 + if (Objects.equals(update.getAttendanceType(), FIXEDSCHEDULE)) { + //1.固定班制 + //取出考勤组id + Long groupId = update.getId(); + //根据考勤组id修改attendance_week_set表中的数据 + weekSetMapper.update(null, Wrappers.lambdaUpdate().eq(AttendanceWeekSet::getGroupId, groupId)); + //根据考勤组id查询出考勤周期id + } + + + return baseMapper.updateById(update) > 0; }