370 lines
15 KiB
Java
370 lines
15 KiB
Java
package com.ruoyi.cms.constant;
|
|
|
|
import reactor.util.function.Tuple2;
|
|
import reactor.util.function.Tuples;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
|
|
public class CommonConstant {
|
|
/**
|
|
* 地铁线路缓存
|
|
*/
|
|
public static final String SUBWAY_LINE_CACHE = "common_cache:subway";
|
|
public static final String COMMERICIAL_AREA = "common_cache:comericial_area";
|
|
public static final String JOB_TITLE = "common_cache:job_titile";
|
|
|
|
|
|
/**
|
|
* 团场列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> AREA_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("659001000000", "石河子市"),
|
|
Tuples.of("659001001000", "新城街道"),
|
|
Tuples.of("659001002000", "向阳街道"),
|
|
Tuples.of("659001003000", "红山街道"),
|
|
Tuples.of("659001004000", "老街街道"),
|
|
Tuples.of("659001005000", "东城街道"),
|
|
Tuples.of("659001100000", "北泉镇"),
|
|
Tuples.of("659001101000", "石河子镇"),
|
|
Tuples.of("654203503000", "121团"),
|
|
Tuples.of("654203506000", "133团"),
|
|
Tuples.of("654203507000", "134团"),
|
|
Tuples.of("650203530000", "136团"),
|
|
Tuples.of("654203509000", "141团"),
|
|
Tuples.of("654203510000", "142团"),
|
|
Tuples.of("654203511000", "143团"),
|
|
Tuples.of("654203512000", "144团"),
|
|
Tuples.of("652324521000", "147团"),
|
|
Tuples.of("652324522000", "148团"),
|
|
Tuples.of("652324523000", "149团"),
|
|
Tuples.of("652324524000", "150团"),
|
|
Tuples.of("659001500000", "152团")
|
|
)));
|
|
/**
|
|
* 团场Map
|
|
*/
|
|
public static final Map<String, String> AREA_MAP =
|
|
Collections.unmodifiableMap(AREA_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 行业列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> INDUSTRY_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("A", "农、林、牧、渔业"),
|
|
Tuples.of("B", "采矿业"),
|
|
Tuples.of("C", "制造业"),
|
|
Tuples.of("D", "电力、热力、燃气及水生产和供应业"),
|
|
Tuples.of("E", "建筑业"),
|
|
Tuples.of("F", "批发和零售业"),
|
|
Tuples.of("G", "交通运输、仓储和邮政业"),
|
|
Tuples.of("H", "住宿和餐饮业"),
|
|
Tuples.of("I", "信息传输、软件和信息技术服务业"),
|
|
Tuples.of("J", "金融业"),
|
|
Tuples.of("K", "房地产业"),
|
|
Tuples.of("L", "租赁和商务服务业"),
|
|
Tuples.of("M", "科学研究和技术服务业"),
|
|
Tuples.of("N", "水利、环境和公共设施管理业"),
|
|
Tuples.of("O", "居民服务、修理和其他服务业"),
|
|
Tuples.of("P", "教育"),
|
|
Tuples.of("Q", "卫生和社会工作"),
|
|
Tuples.of("R", "文化、体育和娱乐业"),
|
|
Tuples.of("S", "公共管理、社会保障和社会组织"),
|
|
Tuples.of("T", "国际组织")
|
|
)));
|
|
/**
|
|
* 行业Map
|
|
*/
|
|
public static final Map<String, String> INDUSTRY_MAP =
|
|
Collections.unmodifiableMap(INDUSTRY_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 重点行业列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> MAJOR_INDUSTRY_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("C26", "化学原料和化学制品制造业"),
|
|
Tuples.of("C30", "非金属矿物制品业"),
|
|
Tuples.of("C31", "黑色金属冶炼和压延加工业"),
|
|
Tuples.of("C32", "有色金属冶炼和压延加工业"),
|
|
Tuples.of("D44", "电力、热力生产和供应业"),
|
|
Tuples.of("C13", "农副食品加工业"),
|
|
Tuples.of("C14", "食品制造业"),
|
|
Tuples.of("C15", "酒、饮料和精制茶制造业"),
|
|
Tuples.of("L72", "商务服务业"),
|
|
Tuples.of("M74", "专业技术服务业"),
|
|
Tuples.of("M75", "科技推广和应用服务业"),
|
|
Tuples.of("I65", "软件和信息技术服务业"),
|
|
Tuples.of("I64", "互联网和相关服务"),
|
|
Tuples.of("C17", "纺织业"),
|
|
Tuples.of("C18", "纺织服装、服饰业"),
|
|
Tuples.of("C34", "通用设备制造业"),
|
|
Tuples.of("C35", "专用设备制造业"),
|
|
Tuples.of("C36", "汽车制造业"),
|
|
Tuples.of("C38", "电气机械和器材制造业"),
|
|
Tuples.of("C39", "计算机、通信和其他电子设备制造业"),
|
|
Tuples.of("C40", "仪器仪表制造业"),
|
|
Tuples.of("C27", "医药制造业"),
|
|
Tuples.of("M73", "研究和试验发展")
|
|
)));
|
|
/**
|
|
* 重点行业Map
|
|
*/
|
|
public static final Map<String, String> MAJOR_INDUSTRY_MAP =
|
|
Collections.unmodifiableMap(MAJOR_INDUSTRY_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
/**
|
|
* 重点产业列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> MAJOR_SECTOR_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("新材料产业 (碳基、硅基、铝基)", "新材料产业 (碳基、硅基、铝基)"),
|
|
Tuples.of("新能源产业", "新能源产业"),
|
|
Tuples.of("农业资源转化产业 (农产品精深加工)", "农业资源转化产业 (农产品精深加工)"),
|
|
Tuples.of("现代服务业", "现代服务业"),
|
|
Tuples.of("绿色算力产业", "绿色算力产业"),
|
|
Tuples.of("纺织服装产业", "纺织服装产业"),
|
|
Tuples.of("先进装备制造", "先进装备制造"),
|
|
Tuples.of("生物医药", "生物医药")
|
|
)));
|
|
/**
|
|
* 重点产业Map
|
|
*/
|
|
public static final Map<String, String> MAJOR_SECTOR_MAP =
|
|
Collections.unmodifiableMap(MAJOR_SECTOR_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 高校类型列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> UNIVERSITY_TYPE_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("1", "一本院校"),
|
|
Tuples.of("2", "二本院校"),
|
|
Tuples.of("3", "专科院校"),
|
|
Tuples.of("4", "民办院校")
|
|
)));
|
|
/**
|
|
* 高校类型Map
|
|
*/
|
|
public static final Map<String, String> UNIVERSITY_TYPE_MAP =
|
|
Collections.unmodifiableMap(UNIVERSITY_TYPE_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 产业列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> SECTOR_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("1", "新材料"),
|
|
Tuples.of("2", "新能源"),
|
|
Tuples.of("3", "现代服务业"),
|
|
Tuples.of("4", "先进服务"),
|
|
Tuples.of("5", "数字经济"),
|
|
Tuples.of("6", "农业")
|
|
)));
|
|
|
|
/**
|
|
* 重点群体列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> KEY_GROUP_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("1", "失业人员"),
|
|
Tuples.of("2", "高校毕业生"),
|
|
Tuples.of("3", "残疾人"),
|
|
Tuples.of("4", "低收入家庭"),
|
|
Tuples.of("5", "零就业家庭"),
|
|
Tuples.of("6", "其他重点人群")
|
|
)));
|
|
|
|
|
|
/**
|
|
* 学历水平列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> EDUCATION_LEVEL_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("11", "博士研究生"),
|
|
Tuples.of("14", "硕士研究生"),
|
|
Tuples.of("21", "大学本科"),
|
|
Tuples.of("31", "大学专科"),
|
|
Tuples.of("41", "中等专科"),
|
|
Tuples.of("44", "职业高中"),
|
|
Tuples.of("47", "技工学校"),
|
|
Tuples.of("61", "普通高中"),
|
|
Tuples.of("71", "初中"),
|
|
Tuples.of("81", "小学"),
|
|
Tuples.of("90", "其他")
|
|
)));
|
|
/**
|
|
* 学历水平Map
|
|
*/
|
|
public static final Map<String, String> EDUCATION_LEVEL_MAP =
|
|
Collections.unmodifiableMap(EDUCATION_LEVEL_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 性别列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> GENDER_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("1", "男"),
|
|
Tuples.of("2", "女"),
|
|
Tuples.of("9", "未说明性别")
|
|
)));
|
|
/**
|
|
* 性别Map
|
|
*/
|
|
public static final Map<String, String> GENDER_MAP =
|
|
Collections.unmodifiableMap(GENDER_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 就业流向列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> EMPLOYMENT_FLOW_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("1", "本地"),
|
|
Tuples.of("2", "省内"),
|
|
Tuples.of("3", "省外")
|
|
)));
|
|
/**
|
|
* 就业流向Map
|
|
*/
|
|
public static final Map<String, String> EMPLOYMENT_FLOW_MAP =
|
|
Collections.unmodifiableMap(EMPLOYMENT_FLOW_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 就业去向列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> EMPLOYMENT_CROWD_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("011", "党政机关就业"),
|
|
Tuples.of("012", "事业单位就业"),
|
|
Tuples.of("013", "国有企业就业"),
|
|
Tuples.of("014", "非国有企业就业"),
|
|
Tuples.of("015", "部队就业(无军籍)"),
|
|
Tuples.of("021", "个体经营"),
|
|
Tuples.of("022", "灵活就业等其他自主就业"),
|
|
Tuples.of("030", "公益性岗位安置"),
|
|
Tuples.of("040", "自主创业"),
|
|
Tuples.of("051", "社区岗位"),
|
|
Tuples.of("052", "基层项目"),
|
|
Tuples.of("053", "科研助理"),
|
|
Tuples.of("059", "其他形式就业"),
|
|
Tuples.of("060", "应征入伍"),
|
|
Tuples.of("070", "升学"),
|
|
Tuples.of("080", "出国(境)"),
|
|
Tuples.of("091", "就业见习"),
|
|
Tuples.of("092", "职业培训"),
|
|
Tuples.of("093", "正在求职"),
|
|
Tuples.of("094", "自愿暂时不就业"),
|
|
Tuples.of("095", "其他情况未就业"),
|
|
Tuples.of("990", "联系不上")
|
|
)));
|
|
/**
|
|
* 就业去向Map
|
|
*/
|
|
public static final Map<String, String> EMPLOYMENT_CROWD_MAP =
|
|
Collections.unmodifiableMap(EMPLOYMENT_CROWD_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
|
|
/**
|
|
* 岗位类型列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> JOB_TYPE_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("1", "管理人员"),
|
|
Tuples.of("2", "专业技术人员"),
|
|
Tuples.of("3", "技能工人"),
|
|
Tuples.of("4", "一般员工"),
|
|
Tuples.of("5", "其他")
|
|
)));
|
|
/**
|
|
* 岗位类型Map
|
|
*/
|
|
public static final Map<String, String> JOB_TYPE_MAP =
|
|
Collections.unmodifiableMap(JOB_TYPE_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 企业类型列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> COMPANY_TYPE_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("1", "国有企业"),
|
|
Tuples.of("2", "民营企业"),
|
|
Tuples.of("3", "外资企业"),
|
|
Tuples.of("4", "合资企业"),
|
|
Tuples.of("5", "事业单位")
|
|
)));
|
|
/**
|
|
* 企业类型Map
|
|
*/
|
|
public static final Map<String, String> COMPANY_TYPE_MAP =
|
|
Collections.unmodifiableMap(COMPANY_TYPE_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
|
|
/**
|
|
* 招聘方式列表
|
|
*/
|
|
public static final List<Tuple2<String, String>> RECRUITMENT_WAY_LIST =
|
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
|
Tuples.of("1", "线上招聘"),
|
|
Tuples.of("2", "线下招聘"),
|
|
Tuples.of("3", "校园招聘"),
|
|
Tuples.of("4", "内部推荐")
|
|
)));
|
|
/**
|
|
* 企业类型Map
|
|
*/
|
|
public static final Map<String, String> RECRUITMENT_WAY_MAP =
|
|
Collections.unmodifiableMap(RECRUITMENT_WAY_LIST.stream()
|
|
.collect(Collectors.toMap(
|
|
Tuple2::getT1,
|
|
Tuple2::getT2
|
|
)));
|
|
}
|