From 29c27fb51715a1748f4280fb72e361397698e200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?niohe=C2=B7erbao?= Date: Mon, 3 Apr 2023 14:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=81=E7=BA=A7=E6=9D=A1=E7=BA=BF=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/GovBusinessStripController.java | 8 ++++++++ .../organization/manage/GovBusinessStripManage.java | 11 +++++++++++ .../model/vo/ProvincialGovBusinessStripVO.java | 21 +++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/organization/model/vo/ProvincialGovBusinessStripVO.java diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/GovBusinessStripController.java b/pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/GovBusinessStripController.java index 2e3d4fe..efaafd3 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/GovBusinessStripController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/GovBusinessStripController.java @@ -3,6 +3,7 @@ package com.ningdatech.pmapi.organization.controller; import com.ningdatech.pmapi.organization.manage.GovBusinessStripManage; import com.ningdatech.pmapi.organization.model.vo.GovBusinessStripTreeVO; +import com.ningdatech.pmapi.organization.model.vo.ProvincialGovBusinessStripVO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; @@ -41,4 +42,11 @@ public class GovBusinessStripController { return govBusinessStripManage.getChildOrganizationList(parentCode); } + + @GetMapping("/list") + @ApiOperation("获取省局条线列表") + public List getProvincialGovBusinessStripList() { + return govBusinessStripManage.getProvincialGovBusinessStripList(); + } + } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/organization/manage/GovBusinessStripManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/organization/manage/GovBusinessStripManage.java index 078b653..370d62c 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/organization/manage/GovBusinessStripManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/organization/manage/GovBusinessStripManage.java @@ -3,10 +3,12 @@ package com.ningdatech.pmapi.organization.manage; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.ningdatech.pmapi.organization.entity.GovBusinessStrip; import com.ningdatech.pmapi.organization.model.vo.GovBusinessStripTreeVO; +import com.ningdatech.pmapi.organization.model.vo.ProvincialGovBusinessStripVO; import com.ningdatech.pmapi.organization.service.IGovBusinessStripService; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; +import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.stream.Collectors; @@ -39,4 +41,13 @@ public class GovBusinessStripManage { return govBusinessStripTreeVO; }).collect(Collectors.toList()); } + + public List getProvincialGovBusinessStripList() { + List provincialGovBusinessStripVOList = new ArrayList<>(); + ProvincialGovBusinessStripVO provincialGovBusinessStripVO = new ProvincialGovBusinessStripVO(); + provincialGovBusinessStripVO.setBusinessStripCode("test_provincial_manage_org_code"); + provincialGovBusinessStripVO.setBusinessStripName("测试省局条线主管单位"); + provincialGovBusinessStripVOList.add(provincialGovBusinessStripVO); + return provincialGovBusinessStripVOList; + } } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/organization/model/vo/ProvincialGovBusinessStripVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/organization/model/vo/ProvincialGovBusinessStripVO.java new file mode 100644 index 0000000..65fd25c --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/organization/model/vo/ProvincialGovBusinessStripVO.java @@ -0,0 +1,21 @@ +package com.ningdatech.pmapi.organization.model.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author Liuxinxin + * @since 2023-03-08 + */ +@Data +@ApiModel(value = "条线 responseVO", description = "") +public class ProvincialGovBusinessStripVO { + + @ApiModelProperty("条线code") + private String businessStripCode; + + @ApiModelProperty("条线名称") + private String businessStripName; + +}