修改员工登出功能

This commit is contained in:
czx 2020-12-21 17:54:11 +08:00
parent fd7108f412
commit 16afb20621

View File

@ -179,9 +179,9 @@ public class ClientController extends BaseController {
return staffInfoDaoService.login(tel, password);
}
@PostMapping("/logout/{staffId}")
public AjaxResult logout(@PathVariable("staffId") Long staffId) {
return AjaxResult.success(staffInfoDaoService.logout(staffId));
@PostMapping("/logout")
public AjaxResult logout(@RequestBody JSONObject params) {
return AjaxResult.success(staffInfoDaoService.logout(params.getLong("staffId")));
}
@GetMapping("/getWorkday")