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 Details

    • SysDepartmentController

      public SysDepartmentController(SysDepartmentService sysDepartmentService)
  • 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

      @GetMapping("/tree") public cn.herodotus.engine.core.definition.domain.Result<List<cn.hutool.v7.core.tree.MapTree<String>>> findTree(@RequestParam(value="organizationId",required=false) String organizationId)