From 1281f5d796f1081fb4854bcfa9b77b29486776e9 Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Thu, 10 Jun 2021 10:27:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=84=E7=BB=87=E6=9C=BA?= =?UTF-8?q?=E6=9E=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../departmentBaseController.java | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/main/java/com/tenlion/twoduty/controller/api/departmentbase/departmentBaseController.java diff --git a/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/departmentBaseController.java b/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/departmentBaseController.java new file mode 100644 index 0000000..757c5b0 --- /dev/null +++ b/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/departmentBaseController.java @@ -0,0 +1,55 @@ +package com.tenlion.twoduty.controller.api.departmentbase; + + +import ink.wgink.common.base.DefaultBaseController; +import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.pojo.dtos.department.DepartmentDTO; +import ink.wgink.pojo.pos.DepartmentPO; +import ink.wgink.pojo.result.ErrorResult; +import ink.wgink.service.department.service.IDepartmentService; +import io.swagger.annotations.*; +import org.apache.poi.hssf.record.ArrayRecord; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.ArrayList; +import java.util.List; + +/** + * 组织机构数据封装 + * @author xwangs + * @create 2021-03-29 15:31 + * @description + */ +@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "组织机构数据封装") +@RestController +@RequestMapping(ISystemConstant.API_PREFIX + "/departmentBase") +public class departmentBaseController extends DefaultBaseController { + + @Autowired + private IDepartmentService departmentService; + + private final static String GENGID = "0"; + + + + @ApiOperation(value = "组织机构列表", notes = "组织机构列表接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("list-jur") + public List listJur(){ + List list = new ArrayList<>(); + list = departmentService.listByParentId(GENGID); + return list; + } + + + + + + + + + +}