diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/AttendanceScheduleCycle.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/AttendanceScheduleCycle.java index 419f752..d935277 100644 --- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/AttendanceScheduleCycle.java +++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/AttendanceScheduleCycle.java @@ -42,5 +42,7 @@ public class AttendanceScheduleCycle extends TenantEntity { */ private Long isRest; + private Long scheduleId; + } diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/AttendanceWeekSet.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/AttendanceWeekSet.java index ed01208..e57f28c 100644 --- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/AttendanceWeekSet.java +++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/AttendanceWeekSet.java @@ -42,5 +42,7 @@ public class AttendanceWeekSet extends TenantEntity { */ private Integer isRest; + private Long shiftId; + } diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/AttendanceGroupBo.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/AttendanceGroupBo.java index 5211895..e4aab70 100644 --- a/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/AttendanceGroupBo.java +++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/domain/bo/AttendanceGroupBo.java @@ -47,10 +47,6 @@ public class AttendanceGroupBo extends BaseEntity { */ private Long attendanceType; - /** - *前端传班次id - */ - private Long shiftId; List numList; 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 0476609..3c8e352 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 @@ -169,7 +169,7 @@ public class AttendanceGroupServiceImpl implements IAttendanceGroupService { //向中间表插入周期的id AttendanceWeeksetShift attendanceWeeksetShift = new AttendanceWeeksetShift(); attendanceWeeksetShift.setWeekSetId(weekSetId); - attendanceWeeksetShift.setShiftId(bo.getShiftId()); + attendanceWeeksetShift.setShiftId(weekSet.getShiftId()); attendanceWeeksetShiftMapper.insert(attendanceWeeksetShift); } ); @@ -202,7 +202,7 @@ public class AttendanceGroupServiceImpl implements IAttendanceGroupService { //向中间表插入周期的id AttendanceWeeksetShift attendanceWeeksetShift = new AttendanceWeeksetShift(); attendanceWeeksetShift.setWeekSetId(scheduleId); - attendanceWeeksetShift.setShiftId(bo.getShiftId()); + attendanceWeeksetShift.setShiftId(num.getScheduleId()); attendanceWeeksetShiftMapper.insert(attendanceWeeksetShift); } );