|
@@ -64,4 +64,11 @@ public class EmployeeController extends BaseController {
|
|
|
employeeService.deleteEmployee(userId);
|
|
|
return succeed();
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取所有员工")
|
|
|
+ @GetMapping("/findAll")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('employee/findAll')")
|
|
|
+ public Object findAll() {
|
|
|
+ return succeed(employeeService.findAll(null));
|
|
|
+ }
|
|
|
}
|