From 8b65a38b7802edc02415a979e5d624144646a988 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Wed, 16 Aug 2023 10:00:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=99=E6=94=BF=E9=92=89=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=E5=8F=96=E7=A4=BE=E4=BC=9A=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E7=BC=96=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../irs/controller/OrganizationController.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/OrganizationController.java diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/OrganizationController.java b/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/OrganizationController.java new file mode 100644 index 0000000..fe0ecd9 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/OrganizationController.java @@ -0,0 +1,34 @@ +package com.ningdatech.pmapi.irs.controller; + +import com.ningdatech.zwdd.client.ZwddClient; +import com.ningdatech.zwdd.model.dto.DingOrgInfoDTO; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +/** + * @Classname OrganizationController + * @Description + * @Date 2023/8/16 9:57 + * @Author PoffyZhang + */ +@Slf4j +@Validated +@RestController +@RequestMapping("/api/v1/irs/org") +@Api(value = "Organization", tags = "irs-企业信息") +@RequiredArgsConstructor +public class OrganizationController { + + private final ZwddClient zwddClient; + + @ApiOperation(value = "获取企业信息", notes = "获取企业信息") + @GetMapping("/getOrganizationByCode/{code}") + public DingOrgInfoDTO getOrganizationByCode(@PathVariable String code) { + return zwddClient.getOrganizationByCode(code).getData(); + } + +} From 5e9c64462b0ec6306e47afe6b894a5da73260169 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Wed, 16 Aug 2023 10:26:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9D=A1=E7=BA=BF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ningdatech/pmapi/irs/controller/OrganizationController.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/OrganizationController.java b/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/OrganizationController.java index fe0ecd9..0f40b6f 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/OrganizationController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/OrganizationController.java @@ -2,6 +2,7 @@ package com.ningdatech.pmapi.irs.controller; import com.ningdatech.zwdd.client.ZwddClient; import com.ningdatech.zwdd.model.dto.DingOrgInfoDTO; +import com.ningdatech.zwdd.model.dto.SubGovBusinessStripsDTO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; @@ -9,6 +10,8 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; +import java.util.List; + /** * @Classname OrganizationController * @Description @@ -31,4 +34,9 @@ public class OrganizationController { return zwddClient.getOrganizationByCode(code).getData(); } + @ApiOperation(value = "获取条线列表", notes = "获取条线列表") + @GetMapping("/getGovBusinessStripLine/{code}") + public List getGovBusinessStripLine(@PathVariable String code) { + return zwddClient.getGovBusinessStripLine(code).getData(); + } }