|
@@ -361,6 +361,8 @@ public class CompanyServiceImpl implements CompanyService {
|
|
|
List<PcIndustry> industryList = industryService.getAllList();
|
|
|
// 企业产业分类
|
|
|
List<SysDictionaryItem> companyEstateCategory = dictionaryService.getDictionaryItemByCodeList("CompanyEstateCategory");
|
|
|
+ // 企业注册资本类型
|
|
|
+ List<SysDictionaryItem> registeredCapitalTypeList = dictionaryService.getDictionaryItemList("RegisteredCapitalType");
|
|
|
|
|
|
List<CompanyVo> resultList = new ArrayList<>();
|
|
|
PcSite finalCurLoginUserSiteInfo = curLoginUserSiteInfo;
|
|
@@ -437,19 +439,33 @@ public class CompanyServiceImpl implements CompanyService {
|
|
|
else item.isShortage = 0;
|
|
|
}
|
|
|
|
|
|
+ if (!stringUtils.IsNullOrEmpty(item.getRegisteredCapitalTypeStr())) {
|
|
|
+ item.registeredCapitalType = registeredCapitalTypeList.stream().filter(it -> it.getName().equals(item.getRegisteredCapitalTypeStr().trim()))
|
|
|
+ .findFirst().orElse(new SysDictionaryItem()).getValue();
|
|
|
+ if (item.registeredCapitalType == null)
|
|
|
+ errorInfo += "注册资本类型不存在!";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if (!stringUtils.IsNullOrEmpty(item.getSignInPoliticalAreaName())) {
|
|
|
item.signInPoliticalArea = regionDataList.stream().filter(it -> it.getName().equals(item.signInPoliticalAreaName.trim()))
|
|
|
.findFirst().orElse(new SysDictionaryItem()).getCode();
|
|
|
+ if (item.signInPoliticalArea == null)
|
|
|
+ errorInfo += "注册地址行政区划不存在!";
|
|
|
}
|
|
|
|
|
|
if (!stringUtils.IsNullOrEmpty(item.getIndustryName())) {
|
|
|
item.industryID = industryList.stream().filter(it -> it.getIndustryName().equals(item.industryName.trim()))
|
|
|
.findFirst().orElse(new PcIndustry()).getIndustryId();
|
|
|
+ if (item.industryID == null)
|
|
|
+ errorInfo += "所属行业不存在!";
|
|
|
}
|
|
|
|
|
|
if (!stringUtils.IsNullOrEmpty(item.getEstateCategoryName())) {
|
|
|
item.estateCategoryID = companyEstateCategory.stream().filter(it -> it.getName().equals(item.estateCategoryName.trim()))
|
|
|
.findFirst().orElse(new SysDictionaryItem()).getValue();
|
|
|
+ if (item.estateCategoryID == null)
|
|
|
+ errorInfo += "所属产业分类不存在!";
|
|
|
}
|
|
|
|
|
|
if (!stringUtils.IsNullOrEmpty(item.validDateStr))
|
|
@@ -474,8 +490,9 @@ public class CompanyServiceImpl implements CompanyService {
|
|
|
errorInfo += "经济类型不存在!";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if (!stringUtils.IsNullOrEmpty(item.getRegionName())) {
|
|
|
+ if (stringUtils.IsNullOrEmpty(item.isShortageName))
|
|
|
+ errorInfo += "请选择所属县区!";
|
|
|
+ else {
|
|
|
item.setRegionCode(regionDataList.stream().filter(it -> it.getName().equals(item.getRegionName().trim()))
|
|
|
.findFirst().orElse(new SysDictionaryItem()).getCode());
|
|
|
if (item.getRegionCode() == null)
|