From 9efb245ce7a260faae3f8128b5068a6236a25614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?niohe=C2=B7erbao?= Date: Fri, 14 Apr 2023 10:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=B0=E7=AB=A0=E9=85=8D=E7=BD=AE-=E8=B4=A2?= =?UTF-8?q?=E6=94=BF=E7=BC=96=E7=A0=81=E9=85=8D=E7=BD=AE=E4=BC=A0=E5=85=A5?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BB=BB=E8=81=8C=E5=8D=95=E4=BD=8Dcode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/fiscal/manage/CompanyFiscalCodeManage.java | 4 ++-- .../pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java | 2 +- .../pmapi/fiscal/model/po/ReqGetCompanyFiscalCodeAndSealSnPO.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/manage/CompanyFiscalCodeManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/manage/CompanyFiscalCodeManage.java index db64160..e481d4a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/manage/CompanyFiscalCodeManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/manage/CompanyFiscalCodeManage.java @@ -35,7 +35,7 @@ public class CompanyFiscalCodeManage { String organizationCode = reqCompanyFiscalCodeAndSealSnPO.getOrganizationCode(); if (StringUtils.isBlank(organizationCode)) { - organizationCode = userInfoHelper.getOrganizationCode(userId); + organizationCode = userInfoHelper.getUserEmpPosUnitCode(userId); } // TODO 校验用户权限 @@ -73,7 +73,7 @@ public class CompanyFiscalCodeManage { Long userId = LoginUserUtil.getUserId(); String organizationCode = request.getOrganizationCode(); if (StringUtils.isBlank(organizationCode)) { - organizationCode = userInfoHelper.getOrganizationCode(userId); + organizationCode = userInfoHelper.getUserEmpPosUnitCode(userId); } CompanySignature companySignature = iCompanySignatureService.getByOrganizationCode(organizationCode); CompanyFiscalCode companyFiscalCode = iCompanyFiscalCodeService.getByOrganizationCode(organizationCode); diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java b/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java index 05255ae..ff38f78 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java @@ -15,7 +15,7 @@ import javax.validation.constraints.NotBlank; public class ReqCompanyFiscalCodeAndSealSnPO { // @NotBlank(message = "组织编码 不能为空") - @ApiModelProperty("组织编码") + @ApiModelProperty("组织编码(需传入用户任职单位code)") private String organizationCode; @NotBlank(message = "财政编码 不能为空") diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqGetCompanyFiscalCodeAndSealSnPO.java b/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqGetCompanyFiscalCodeAndSealSnPO.java index bc6d313..d891f53 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqGetCompanyFiscalCodeAndSealSnPO.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqGetCompanyFiscalCodeAndSealSnPO.java @@ -12,7 +12,7 @@ import lombok.Data; @ApiModel("获取财政编码配置") public class ReqGetCompanyFiscalCodeAndSealSnPO { - @ApiModelProperty("组织编码") + @ApiModelProperty("组织编码(需传入用户任职单位code)") private String organizationCode; }