Skip to content

Commit

Permalink
离职用户判断支持多个用户
Browse files Browse the repository at this point in the history
  • Loading branch information
xlinliu committed Sep 18, 2024
1 parent 4564df7 commit c3cff3b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ public Message listAllUsers() {
* @return 离职返回true,未离职false
*/
@RequestMapping(path = "isDismissed", method = RequestMethod.POST)
public Message isDismissed(@RequestBody List<String> usernames) {
public Message isDismissed(@RequestBody Map<String, List<String>> body) {
List<String> usernames = body.get("usernames");
List<Map<String, Boolean>> userStatus = new ArrayList<>(usernames.size());
for (String username : usernames) {
boolean isDismissed;
Expand Down

0 comments on commit c3cff3b

Please sign in to comment.