提交 70048a55 authored 作者: huyufan's avatar huyufan

验证企业税号

上级 dc60f9ec
...@@ -1000,12 +1000,12 @@ public class OwnerAccountServiceImpl implements OwnerAccountService { ...@@ -1000,12 +1000,12 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
public String checkBusinessLicenseNumber(InformationParam param) { public String checkBusinessLicenseNumber(InformationParam param) {
Long userNo = TokenUtil.getLoginUserInfo().getUserNo(); Long userNo = TokenUtil.getLoginUserInfo().getUserNo();
OwnerInfoFeignVO ownerInfoFeignVO = Optional.ofNullable(ownerFeign.getUserCompany(userNo)).filter(Result::succeed).map(Result::getData).orElseThrow(ResultCodeEnum.FAIL); OwnerInfoFeignVO ownerInfoFeignVO = Optional.ofNullable(ownerFeign.getUserCompany(userNo)).filter(Result::succeed).map(Result::getData).orElseThrow(ResultCodeEnum.FAIL);
String companyBusinessNo = ownerInfoFeignVO.getCompanyBusinessNo(); String companyTaxCode = ownerInfoFeignVO.getCompanyTaxCode();
if (StringUtils.isBlank(companyBusinessNo)) { if (StringUtils.isBlank(companyTaxCode)) {
throw new ServiceSystemException(PerformanceResultEnum.DATA_NOT_FIND); throw new ServiceSystemException(PerformanceResultEnum.DATA_NOT_FIND);
} }
if (!StringUtils.equals(companyBusinessNo, param.getBusinessLicenseNumber())) { if (!StringUtils.equals(companyTaxCode, param.getBusinessLicenseNumber())) {
throw new ServiceSystemException(PerformanceResultEnum.BUSINESS_NO_FAIL); throw new ServiceSystemException(PerformanceResultEnum.BUSINESS_NO_FAIL);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论