14473 三项数据库都有 没有企业类型的企业 创建的数据不正确
parent
ba48e647dc
commit
dc441e5cef
|
@ -183,7 +183,7 @@ public class TextLibraryServiceImpl implements TextLibraryService {
|
||||||
PageData corp_condition = new PageData();
|
PageData corp_condition = new PageData();
|
||||||
corp_condition.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
corp_condition.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||||
PageData corp = corpInfoMapper.getInfo(corp_condition);
|
PageData corp = corpInfoMapper.getInfo(corp_condition);
|
||||||
|
// 国民经济类型
|
||||||
List<PageData> specificationTypes = Warden.initSpecificationTypes(corp);
|
List<PageData> specificationTypes = Warden.initSpecificationTypes(corp);
|
||||||
list.addAll(specificationTypes);
|
list.addAll(specificationTypes);
|
||||||
List<PageData> labels = Warden.getList(condition.getString("labels"));
|
List<PageData> labels = Warden.getList(condition.getString("labels"));
|
||||||
|
|
|
@ -331,29 +331,37 @@ public class Warden {
|
||||||
|
|
||||||
public static List<PageData> initSpecificationTypes(PageData corp) {
|
public static List<PageData> initSpecificationTypes(PageData corp) {
|
||||||
List<PageData> list = new ArrayList<>();
|
List<PageData> list = new ArrayList<>();
|
||||||
|
if (corp.get("CORP_TYPE_ONE_NAME") != null && StringUtils.isNotBlank(corp.getString("CORP_TYPE_ONE_NAME"))){
|
||||||
PageData one = new PageData();
|
PageData one = new PageData();
|
||||||
one.put("CATEGORY","SPECIFICATION_TYPES");
|
one.put("CATEGORY","SPECIFICATION_TYPES");
|
||||||
one.put("CATEGORY_ID",corp.getString("CORP_TYPE"));
|
one.put("CATEGORY_ID",corp.getString("CORP_TYPE"));
|
||||||
one.put("CATEGORY_NAME",corp.getString("CORP_TYPE_ONE_NAME"));
|
one.put("CATEGORY_NAME",corp.getString("CORP_TYPE_ONE_NAME"));
|
||||||
list.add(one);
|
list.add(one);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (corp.get("CORP_TYPE_TWO_NAME") != null && StringUtils.isNotBlank(corp.getString("CORP_TYPE_TWO_NAME"))) {
|
||||||
PageData two = new PageData();
|
PageData two = new PageData();
|
||||||
two.put("CATEGORY", "SPECIFICATION_TYPES");
|
two.put("CATEGORY", "SPECIFICATION_TYPES");
|
||||||
two.put("CATEGORY_ID", corp.getString("CORP_TYPE2"));
|
two.put("CATEGORY_ID", corp.getString("CORP_TYPE2"));
|
||||||
two.put("CATEGORY_NAME", corp.getString("CORP_TYPE_TWO_NAME"));
|
two.put("CATEGORY_NAME", corp.getString("CORP_TYPE_TWO_NAME"));
|
||||||
list.add(two);
|
list.add(two);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (corp.get("CORP_TYPE_THREE_NAME") != null && StringUtils.isNotBlank(corp.getString("CORP_TYPE_THREE_NAME"))) {
|
||||||
PageData three = new PageData();
|
PageData three = new PageData();
|
||||||
three.put("CATEGORY", "SPECIFICATION_TYPES");
|
three.put("CATEGORY", "SPECIFICATION_TYPES");
|
||||||
three.put("CATEGORY_ID", corp.getString("CORP_TYPE3"));
|
three.put("CATEGORY_ID", corp.getString("CORP_TYPE3"));
|
||||||
three.put("CATEGORY_NAME", corp.getString("CORP_TYPE_THREE_NAME"));
|
three.put("CATEGORY_NAME", corp.getString("CORP_TYPE_THREE_NAME"));
|
||||||
list.add(three);
|
list.add(three);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (corp.get("CORP_TYPE_FOUR_NAME") != null && StringUtils.isNotBlank(corp.getString("CORP_TYPE_FOUR_NAME"))) {
|
||||||
PageData four = new PageData();
|
PageData four = new PageData();
|
||||||
four.put("CATEGORY", "SPECIFICATION_TYPES");
|
four.put("CATEGORY", "SPECIFICATION_TYPES");
|
||||||
four.put("CATEGORY_ID", corp.getString("CORP_TYPE4"));
|
four.put("CATEGORY_ID", corp.getString("CORP_TYPE4"));
|
||||||
four.put("CATEGORY_NAME", corp.getString("CORP_TYPE_FOUR_NAME"));
|
four.put("CATEGORY_NAME", corp.getString("CORP_TYPE_FOUR_NAME"));
|
||||||
list.add(four);
|
list.add(four);
|
||||||
|
}
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue