Class SysOrganizationController
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<SysOrganization,String>
cn.herodotus.engine.rest.servlet.upms.controller.hr.SysOrganizationController
- All Implemented Interfaces:
cn.herodotus.engine.core.definition.domain.BaseDomain,cn.herodotus.engine.core.definition.domain.Pagination,BindingController<SysOrganization,,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysOrganization, String>> PageController<SysOrganization,,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysOrganization, String>> PaginationController,cn.herodotus.engine.web.core.definition.Controller,Serializable
@RestController
@RequestMapping("/hr/organization")
@Validated
public class SysOrganizationController
extends AbstractJpaWriteableController<SysOrganization,String>
Description: 单位管理接口
- Author:
- : gengwei.zheng
- See Also:
- Date:
- : 2021/9/21 12:19
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncn.herodotus.engine.core.definition.domain.Result<String>cn.herodotus.engine.core.definition.domain.Result<List<SysOrganization>>findByCondition(@NotNull Integer pageNumber, @NotNull Integer pageSize, Integer category) cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysOrganization,String> Methods inherited from class cn.herodotus.engine.web.api.servlet.AbstractJpaWriteableController
saveMethods 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
-
SysOrganizationController
-
-
Method Details
-
getService
public cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysOrganization,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="category",required=false) Integer category) -
findAll
@GetMapping("/list") public cn.herodotus.engine.core.definition.domain.Result<List<SysOrganization>> findAll(@RequestParam(value="category",required=false) Integer category) -
findTree
-
delete
@DeleteMapping("/{id}") public cn.herodotus.engine.core.definition.domain.Result<String> delete(@PathVariable String id) - Specified by:
deletein interfaceBindingController<SysOrganization,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysOrganization, String>> - Overrides:
deletein classAbstractWriteableController<SysOrganization,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysOrganization, String>>
-