Commit 127936a8c24d12086e754ebca4dc94986f03dab6
1 parent
957edd3f
fix: 全面修复由于规则数据引发导致的日期问题
Showing
1 changed file
with
2 additions
and
2 deletions
Bsth-admin/src/main/java/com/ruoyi/service/impl/AttendanceServiceImpl.java
| @@ -180,7 +180,7 @@ public class AttendanceServiceImpl implements AttendanceService { | @@ -180,7 +180,7 @@ public class AttendanceServiceImpl implements AttendanceService { | ||
| 180 | public void updateAttendance(UpdateAttendanceVo vo) { | 180 | public void updateAttendance(UpdateAttendanceVo vo) { |
| 181 | RuleAttendanceMain main = new RuleAttendanceMain(); | 181 | RuleAttendanceMain main = new RuleAttendanceMain(); |
| 182 | RuleScheduling ruleScheduling = ruleSchedulingService.selectRuleSchedulingById(vo.getRuleId().longValue()); | 182 | RuleScheduling ruleScheduling = ruleSchedulingService.selectRuleSchedulingById(vo.getRuleId().longValue()); |
| 183 | - BeanUtils.copyProperties(ruleScheduling, main); | 183 | + BeanUtils.copyProperties(ruleScheduling, main,"secondWorkSignInTime","secondSignInWorkingRange","secondQuittingSignInTime","secondSignInQuittingRange","secondSignDayTomorrow"); |
| 184 | List<RuleAttendanceMain> mainList = handleRuleUpdate(vo, main, ruleScheduling); | 184 | List<RuleAttendanceMain> mainList = handleRuleUpdate(vo, main, ruleScheduling); |
| 185 | attendanceMainService.updateByJobCodeTotalQuantity(vo, mainList); | 185 | attendanceMainService.updateByJobCodeTotalQuantity(vo, mainList); |
| 186 | } | 186 | } |
| @@ -581,7 +581,7 @@ public class AttendanceServiceImpl implements AttendanceService { | @@ -581,7 +581,7 @@ public class AttendanceServiceImpl implements AttendanceService { | ||
| 581 | RuleSchedulingDto dto = new RuleSchedulingDto(); | 581 | RuleSchedulingDto dto = new RuleSchedulingDto(); |
| 582 | BeanUtils.copyProperties(ruleScheduling, dto); | 582 | BeanUtils.copyProperties(ruleScheduling, dto); |
| 583 | 583 | ||
| 584 | - BeanUtils.copyProperties(dto, otherMain); | 584 | + BeanUtils.copyProperties(dto, otherMain,"secondWorkSignInTime","secondSignInWorkingRange","secondQuittingSignInTime","secondSignInQuittingRange","secondSignDayTomorrow"); |
| 585 | RuleNumSettingServiceImpl.handleSegmentationByDate(LocalDate.parse(date), otherMain, dto); | 585 | RuleNumSettingServiceImpl.handleSegmentationByDate(LocalDate.parse(date), otherMain, dto); |
| 586 | otherMain.setWorkFlag(dto.getId() == 0 ? FREE_FLAG : WORK_FLAG); | 586 | otherMain.setWorkFlag(dto.getId() == 0 ? FREE_FLAG : WORK_FLAG); |
| 587 | } | 587 | } |