Commit 1795462b authored by 赵啸非's avatar 赵啸非

修改员工导出

parent 387bd207
...@@ -86,8 +86,9 @@ public class PerformAttendRecordServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -86,8 +86,9 @@ public class PerformAttendRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
} }
entity.setErrorResult(entity.getRuleName()); entity.setErrorResult(entity.getRuleName());
entity.setDeductTime(new Date()); entity.setDeductTime(new Date());
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName()); if(ObjectUtils.isEmpty(entity.getDeductPerson())){
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName());
}
if (!ObjectUtils.isEmpty(entity.getAttendanceGroupId())) { if (!ObjectUtils.isEmpty(entity.getAttendanceGroupId())) {
AttendanceGroupEntity attendanceGroupEntity = attendanceGroupService.get(entity.getAttendanceGroupId()); AttendanceGroupEntity attendanceGroupEntity = attendanceGroupService.get(entity.getAttendanceGroupId());
entity.setAttendanceGroupName(attendanceGroupEntity == null ? "" : attendanceGroupEntity.getGroupName()); entity.setAttendanceGroupName(attendanceGroupEntity == null ? "" : attendanceGroupEntity.getGroupName());
......
...@@ -67,8 +67,9 @@ public class PerformComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Pe ...@@ -67,8 +67,9 @@ public class PerformComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Pe
} }
entity.setDeductTime(new Date()); entity.setDeductTime(new Date());
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName()); if(ObjectUtils.isEmpty(entity.getDeductPerson())){
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName());
}
} }
@Override @Override
......
...@@ -66,8 +66,9 @@ public class PerformEffectRecordServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -66,8 +66,9 @@ public class PerformEffectRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
entity.setDeptName(staffCache == null ? "" : staffCache.getDeptName()); entity.setDeptName(staffCache == null ? "" : staffCache.getDeptName());
} }
entity.setDeductTime(new Date()); entity.setDeductTime(new Date());
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName()); if(ObjectUtils.isEmpty(entity.getDeductPerson())){
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName());
}
} }
@Override @Override
......
...@@ -65,8 +65,9 @@ public class PerformGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -65,8 +65,9 @@ public class PerformGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
entity.setDeptName(staffCache == null ? "" : staffCache.getDeptName()); entity.setDeptName(staffCache == null ? "" : staffCache.getDeptName());
} }
entity.setDeductTime(new Date()); entity.setDeductTime(new Date());
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName()); if(ObjectUtils.isEmpty(entity.getDeductPerson())){
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName());
}
} }
@Override @Override
......
...@@ -67,7 +67,10 @@ public class PerformOtherRecordServiceImpl extends AbstractCRUDServiceImpl<Perfo ...@@ -67,7 +67,10 @@ public class PerformOtherRecordServiceImpl extends AbstractCRUDServiceImpl<Perfo
} }
entity.setDeductTime(new Date()); entity.setDeductTime(new Date());
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName());
if(ObjectUtils.isEmpty(entity.getDeductPerson())){
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName());
}
} }
......
...@@ -66,8 +66,9 @@ public class PerformReviewRecordServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -66,8 +66,9 @@ public class PerformReviewRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
entity.setDeptName(staffCache == null ? "" : staffCache.getDeptName()); entity.setDeptName(staffCache == null ? "" : staffCache.getDeptName());
} }
entity.setDeductTime(new Date()); entity.setDeductTime(new Date());
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName()); if(ObjectUtils.isEmpty(entity.getDeductPerson())){
entity.setDeductPerson(context == null ? "" : context.getUser() == null ? "" : context.getUser().getRealName());
}
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment