|
@@ -1,6 +1,7 @@
|
|
|
package cn.ubitech.ttc.service.impl.entry;
|
|
|
|
|
|
import cn.ubitech.ttc.common.POIWordUtil;
|
|
|
+import cn.ubitech.ttc.common.SnowflakeIdWorker;
|
|
|
import cn.ubitech.ttc.common.Util;
|
|
|
import cn.ubitech.ttc.common.utils.DateUtils;
|
|
|
import cn.ubitech.ttc.common.utils.ExcelPatternMsgUtils;
|
|
@@ -152,6 +153,9 @@ public class EntryServiceImpl implements EntryService {
|
|
|
@Autowired
|
|
|
private NodeClassificationLkMapper nodeClassificationLkMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ResourcelibraryMapper resourcelibraryMapper;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 获取可导入的文件类型列表.
|
|
@@ -940,9 +944,18 @@ public class EntryServiceImpl implements EntryService {
|
|
|
entryTypes.add(EntryType.builder().fileType(Constant.SIX).modelName(Constant.TONGLU_SIX).build());
|
|
|
entryTypes.add(EntryType.builder().fileType(Constant.SEVEN).modelName(Constant.TONGLU_SEVEN).build());
|
|
|
entryTypes.add(EntryType.builder().fileType(Constant.EIGHT).modelName(Constant.TONGLU_EIGHT).build());
|
|
|
- } else if (node.equals(Constant.NODE_320117400)) {
|
|
|
+ } else if (Integer.valueOf(node).equals(Constant.NODE_320117400)) {
|
|
|
// todo 溧水
|
|
|
-
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.ONE).modelName(Constant.LISHUI_ONE).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.TWO).modelName(Constant.LISHUI_TWO).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.THREE).modelName(Constant.LISHUI_THREE).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.FOUR).modelName(Constant.LISHUI_FOUR).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.FIVE).modelName(Constant.LISHUI_FIVE).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.SIX).modelName(Constant.LISHUI_SIX).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.SEVEN).modelName(Constant.LISHUI_SEVEN).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.EIGHT).modelName(Constant.LISHUI_EIRHT).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.NINE).modelName(Constant.LISHUI_NINE).build());
|
|
|
+ entryTypes.add(EntryType.builder().fileType(Constant.TEN).modelName(Constant.LISHUI_TEN).build());
|
|
|
}
|
|
|
log.info("entryTypes:{}",JSON.toJSONString(entryTypes));
|
|
|
return entryTypes;
|
|
@@ -997,6 +1010,8 @@ public class EntryServiceImpl implements EntryService {
|
|
|
// 待开发
|
|
|
list = toPolicyBasicInfo(parseList, nodeId, path, reqId, isDetails, isParsed);
|
|
|
break;
|
|
|
+ case Constant.NINE:
|
|
|
+ list = toPlatformInfo(parseList,nodeId,path,reqId,isDetails,isParsed,uId);
|
|
|
default:
|
|
|
}
|
|
|
return list;
|
|
@@ -1115,7 +1130,7 @@ public class EntryServiceImpl implements EntryService {
|
|
|
// false 解析excel内容,并入库。
|
|
|
int savedId = 0;
|
|
|
List<EnterpriseBasicInfoExcelData> excelDatas = new ArrayList<>();
|
|
|
- if (isParsed == true) {
|
|
|
+ if (isParsed) {
|
|
|
// 解析excel内容。
|
|
|
try {
|
|
|
// 解析excel
|
|
@@ -1244,9 +1259,10 @@ public class EntryServiceImpl implements EntryService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //解析企业专利或查询企业专利详情
|
|
|
public List toEnterprisePatentInfo(List parseList, String nodeId, String filePath, String reqId, String uId, Boolean isDetails, Boolean isParsed) throws ParseException {
|
|
|
// todo 20210107
|
|
|
- if (isDetails == true) {
|
|
|
+ if (isDetails) {
|
|
|
// 详情页
|
|
|
List<CompanyIntellectualpropertyLk> intellectualpropertyLks = companyIntellectualpropertyLkMapper
|
|
|
.selectList(new EntityWrapper<CompanyIntellectualpropertyLk>()
|
|
@@ -1260,8 +1276,12 @@ public class EntryServiceImpl implements EntryService {
|
|
|
patentInfoExcelData.setOrgname(null != orgInfo ? orgInfo.getName() : "");
|
|
|
patentInfoExcelData.setOrgcode(null != orgInfo ? orgInfo.getOrgcode() : "");
|
|
|
patentInfoExcelData.setApplydate(DateUtils.dateToString(patentinfo.getApplydate()));
|
|
|
- patentInfoExcelData.setLicensedate(DateUtils.dateToString(patentinfo.getLicensedate()));
|
|
|
- patentInfoExcelData.setInteltypename(changePatentTypeToName(patentinfo.getInteltype()));
|
|
|
+ if ("320117400".equals(nodeId)) { //溧水节点
|
|
|
+ patentInfoExcelData.setInteltypename(changePatentTypeToName(patentinfo.getInteltype()));
|
|
|
+ } else if ("330122000".equals(nodeId)){ //桐庐节点
|
|
|
+ patentInfoExcelData.setLicensedate(DateUtils.dateToString(patentinfo.getLicensedate()));
|
|
|
+ patentInfoExcelData.setInteltypename(changePatentTypeToNameLiShui(patentinfo.getInteltype()));
|
|
|
+ }
|
|
|
return patentInfoExcelData;
|
|
|
}).collect(Collectors.toList());
|
|
|
datas.add(0, ExcelPatternMsgUtils.initTongluPatentHeadInfo());
|
|
@@ -1273,13 +1293,12 @@ public class EntryServiceImpl implements EntryService {
|
|
|
} else {
|
|
|
// List
|
|
|
List<EnterprisePatentInfoExcelData> excelDatas = new ArrayList<>();
|
|
|
- if (isParsed == true) {
|
|
|
- // 解析excel
|
|
|
- excelDatas = ExcelUtils.parseEnterprisePatentInfoExcelData(filePath);
|
|
|
- System.out.println("toPatentInfo parsedExlList>" + JSON.toJSONString(excelDatas));
|
|
|
- System.out.println("解析专利信息excel内容 :" + JSON.toJSONString(excelDatas));
|
|
|
- // 解析excel
|
|
|
+ if (isParsed) {
|
|
|
try {
|
|
|
+ // 解析excel
|
|
|
+ excelDatas = ExcelUtils.parseEnterprisePatentInfoExcelData(filePath);
|
|
|
+ System.out.println("toPatentInfo parsedExlList>" + JSON.toJSONString(excelDatas));
|
|
|
+ System.out.println("解析专利信息excel内容 :" + JSON.toJSONString(excelDatas));
|
|
|
|
|
|
} catch (IllegalStateException e) {
|
|
|
e.printStackTrace();
|
|
@@ -1512,6 +1531,7 @@ public class EntryServiceImpl implements EntryService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //解析专家库或专家库详情
|
|
|
public List toExpertInfo(List parseList, String nodeId, String filePath, String reqId,
|
|
|
Boolean isDetails, Boolean isParsed) {
|
|
|
if (isDetails == true) {
|
|
@@ -1526,7 +1546,12 @@ public class EntryServiceImpl implements EntryService {
|
|
|
ExpertInfoExcelData personnelInfoExcelData = new ExpertInfoExcelData();
|
|
|
BeanUtils.copyProperties(expertinfo, personnelInfoExcelData);
|
|
|
personnelInfoExcelData.setSchool(null != orgInfo ? orgInfo.getName() : "");
|
|
|
- personnelInfoExcelData.setAcademicdegreename(academicdegreeTypeToName(expertinfo.getAcademicdegree()));
|
|
|
+ if ("320117400".equals(nodeId)) {
|
|
|
+ personnelInfoExcelData.setAcademicdegreename(academicdegreeTypeToNameLiShui(expertinfo.getAcademicdegree()));
|
|
|
+ personnelInfoExcelData.setPosition(positionTypeToName(Integer.valueOf(expertinfo.getPosition())));
|
|
|
+ } else if ("330122000".equals(nodeId)) {
|
|
|
+ personnelInfoExcelData.setAcademicdegreename(academicdegreeTypeToName(expertinfo.getAcademicdegree()));
|
|
|
+ }
|
|
|
return personnelInfoExcelData;
|
|
|
}).collect(Collectors.toList());
|
|
|
datas.add(0, ExcelPatternMsgUtils.initTongluExpertHeadInfo());
|
|
@@ -1537,7 +1562,7 @@ public class EntryServiceImpl implements EntryService {
|
|
|
return datas;
|
|
|
} else {
|
|
|
List<ExpertInfoExcelData> excelDatas = new ArrayList<>();
|
|
|
- if (isParsed == true) {
|
|
|
+ if (isParsed) {
|
|
|
// 解析excel内容
|
|
|
try {
|
|
|
// 解析excel并入库
|
|
@@ -1596,6 +1621,46 @@ public class EntryServiceImpl implements EntryService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ //解析平台库平台信息
|
|
|
+ public List toPlatformInfo(List parseList, String nodeId, String filePath, String reqId,
|
|
|
+ Boolean isDetails, Boolean isParsed, String uid) {
|
|
|
+
|
|
|
+ if (isDetails) {
|
|
|
+ List<Resourcelibrary> platformInfos = resourcelibraryMapper.selectList(new EntityWrapper<Resourcelibrary>().eq("req_id", reqId));
|
|
|
+ List<PlatformInfoExcelDate> datas = platformInfos.stream().map(platformInfo -> {
|
|
|
+ PlatformInfoExcelDate platformInfoExcelDate = new PlatformInfoExcelDate();
|
|
|
+ BeanUtils.copyProperties(platformInfo, platformInfoExcelDate);
|
|
|
+ if ("320117400".equals(nodeId)) {
|
|
|
+ platformInfoExcelDate.setCategory(platformTypeToName(platformInfo.getCategory()));
|
|
|
+ platformInfoExcelDate.setTechtype(platformInfo.getTechtype().toString());
|
|
|
+ platformInfoExcelDate.setStarType(platformInfo.getStarType().toString());
|
|
|
+ platformInfoExcelDate.setFactoryarea(platformInfo.getFactoryarea().toString());
|
|
|
+ }
|
|
|
+ return platformInfoExcelDate;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ datas.add(0,ExcelPatternMsgUtils.initLishuiPlatformHeadInfo());
|
|
|
+ datas.stream().filter(bean -> {
|
|
|
+ bean.setErrorMsg(JSON.parseObject(bean.getErrorRemark()));
|
|
|
+ return true;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ return datas;
|
|
|
+ } else {
|
|
|
+ List<PlatformInfoExcelDate> excelDates = new ArrayList<>();
|
|
|
+ if (isParsed) {
|
|
|
+ try {
|
|
|
+ excelDates = ExcelUtils.parsePlatformInfoExcelDate(filePath);
|
|
|
+ System.out.println("解析专利信息excel内容 :" + JSON.toJSONString(excelDates));
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return excelDates;
|
|
|
+ } else {
|
|
|
+ List savelist = savePlatformInfoExcelData(parseList, nodeId, reqId, uid);
|
|
|
+ return savelist;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 获取各类型详情接口.
|
|
@@ -1851,7 +1916,10 @@ public class EntryServiceImpl implements EntryService {
|
|
|
info = new CompanyIntellectualpropertyLk();
|
|
|
BeanUtils.copyProperties(excelData, info);
|
|
|
info.setApplydate(DateUtils.stringToDate(excelData.getApplydate()));
|
|
|
- info.setLicensedate(DateUtils.stringToDate(excelData.getLicensedate()));
|
|
|
+ //todo lys 溧水节点模板没有该字段(授权日期),需要判断
|
|
|
+ if (StringUtils.isNotEmpty(excelData.getLicensedate())) {
|
|
|
+ info.setLicensedate(DateUtils.stringToDate(excelData.getLicensedate()));
|
|
|
+ }
|
|
|
// connectioninfoModel.getOrganizationInfo().setId(orglist.get(0).getId());
|
|
|
info.setCompanyid(orglist.get(0).getId());
|
|
|
// todo 关联类型参考typeentry,默认0,30030是机构?
|
|
@@ -2297,6 +2365,12 @@ public class EntryServiceImpl implements EntryService {
|
|
|
info.setReqId(reqId);
|
|
|
info.setRestype("8");
|
|
|
info.setCreator(2865L);
|
|
|
+ if ("320117400".equals(nodeId)) {
|
|
|
+ info.setAcademicdegree(StringUtils.isNotEmpty(excelData.getAcademicdegreename()) ?
|
|
|
+ academicdegreeNameToTypeLishui(excelData.getAcademicdegreename()) : 0);
|
|
|
+ info.setPosition(StringUtils.isNotEmpty(excelData.getPosition()) ?
|
|
|
+ String.valueOf(positionNameToType(excelData.getPosition())) : "");
|
|
|
+ }
|
|
|
// info.setNodeId(nodeId);
|
|
|
// policyBasicInfoMapper.insert(info);
|
|
|
infos.add(info);
|
|
@@ -2349,6 +2423,42 @@ public class EntryServiceImpl implements EntryService {
|
|
|
return infos;
|
|
|
}
|
|
|
|
|
|
+ //9.保存平台库平台信息
|
|
|
+ public List savePlatformInfoExcelData(List<PlatformInfoExcelDate> platformInfoExcelDates, String nodeId, String reqId, String uid) {
|
|
|
+ Resourcelibrary resourcelibrary;
|
|
|
+ List<Resourcelibrary> infos = new ArrayList<>();
|
|
|
+ for (PlatformInfoExcelDate platformInfoExcelDate : platformInfoExcelDates) {
|
|
|
+ resourcelibrary = new Resourcelibrary();
|
|
|
+ BeanUtils.copyProperties(platformInfoExcelDate,resourcelibrary);
|
|
|
+ if ("320117400".equals(nodeId)) {
|
|
|
+ resourcelibrary.setCategory(StringUtils.isNotEmpty(platformInfoExcelDate.getCategory()) ?
|
|
|
+ platformTypeToName(platformInfoExcelDate.getCategory()) : "");
|
|
|
+ resourcelibrary.setRestype(41);
|
|
|
+ resourcelibrary.setComefrom("320117400");
|
|
|
+ resourcelibrary.setReqId(reqId);
|
|
|
+ resourcelibrary.setFactoryarea(Float.valueOf(platformInfoExcelDate.getFactoryarea()));
|
|
|
+ resourcelibrary.setTechtype(Integer.valueOf(platformInfoExcelDate.getTechtype()));
|
|
|
+ resourcelibrary.setStarType(Integer.valueOf(platformInfoExcelDate.getStarType()));
|
|
|
+ }
|
|
|
+ String claid = interviewDataEntryService.getClaid(nodeId, 0L);
|
|
|
+
|
|
|
+ SnowflakeIdWorker idWorker = new SnowflakeIdWorker(Constant.SNOWFLAKE_GROUPNUM, Constant.SNOWFLAKE_NUM);
|
|
|
+ long snowid = idWorker.nextId();
|
|
|
+ resourcelibrary.setSnowflakeid(snowid);
|
|
|
+ resourcelibrary.setCreator(Long.valueOf(uid));
|
|
|
+ List<Resourcelibrary> lists = resourcelibraryMapper.selectList(new EntityWrapper<Resourcelibrary>()
|
|
|
+ .eq("comefrom", nodeId)
|
|
|
+ .eq("title", resourcelibrary.getTitle()));
|
|
|
+ if (CollectionUtils.isEmpty(lists)) {
|
|
|
+ infos.add(resourcelibrary);
|
|
|
+ }
|
|
|
+ log.info("平台库平台信息:{}",resourcelibrary);
|
|
|
+ dataEntryResource.insertPlatformInfoToResourceLibrary(resourcelibrary,claid,nodeId);
|
|
|
+ }
|
|
|
+ System.out.println("infos>" + JSON.toJSONString(infos));
|
|
|
+ return infos;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 文件md5值。
|
|
@@ -2417,6 +2527,8 @@ public class EntryServiceImpl implements EntryService {
|
|
|
// 待开发
|
|
|
map = checkPolicyInfo(parseList, nodeId);
|
|
|
break;
|
|
|
+ case Constant.NINE:
|
|
|
+ map = checkPlatformInfo(parseList, nodeId);
|
|
|
default:
|
|
|
}
|
|
|
return map;
|
|
@@ -2822,7 +2934,7 @@ public class EntryServiceImpl implements EntryService {
|
|
|
} else {
|
|
|
// 2.2 企业信息不存在
|
|
|
// unExistInfos.add(toExpertErrorList(errorNum, data.getName(), "", "企业基本信息不存在"));
|
|
|
- errorImportInfos.add(toExpertErrorList(errorNum, data.getName(), data.getName(), "基本信息不存在"));
|
|
|
+ errorImportInfos.add(toExpertErrorList(errorNum, data.getSchool(), data.getSchool(), "基本信息不存在"));
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -3019,6 +3131,32 @@ public class EntryServiceImpl implements EntryService {
|
|
|
return checkDataMap(errorImportInfos, unExistInfos, repeatInfos);
|
|
|
}
|
|
|
|
|
|
+ public Map<String,Object> checkPlatformInfo(List paseList,String nodeId) {
|
|
|
+ List<PlatformInfoExcelDate> datas = JSONArray.parseArray
|
|
|
+ (JSONArray.toJSONString(paseList), PlatformInfoExcelDate.class);
|
|
|
+ // 错误信息
|
|
|
+ List<ErrorImportInfo> errorImportInfos = new ArrayList<>();
|
|
|
+ // 平台库信息不存在
|
|
|
+ List<ErrorImportInfo> unExistInfos = new ArrayList<>();
|
|
|
+ // 平台信息重复
|
|
|
+ List<ErrorImportInfo> repeatInfos = new ArrayList<>();
|
|
|
+ int errorNum = 0;
|
|
|
+ for (PlatformInfoExcelDate date : datas) {
|
|
|
+ errorNum = errorNum + 1;
|
|
|
+ if (!date.getErrorRemark().equals("{}")) {
|
|
|
+ errorImportInfos.add(toPolicyErrorList(errorNum,date.getTitle(),date.getContent(),date.getErrorRemark()));
|
|
|
+ }
|
|
|
+ List<Resourcelibrary> resourcelibraries = resourcelibraryMapper.selectList(new EntityWrapper<Resourcelibrary>()
|
|
|
+ .eq("comefrom", nodeId)
|
|
|
+ .eq("title", date.getTitle()));
|
|
|
+ if (CollectionUtils.isNotEmpty(resourcelibraries)) {
|
|
|
+ errorImportInfos.add(toPolicyErrorList(errorNum,date.getTitle(),resourcelibraries.get(0).getTitle(),
|
|
|
+ "该\""+resourcelibraries.get(0) + "\"平台信息已存在"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return checkDataMap(errorImportInfos,unExistInfos,repeatInfos);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 初始化错误信息实体。
|
|
|
*
|
|
@@ -3649,7 +3787,7 @@ public class EntryServiceImpl implements EntryService {
|
|
|
|
|
|
/**
|
|
|
* 专利类型type转name
|
|
|
- *
|
|
|
+ * todo 桐庐节点
|
|
|
* @param patentType
|
|
|
* @return
|
|
|
*/
|
|
@@ -3689,6 +3827,29 @@ public class EntryServiceImpl implements EntryService {
|
|
|
return patentName;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 专利类型type转name(溧水节点)
|
|
|
+ */
|
|
|
+ public String changePatentTypeToNameLiShui(Integer patentype) {
|
|
|
+ String patentName = "";
|
|
|
+ switch (patentype) {
|
|
|
+ case 10802:
|
|
|
+ patentName = "发明专利";
|
|
|
+ break;
|
|
|
+ case 10801:
|
|
|
+ patentName = "实用新型";
|
|
|
+ break;
|
|
|
+ case 10808:
|
|
|
+ patentName = "外观设计";
|
|
|
+ break;
|
|
|
+ case 10810:
|
|
|
+ patentName = "PTC";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return patentName;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 专利类型name转type
|
|
|
*
|
|
@@ -3731,6 +3892,27 @@ public class EntryServiceImpl implements EntryService {
|
|
|
return patentType;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 专利类型name转type(溧水节点)
|
|
|
+ */
|
|
|
+ public Integer changePatentNameToTypeLishui(String patentName) {
|
|
|
+ Integer patenType = 0;
|
|
|
+ switch (patentName) {
|
|
|
+ case "发明专利":
|
|
|
+ patenType = 10802;
|
|
|
+ break;
|
|
|
+ case "实用新型":
|
|
|
+ patenType = 10801;
|
|
|
+ break;
|
|
|
+ case "外观设计":
|
|
|
+ patenType = 10808;
|
|
|
+ break;
|
|
|
+ case "PTC":
|
|
|
+ patenType = 10810;
|
|
|
+ }
|
|
|
+ return patenType;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 资源资质转sql存储数据类型。
|
|
@@ -3823,7 +4005,7 @@ public class EntryServiceImpl implements EntryService {
|
|
|
|
|
|
/**
|
|
|
* 学历name转type
|
|
|
- *
|
|
|
+ * todo 桐庐节点
|
|
|
* @param academicdegreename
|
|
|
* @return
|
|
|
*/
|
|
@@ -3871,7 +4053,7 @@ public class EntryServiceImpl implements EntryService {
|
|
|
|
|
|
/**
|
|
|
* 学历type转name
|
|
|
- *
|
|
|
+ * todo 桐庐节点
|
|
|
* @param academicdegreename
|
|
|
* @return
|
|
|
*/
|
|
@@ -3914,6 +4096,58 @@ public class EntryServiceImpl implements EntryService {
|
|
|
return academicdegreeType;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 学历name转type(溧水节点)
|
|
|
+ */
|
|
|
+ public Integer academicdegreeNameToTypeLishui(String academicdegreename) {
|
|
|
+ Integer academicdegreeType = 0;
|
|
|
+ switch (academicdegreename) {
|
|
|
+ case "博士研究生":
|
|
|
+ academicdegreeType = 3743;
|
|
|
+ break;
|
|
|
+ case "硕士研究生":
|
|
|
+ academicdegreeType = 3744;
|
|
|
+ break;
|
|
|
+ case "本科":
|
|
|
+ academicdegreeType = 3745;
|
|
|
+ break;
|
|
|
+ case "专科":
|
|
|
+ academicdegreeType = 3746;
|
|
|
+ break;
|
|
|
+ case "其他":
|
|
|
+ academicdegreeType = 3747;
|
|
|
+ }
|
|
|
+ return academicdegreeType;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param academicdegreename
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public String academicdegreeTypeToNameLiShui(Integer academicdegreename) {
|
|
|
+ String academicdegreeType = "";
|
|
|
+ switch (academicdegreename) {
|
|
|
+ case 3743:
|
|
|
+ academicdegreeType = "博士研究生";
|
|
|
+ break;
|
|
|
+ case 3744:
|
|
|
+ academicdegreeType = "硕士研究生";
|
|
|
+ break;
|
|
|
+ case 3745:
|
|
|
+ academicdegreeType = "本科";
|
|
|
+ break;
|
|
|
+ case 3746:
|
|
|
+ academicdegreeType = "专科";
|
|
|
+ break;
|
|
|
+ case 3747:
|
|
|
+ academicdegreeType = "其他";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return academicdegreeType;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 技术成熟度
|
|
|
* @param 成熟度:0:不限 1:正在研发 2:已有小样 3:通过小试 4:通过中试 5:可以量产
|
|
@@ -3972,6 +4206,108 @@ public class EntryServiceImpl implements EntryService {
|
|
|
return academicdegreeType;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 溧水节点专家库职称
|
|
|
+ * @param positionName
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Integer positionNameToType(String positionName) {
|
|
|
+ Integer positionType = 0;
|
|
|
+ switch (positionName) {
|
|
|
+ case "讲师":
|
|
|
+ positionType = 3749;
|
|
|
+ break;
|
|
|
+ case "副教授":
|
|
|
+ positionType = 3750;
|
|
|
+ break;
|
|
|
+ case "教授":
|
|
|
+ positionType = 3751;
|
|
|
+ break;
|
|
|
+ case "硕士生导师":
|
|
|
+ positionType = 3752;
|
|
|
+ break;
|
|
|
+ case "博士生导师":
|
|
|
+ positionType = 3753;
|
|
|
+ break;
|
|
|
+ case "高级工程师":
|
|
|
+ positionType = 3754;
|
|
|
+ break;
|
|
|
+ case "实验师":
|
|
|
+ positionType = 3755;
|
|
|
+ break;
|
|
|
+ case "研究员":
|
|
|
+ positionType = 3756;
|
|
|
+ break;
|
|
|
+ case "其他":
|
|
|
+ positionType = 3757;
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return positionType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String positionTypeToName(Integer positionType) {
|
|
|
+ String positionName = "";
|
|
|
+ switch (positionType) {
|
|
|
+ case 3749:
|
|
|
+ positionName = "讲师";
|
|
|
+ break;
|
|
|
+ case 3750:
|
|
|
+ positionName = "副教授";
|
|
|
+ break;
|
|
|
+ case 3751:
|
|
|
+ positionName = "教授";
|
|
|
+ break;
|
|
|
+ case 3752:
|
|
|
+ positionName = "硕士生导师";
|
|
|
+ break;
|
|
|
+ case 3753:
|
|
|
+ positionName = "博士生导师";
|
|
|
+ break;
|
|
|
+ case 3754:
|
|
|
+ positionName = "高级工程师";
|
|
|
+ break;
|
|
|
+ case 3755:
|
|
|
+ positionName = "实验师";
|
|
|
+ break;
|
|
|
+ case 3756:
|
|
|
+ positionName = "研究员";
|
|
|
+ break;
|
|
|
+ case 3757:
|
|
|
+ positionName = "其他";
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return positionName;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public String platformTypeToName(String platformName) {
|
|
|
+ String platformType = "";
|
|
|
+ switch (platformName) {
|
|
|
+ case "国家级":
|
|
|
+ platformType = "3790";
|
|
|
+ break;
|
|
|
+ case "省级":
|
|
|
+ platformType = "3791";
|
|
|
+ break;
|
|
|
+ case "市级":
|
|
|
+ platformType = "3792";
|
|
|
+ break;
|
|
|
+ case "区级":
|
|
|
+ platformType = "3793";
|
|
|
+ break;
|
|
|
+ case "其他":
|
|
|
+ platformType = "3794";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return platformType;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 根据企业唯一标识id查询企业信息数据。
|
|
|
*
|