添加功能

This commit is contained in:
马宝龙
2026-06-28 17:50:00 +08:00
parent aadf5654de
commit 4b244922e6
10 changed files with 1765 additions and 215 deletions

View File

@@ -1,13 +1,11 @@
package com.ruoyi.cms.constant;
import com.ruoyi.cms.domain.vo.DictVo;
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.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@@ -127,18 +125,27 @@ public class CommonConstant {
/**
* 高校类型列表
*/
public static final List<Tuple2<String, String>> UNIVERSITY_TYPE_LIST =
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 =
public static final List<Tuple2<String, String>> SECTOR_LIST =
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
Tuples.of("1", "新材料"),
Tuples.of("2", "新能源"),
@@ -151,7 +158,7 @@ public class CommonConstant {
/**
* 重点群体列表
*/
public static final List<Tuple2<String, String>> KEY_GROUP_LIST =
public static final List<Tuple2<String, String>> KEY_GROUP_LIST =
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
Tuples.of("1", "失业人员"),
Tuples.of("2", "高校毕业生"),
@@ -161,4 +168,107 @@ public class CommonConstant {
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
)));
}