data.put("user.lastName", employment.getUser().getLastName());
data.put("employeeCode", employment.getEmployeeCode());
data.put("role", employment.getRole());
data.put("department.name", (employment.getDepartment() != null) ? employment.getDepartment().getName() : "");
data.put("grade.name", (employment.getGrade() != null) ? employment.getGrade().getName() : "");
jsonObject.accumulate("data", data);
}
}
jsonObject.accumulate("total", employmentDao.getTotalEmploymentsNotInDepartment(name, orgId, deptId));
jsonObject.accumulate("start", start);