|
@@ -10477,8 +10477,16 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
}
|
|
}
|
|
List<User> needRangeUserList=new ArrayList<>();
|
|
List<User> needRangeUserList=new ArrayList<>();
|
|
for (User u : allRangeUserList) {
|
|
for (User u : allRangeUserList) {
|
|
- if(u.getInactiveDate()==null||(u.getInactiveDate()!=null&&u.getInactiveDate().isAfter(LocalDate.parse(startDate))||u.getIsActive()==1)){
|
|
|
|
- needRangeUserList.add(u);
|
|
|
|
|
|
+ if(u.getIsActive()==0) {
|
|
|
|
+ //离职人员,判断离职的日期要在所选开始日期之后。才显示该员工
|
|
|
|
+ if (u.getInactiveDate() == null || u.getInactiveDate().isAfter(LocalDate.parse(startDate))) {
|
|
|
|
+ needRangeUserList.add(u);
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ //在职员工,如果有设置在职日期,判断在职日期在所选结束日期之前,才显示该员工
|
|
|
|
+ if (u.getInductionDate() == null || u.getInductionDate().isBefore(LocalDate.parse(endDate))) {
|
|
|
|
+ needRangeUserList.add(u);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
List<LocalDate> days = getDays(LocalDate.parse(startDate, df), LocalDate.parse(endDate, df));
|
|
List<LocalDate> days = getDays(LocalDate.parse(startDate, df), LocalDate.parse(endDate, df));
|