Commit bc8e2022 authored by 廖旭伟's avatar 廖旭伟

页面保存请假记录bug修改

parent dd83730b
...@@ -130,7 +130,7 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont ...@@ -130,7 +130,7 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont
@Override @Override
protected void saveBefore(AttendanceLeaveRecordEntity entity, Map<String, Object> model, Context context) throws AppException { protected void saveBefore(AttendanceLeaveRecordEntity entity, Map<String, Object> model, Context context) throws AppException {
if(entity.getStaffId()!=null){ if(entity.getLeavePersonId()!=null){
StaffEntity staffEntity = staffService.getCache(entity.getLeavePersonId().toString()); StaffEntity staffEntity = staffService.getCache(entity.getLeavePersonId().toString());
if(staffEntity!=null){ if(staffEntity!=null){
entity.setLeavePerson(staffEntity.getName()); entity.setLeavePerson(staffEntity.getName());
......
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