@ApiOperation("启用禁用员工账号")
@PostMapping("/status/{status}")public Result tartOrClose(@PathVariable Integer status, Long id){
employeeService.StartOrClose(status,id);return Result.success();}
Service层
@Override
publicvoidStartOrClose(Integer status, Long id){
Employee employee= Employee.builder().status(status).id(id).build();
employeeMapper.update(employee);}