#add 根据统一社会代码和年份查下该企业的营收和税收
parent
9a5206b202
commit
bff2f38abc
|
|
@ -9,7 +9,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.sk.module.data.api.finance.dto.FinanceRespDTO;
|
import org.sk.module.data.api.finance.dto.FinanceRespDTO;
|
||||||
import org.sk.module.data.enums.ApiConstants;
|
import org.sk.module.data.enums.ApiConstants;
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
@FeignClient(name = ApiConstants.NAME)
|
@FeignClient(name = ApiConstants.NAME)
|
||||||
|
|
@ -18,14 +18,14 @@ public interface FinanceApi {
|
||||||
|
|
||||||
String PREFIX = ApiConstants.PREFIX + "/finance";
|
String PREFIX = ApiConstants.PREFIX + "/finance";
|
||||||
|
|
||||||
@PostMapping(PREFIX + "/get")
|
@GetMapping(PREFIX + "/getInfo")
|
||||||
@Operation(summary = "获取财务信息")
|
@Operation(summary = "获取财务信息")
|
||||||
@Parameters({
|
@Parameters({
|
||||||
@Parameter(name = "creditCode", description = "统一身份认证编码", example = "SEX", required = true),
|
@Parameter(name = "creditCode", description = "统一身份认证编码", example = "SEX", required = true),
|
||||||
@Parameter(name = "year", description = "年份", example = "2022", required = true)
|
@Parameter(name = "year", description = "年份", example = "2022", required = true)
|
||||||
})
|
})
|
||||||
CommonResult<FinanceRespDTO> getFinanceInfo(@RequestParam("creditCode") String creditCode,
|
CommonResult<FinanceRespDTO> getFinanceInfo(@RequestParam("creditCode") String creditCode,
|
||||||
@RequestParam("year") String year);
|
@RequestParam("year") String year);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue