启用禁用员工账号
This commit is contained in:
@@ -109,4 +109,18 @@ public class EmployeeServiceImpl implements EmployeeService {
|
||||
return new PageResult(total,records);
|
||||
}
|
||||
|
||||
/**
|
||||
* 员工启用禁用
|
||||
* @param status
|
||||
* @param id
|
||||
*/
|
||||
@Override
|
||||
public void startOrStop(Integer status, Long id) {
|
||||
Employee employee = Employee.builder()
|
||||
.id(id)
|
||||
.status(status)
|
||||
.build();
|
||||
employeeMapper.update(employee);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user