Skip to content

Commit

Permalink
Learn
Browse files Browse the repository at this point in the history
  • Loading branch information
wilinz committed Sep 2, 2024
1 parent fdd909a commit 71e8898
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void exportUsersToCsv(HttpServletResponse response, String password, Stri
response.setHeader("Content-Type", "application/json; charset=UTF-8");

try (PrintWriter writer = response.getWriter(); CSVWriter csvWriter = new CSVWriter(writer)) {
String[] header = {"ID", "Name", "Dept", "Location", "Email", "Github ID", "Grade"};
String[] header = {"ID", "Name", "Dept", "Location", "Email", "Github ID", "Grade", "Learn"};
csvWriter.writeNext(header);

List<User> users = userMapper.selectList(grade);
Expand All @@ -309,7 +309,8 @@ public void exportUsersToCsv(HttpServletResponse response, String password, Stri
user.getLocation(),
user.getEmail(),
user.getGithubId(),
user.getGrade()
user.getGrade(),
user.getLearn()
};
csvWriter.writeNext(data);
}
Expand Down

0 comments on commit 71e8898

Please sign in to comment.