Browse Source

印章配置-财政编码配置传入用户任职单位code

tags/24080901
niohe·erbao 1 year ago
parent
commit
9efb245ce7
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/fiscal/manage/CompanyFiscalCodeManage.java
  2. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java
  3. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqGetCompanyFiscalCodeAndSealSnPO.java

+ 2
- 2
pmapi/src/main/java/com/ningdatech/pmapi/fiscal/manage/CompanyFiscalCodeManage.java View File

@@ -35,7 +35,7 @@ public class CompanyFiscalCodeManage {


String organizationCode = reqCompanyFiscalCodeAndSealSnPO.getOrganizationCode(); String organizationCode = reqCompanyFiscalCodeAndSealSnPO.getOrganizationCode();
if (StringUtils.isBlank(organizationCode)) { if (StringUtils.isBlank(organizationCode)) {
organizationCode = userInfoHelper.getOrganizationCode(userId);
organizationCode = userInfoHelper.getUserEmpPosUnitCode(userId);
} }
// TODO 校验用户权限 // TODO 校验用户权限


@@ -73,7 +73,7 @@ public class CompanyFiscalCodeManage {
Long userId = LoginUserUtil.getUserId(); Long userId = LoginUserUtil.getUserId();
String organizationCode = request.getOrganizationCode(); String organizationCode = request.getOrganizationCode();
if (StringUtils.isBlank(organizationCode)) { if (StringUtils.isBlank(organizationCode)) {
organizationCode = userInfoHelper.getOrganizationCode(userId);
organizationCode = userInfoHelper.getUserEmpPosUnitCode(userId);
} }
CompanySignature companySignature = iCompanySignatureService.getByOrganizationCode(organizationCode); CompanySignature companySignature = iCompanySignatureService.getByOrganizationCode(organizationCode);
CompanyFiscalCode companyFiscalCode = iCompanyFiscalCodeService.getByOrganizationCode(organizationCode); CompanyFiscalCode companyFiscalCode = iCompanyFiscalCodeService.getByOrganizationCode(organizationCode);


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqCompanyFiscalCodeAndSealSnPO.java View File

@@ -15,7 +15,7 @@ import javax.validation.constraints.NotBlank;
public class ReqCompanyFiscalCodeAndSealSnPO { public class ReqCompanyFiscalCodeAndSealSnPO {


// @NotBlank(message = "组织编码 不能为空") // @NotBlank(message = "组织编码 不能为空")
@ApiModelProperty("组织编码")
@ApiModelProperty("组织编码(需传入用户任职单位code)")
private String organizationCode; private String organizationCode;


@NotBlank(message = "财政编码 不能为空") @NotBlank(message = "财政编码 不能为空")


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/fiscal/model/po/ReqGetCompanyFiscalCodeAndSealSnPO.java View File

@@ -12,7 +12,7 @@ import lombok.Data;
@ApiModel("获取财政编码配置") @ApiModel("获取财政编码配置")
public class ReqGetCompanyFiscalCodeAndSealSnPO { public class ReqGetCompanyFiscalCodeAndSealSnPO {


@ApiModelProperty("组织编码")
@ApiModelProperty("组织编码(需传入用户任职单位code)")
private String organizationCode; private String organizationCode;


} }

Loading…
Cancel
Save