Bläddra i källkod

印章配置/ 财政编码配置

tags/24080901
liuxinxin 1 år sedan
förälder
incheckning
99979f9f34
3 ändrade filer med 13 tillägg och 3 borttagningar
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java
  2. +8
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/fiscal/controller/CompanyFiscalCodeController.java
  3. +4
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/common/handler/GlobalResponseHandler.java Visa fil

@@ -16,7 +16,7 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
* @Date 2021/7/21 11:26
* @Version 1.0
**/
@RestControllerAdvice(basePackages = {})
@RestControllerAdvice(basePackages = {"com.ningdatech.pmapi.fiscal.controller"})
public class GlobalResponseHandler implements ResponseBodyAdvice<Object> {

private static final String SWAGGER_CLASS_PREFIX = "springfox.documentation";


+ 8
- 2
pmapi/src/main/java/com/ningdatech/pmapi/fiscal/controller/CompanyFiscalCodeController.java Visa fil

@@ -7,8 +7,12 @@ import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
* <p>
* 前端控制器
@@ -25,11 +29,13 @@ public class CompanyFiscalCodeController {
private final CompanyFiscalCodeManage companyFiscalCodeManage;

@ApiOperation(value = "财政编码/配置", notes = "财政编码配置")
@GetMapping("/configure")
public void fiscalAndSealCodeConfigure(ReqCompanyFiscalCodeAndSealSnPO reqCompanyFiscalCodeAndSealSnPO) {
@PostMapping("/configure")
public void fiscalAndSealCodeConfigure(@Valid @RequestBody ReqCompanyFiscalCodeAndSealSnPO reqCompanyFiscalCodeAndSealSnPO) {
companyFiscalCodeManage.fiscalCodeConfigure(reqCompanyFiscalCodeAndSealSnPO);
}





}

+ 4
- 0
pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java Visa fil

@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
* @author liuxinxin
* @date 2023/2/10 下午4:24
@@ -12,9 +14,11 @@ import lombok.Data;
@ApiModel("财政编码配置")
public class ReqCompanyFiscalCodeAndSealSnPO {

@NotBlank
@ApiModelProperty("财政编码")
private String fiscalCode;

@NotBlank
@ApiModelProperty("印章编号")
private String sealSn;



Laddar…
Avbryt
Spara