|
|
@@ -15,7 +15,7 @@ import com.hz.pm.api.meta.constant.ExpertTagEnum; |
|
|
|
import com.hz.pm.api.meta.helper.DictionaryCache; |
|
|
|
import com.hz.pm.api.meta.helper.TagCache; |
|
|
|
import com.hz.pm.api.meta.model.ExpertRegionInfo; |
|
|
|
import com.hz.pm.api.meta.model.dto.DictDTO; |
|
|
|
import com.hz.pm.api.meta.model.dto.DictionaryDTO; |
|
|
|
import com.hz.pm.api.meta.model.dto.TagDTO; |
|
|
|
import com.hz.pm.api.organization.model.entity.DingOrganization; |
|
|
|
import com.hz.pm.api.organization.service.IDingOrganizationService; |
|
|
@@ -62,12 +62,12 @@ public class ExpertRegisterUtil { |
|
|
|
// 政治面貌 |
|
|
|
basic.setPolitical(new ArrayList<>()); |
|
|
|
String political = MapUtil.getStr(w, "政治面貌"); |
|
|
|
List<DictDTO> politicalDicts = dictionaryCache.listDictByDictType(DictTypeEnum.POLITICAL.getKey()); |
|
|
|
List<DictionaryDTO> politicalDicts = dictionaryCache.listDictByDictType(DictTypeEnum.POLITICAL.getKey()); |
|
|
|
if (!politicalDicts.isEmpty()) { |
|
|
|
politicalDicts.stream() |
|
|
|
.filter(dict -> dict.getName().equals(political)) |
|
|
|
.findFirst().ifPresent(dictionary -> { |
|
|
|
DictionaryFieldInfo dict = new DictionaryFieldInfo(); |
|
|
|
DictFieldInfoDTO dict = new DictFieldInfoDTO(); |
|
|
|
dict.setDictionaryName(dictionary.getName()); |
|
|
|
dict.setDictionaryCode(dictionary.getDictionaryCode()); |
|
|
|
dict.setDictionaryFieldName(dictionary.getDictionaryType()); |
|
|
@@ -82,12 +82,12 @@ public class ExpertRegisterUtil { |
|
|
|
eduInfo.setDegree(new ArrayList<>()); |
|
|
|
// 学历 |
|
|
|
String eduStr = MapUtil.getStr(w, "学历"); |
|
|
|
List<DictDTO> eduDicts = dictionaryCache.listDictByDictType(DictTypeEnum.EDU.getKey()); |
|
|
|
List<DictionaryDTO> eduDicts = dictionaryCache.listDictByDictType(DictTypeEnum.EDU.getKey()); |
|
|
|
if (!eduDicts.isEmpty()) { |
|
|
|
eduDicts.stream() |
|
|
|
.filter(dict -> dict.getName().equals(eduStr)) |
|
|
|
.findFirst().ifPresent(dictionary -> { |
|
|
|
DictionaryFieldInfo dict = new DictionaryFieldInfo(); |
|
|
|
DictFieldInfoDTO dict = new DictFieldInfoDTO(); |
|
|
|
dict.setDictionaryName(dictionary.getName()); |
|
|
|
dict.setDictionaryCode(dictionary.getDictionaryCode()); |
|
|
|
dict.setDictionaryFieldName(dictionary.getDictionaryType()); |
|
|
@@ -96,12 +96,12 @@ public class ExpertRegisterUtil { |
|
|
|
} |
|
|
|
// 学位 |
|
|
|
String degreeStr = MapUtil.getStr(w, "学位"); |
|
|
|
List<DictDTO> degreeDicts = dictionaryCache.listDictByDictType(DictTypeEnum.DEGREE.getKey()); |
|
|
|
List<DictionaryDTO> degreeDicts = dictionaryCache.listDictByDictType(DictTypeEnum.DEGREE.getKey()); |
|
|
|
if (!degreeDicts.isEmpty()) { |
|
|
|
degreeDicts.stream() |
|
|
|
.filter(dict -> dict.getName().equals(degreeStr)) |
|
|
|
.findFirst().ifPresent(dictionary -> { |
|
|
|
DictionaryFieldInfo dict = new DictionaryFieldInfo(); |
|
|
|
DictFieldInfoDTO dict = new DictFieldInfoDTO(); |
|
|
|
dict.setDictionaryName(dictionary.getName()); |
|
|
|
dict.setDictionaryCode(dictionary.getDictionaryCode()); |
|
|
|
dict.setDictionaryFieldName(dictionary.getDictionaryType()); |
|
|
@@ -139,12 +139,12 @@ public class ExpertRegisterUtil { |
|
|
|
jobInfo.setAdministrativeDuties(MapUtil.getStr(w, "行政职务")); |
|
|
|
jobInfo.setAdministrativeRank(new ArrayList<>()); |
|
|
|
String administrativeRankStr = MapUtil.getStr(w, "行政职级"); |
|
|
|
List<DictDTO> administrativeRankDicts = dictionaryCache.listDictByDictType(DictTypeEnum.ADMINISTRATIVE_RANK.getKey()); |
|
|
|
List<DictionaryDTO> administrativeRankDicts = dictionaryCache.listDictByDictType(DictTypeEnum.ADMINISTRATIVE_RANK.getKey()); |
|
|
|
if (!administrativeRankDicts.isEmpty()) { |
|
|
|
administrativeRankDicts.stream() |
|
|
|
.filter(dict -> dict.getName().equals(administrativeRankStr)) |
|
|
|
.findFirst().ifPresent(dictionary -> { |
|
|
|
DictionaryFieldInfo dict = new DictionaryFieldInfo(); |
|
|
|
DictFieldInfoDTO dict = new DictFieldInfoDTO(); |
|
|
|
dict.setDictionaryName(dictionary.getName()); |
|
|
|
dict.setDictionaryCode(dictionary.getDictionaryCode()); |
|
|
|
dict.setDictionaryFieldName(dictionary.getDictionaryType()); |
|
|
@@ -153,12 +153,12 @@ public class ExpertRegisterUtil { |
|
|
|
} |
|
|
|
jobInfo.setCompanyAttribute(new ArrayList<>()); |
|
|
|
String companyTypeStr = MapUtil.getStr(w, "*单位类型"); |
|
|
|
List<DictDTO> companyTypeDicts = dictionaryCache.listDictByDictType(DictTypeEnum.COMPANY_ATTRIBUTE.getKey()); |
|
|
|
List<DictionaryDTO> companyTypeDicts = dictionaryCache.listDictByDictType(DictTypeEnum.COMPANY_ATTRIBUTE.getKey()); |
|
|
|
if (!companyTypeDicts.isEmpty()) { |
|
|
|
companyTypeDicts.stream() |
|
|
|
.filter(dict -> dict.getName().equals(companyTypeStr)) |
|
|
|
.findFirst().ifPresent(dictionary -> { |
|
|
|
DictionaryFieldInfo dict = new DictionaryFieldInfo(); |
|
|
|
DictFieldInfoDTO dict = new DictFieldInfoDTO(); |
|
|
|
dict.setDictionaryName(dictionary.getName()); |
|
|
|
dict.setDictionaryCode(dictionary.getDictionaryCode()); |
|
|
|
dict.setDictionaryFieldName(dictionary.getDictionaryType()); |
|
|
@@ -170,7 +170,7 @@ public class ExpertRegisterUtil { |
|
|
|
professionalInfo.setAwards("暂无"); |
|
|
|
professionalInfo.setIndustrySector(new ArrayList<>()); |
|
|
|
professionalInfo.setOther(new ArrayList<>()); |
|
|
|
Map<String, TagDTO> tagMap = tagCache.getNameTagDtoMap(); |
|
|
|
Map<String, TagDTO> tagMap = tagCache.getNameTagMap(); |
|
|
|
String otherTagStr = MapUtil.getStr(w, "其他标签"); |
|
|
|
if (StrUtils.isNotBlank(otherTagStr)) { |
|
|
|
for (String othTag : otherTagStr.split(SEPARATOR)) { |
|
|
@@ -240,12 +240,12 @@ public class ExpertRegisterUtil { |
|
|
|
} |
|
|
|
professionalInfo.setTitleLevel(new ArrayList<>()); |
|
|
|
String titleLevel = MapUtil.getStr(w, "*职称级别"); |
|
|
|
List<DictDTO> titleLevelDicts = dictionaryCache.listDictByDictType(DictTypeEnum.TITLE_LEVEL.getKey()); |
|
|
|
List<DictionaryDTO> titleLevelDicts = dictionaryCache.listDictByDictType(DictTypeEnum.TITLE_LEVEL.getKey()); |
|
|
|
if (!titleLevelDicts.isEmpty()) { |
|
|
|
titleLevelDicts.stream() |
|
|
|
.filter(dict -> dict.getName().equals(titleLevel)) |
|
|
|
.findFirst().ifPresent(dictionary -> { |
|
|
|
DictionaryFieldInfo dict = new DictionaryFieldInfo(); |
|
|
|
DictFieldInfoDTO dict = new DictFieldInfoDTO(); |
|
|
|
dict.setDictionaryName(dictionary.getName()); |
|
|
|
dict.setDictionaryCode(dictionary.getDictionaryCode()); |
|
|
|
dict.setDictionaryFieldName(dictionary.getDictionaryType()); |
|
|
|