Class SysDepartmentController
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<SysDepartment,String>
cn.herodotus.engine.rest.servlet.upms.controller.hr.SysDepartmentController
- All Implemented Interfaces:
cn.herodotus.engine.core.definition.domain.BaseDomain,cn.herodotus.engine.core.definition.domain.Pagination,BindingController<SysDepartment,,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysDepartment, String>> PageController<SysDepartment,,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysDepartment, String>> PaginationController,cn.herodotus.engine.web.core.definition.Controller,Serializable
@RestController
@RequestMapping("/hr/department")
@Validated
public class SysDepartmentController
extends AbstractJpaWriteableController<SysDepartment,String>
Description: SysDepartmentController
- Author:
- : gengwei.zheng
- See Also:
- Date:
- : 2021/9/23 23:13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncn.herodotus.engine.core.definition.domain.Result<List<SysDepartment>>findAllByOrganizationId(String organizationId) findByCondition(@NotNull Integer pageNumber, @NotNull Integer pageSize, String organizationId) cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysDepartment,String> 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
-
SysDepartmentController
-
-
Method Details
-
getService
public cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysDepartment,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="organizationId",required=false) String organizationId) -
findAllByOrganizationId
@GetMapping("/list") public cn.herodotus.engine.core.definition.domain.Result<List<SysDepartment>> findAllByOrganizationId(@RequestParam(value="organizationId",required=false) String organizationId) -
findTree
-