Class SysEmployeeController
java.lang.Object
cn.herodotus.engine.web.api.servlet.AbstractReadableController<E,ID,S>
cn.herodotus.engine.web.api.servlet.AbstractWriteableController<E,ID,cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<E,ID>>
cn.herodotus.engine.web.api.servlet.AbstractJpaWriteableController<SysEmployee,String>
cn.herodotus.engine.rest.servlet.upms.controller.hr.SysEmployeeController
- All Implemented Interfaces:
cn.herodotus.engine.core.definition.domain.BaseDomain,cn.herodotus.engine.core.definition.domain.Pagination,BindingController<SysEmployee,,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysEmployee, String>> PageController<SysEmployee,,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysEmployee, String>> PaginationController,cn.herodotus.engine.web.core.definition.Controller,Serializable
@RestController
@RequestMapping("/hr/employee")
public class SysEmployeeController
extends AbstractJpaWriteableController<SysEmployee,String>
Description: 人员管理Controller
- Author:
- : gengwei.zheng
- See Also:
- Date:
- : 2020/5/19 15:19
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncn.herodotus.engine.core.definition.domain.Result<SysEmployee>cn.herodotus.engine.core.definition.domain.Result<Boolean>deleteAllocatable(AllocatableRemove allocatableRemove) findAllocatable(@NotNull Integer pageNumber, @NotNull Integer pageSize, @NotBlank String organizationId, @NotBlank String departmentId, String employeeName, String mobilePhoneNumber, String email, Integer gender, Integer identity) findAssigned(@NotNull Integer pageNumber, @NotNull Integer pageSize, @NotBlank String departmentId) findByCondition(@NotNull Integer pageNumber, @NotNull Integer pageSize, String employeeName, String mobilePhoneNumber, String officePhoneNumber, String email, String pkiEmail, Integer gender, Integer identity) cn.herodotus.engine.core.definition.domain.Result<SysEmployee>findByEmployeeName(String employeeName) cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysEmployee,String> cn.herodotus.engine.core.definition.domain.Result<Boolean>saveAllocatable(AllocatableDeploy allocatableDeploy) Methods inherited from class cn.herodotus.engine.web.api.servlet.AbstractJpaWriteableController
saveMethods inherited from class cn.herodotus.engine.web.api.servlet.AbstractWriteableController
deleteMethods inherited from class cn.herodotus.engine.web.api.servlet.AbstractReadableController
findByPageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.herodotus.engine.web.api.servlet.BindingController
findAll, findByIdMethods inherited from interface cn.herodotus.engine.web.core.definition.Controller
result, result, result, result, result, result, resultMethods inherited from interface cn.herodotus.engine.web.api.servlet.PageController
findByPage, findByPageMethods inherited from interface cn.herodotus.engine.core.definition.domain.Pagination
with, withMethods inherited from interface cn.herodotus.engine.web.api.servlet.PaginationController
fromPage, fromSlice, resultFromPage, resultFromSlice
-
Constructor Details
-
SysEmployeeController
-
-
Method Details
-
getService
public cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysEmployee,String> getService() -
findByCondition
@GetMapping("/condition") public cn.herodotus.engine.core.definition.domain.Result<Map<String,Object>> findByCondition(@NotNull @RequestParam("pageNumber") @NotNull Integer pageNumber, @NotNull @RequestParam("pageSize") @NotNull Integer pageSize, @RequestParam(value="employeeName",required=false) String employeeName, @RequestParam(value="mobilePhoneNumber",required=false) String mobilePhoneNumber, @RequestParam(value="officePhoneNumber",required=false) String officePhoneNumber, @RequestParam(value="email",required=false) String email, @RequestParam(value="pkiEmail",required=false) String pkiEmail, @RequestParam(value="gender",required=false) Integer gender, @RequestParam(value="identity",required=false) Integer identity) -
authorize
@PutMapping public cn.herodotus.engine.core.definition.domain.Result<SysEmployee> authorize(@RequestParam("employeeId") String employeeId) -
findAllocatable
@GetMapping("/allocatable") public cn.herodotus.engine.core.definition.domain.Result<Map<String,Object>> findAllocatable(@NotNull @RequestParam("pageNumber") @NotNull Integer pageNumber, @NotNull @RequestParam("pageSize") @NotNull Integer pageSize, @NotBlank @RequestParam("organizationId") @NotBlank String organizationId, @NotBlank @RequestParam("departmentId") @NotBlank String departmentId, @RequestParam(value="employeeName",required=false) String employeeName, @RequestParam(value="mobilePhoneNumber",required=false) String mobilePhoneNumber, @RequestParam(value="email",required=false) String email, @RequestParam(value="gender",required=false) Integer gender, @RequestParam(value="identity",required=false) Integer identity) -
findAssigned
@GetMapping("/assigned") public cn.herodotus.engine.core.definition.domain.Result<Map<String,Object>> findAssigned(@NotNull @RequestParam("pageNumber") @NotNull Integer pageNumber, @NotNull @RequestParam("pageSize") @NotNull Integer pageSize, @NotBlank @RequestParam("departmentId") @NotBlank String departmentId) -
saveAllocatable
@PostMapping("/allocatable") public cn.herodotus.engine.core.definition.domain.Result<Boolean> saveAllocatable(@RequestBody AllocatableDeploy allocatableDeploy) -
deleteAllocatable
@DeleteMapping("/allocatable") public cn.herodotus.engine.core.definition.domain.Result<Boolean> deleteAllocatable(@RequestBody AllocatableRemove allocatableRemove) -
findByEmployeeName
@GetMapping("/{employeeName}") public cn.herodotus.engine.core.definition.domain.Result<SysEmployee> findByEmployeeName(@PathVariable("employeeName") String employeeName)
-