代码提交
parent
82e1578c1e
commit
f578a3ebe5
@ -1,39 +1,33 @@
|
||||
package com.supervision.enums;
|
||||
|
||||
public enum RetireRoleEnum {
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.lang.Pair;
|
||||
|
||||
sex("sex", "性别", null),
|
||||
job("job", "职业", null),
|
||||
age("age", "年龄", EntityQuestionEnum.年龄),
|
||||
residentLocation("residentLocation", "户口所在地", EntityQuestionEnum.户口所在地),
|
||||
offsiteSocialSecurityInfo("offsiteSocialSecurityInfo", "异地社保转入情况", null),
|
||||
lastInsuredPlace("lastInsuredPlace", "最后参保地", null),
|
||||
pensionPaymentPeriod("pensionPaymentPeriod", "养老缴费年限", EntityQuestionEnum.缴费年限);
|
||||
import java.util.List;
|
||||
|
||||
private final String code;
|
||||
public enum RetireRoleEnum {
|
||||
|
||||
private final String name;
|
||||
sex("性别", ListUtil.list(false, Pair.of(0, "男"), Pair.of(1, "女"))),
|
||||
age("年龄", ListUtil.list(false, Pair.of(0, "年满60岁"), Pair.of(1, "未满60岁"))),
|
||||
socialSecurityType("退休类型", ListUtil.list(false, Pair.of(0, "城乡居民"), Pair.of(1, "企业职工"))),
|
||||
residentLocation("户口所在地", ListUtil.list(false, Pair.of(0, "深圳户口"), Pair.of(1, "港澳台和外籍人员"), Pair.of(2, "广东省其他地区"), Pair.of(3, "省外户口"))),
|
||||
offsiteSocialSecurityInfo("异地社保转入情况", ListUtil.list(false, Pair.of(0, "无异地社保"), Pair.of(1, "已转入"), Pair.of(2, "未转入"))),
|
||||
pensionPaymentPeriod("缴费年限", ListUtil.list(false, Pair.of(0, "实际缴费年限+视同缴费年限满15年"), Pair.of(1, "实际缴费年限+视同缴费年限未满15年")));
|
||||
|
||||
/**
|
||||
* 关联的实体类型
|
||||
*/
|
||||
private final EntityQuestionEnum entityEnum;
|
||||
private final String zhName;
|
||||
|
||||
RetireRoleEnum(String code, String name, EntityQuestionEnum entityEnum) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
this.entityEnum = entityEnum;
|
||||
}
|
||||
private final List<Pair<Integer, String>> answerList;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
RetireRoleEnum(String zhName, List<Pair<Integer, String>> answerList) {
|
||||
this.zhName = zhName;
|
||||
this.answerList = answerList;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
public String getZhName() {
|
||||
return zhName;
|
||||
}
|
||||
|
||||
public EntityQuestionEnum getEntityEnum() {
|
||||
return entityEnum;
|
||||
public List<Pair<Integer, String>> getAnswerList() {
|
||||
return answerList;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
package com.supervision.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RoleSetNode {
|
||||
|
||||
@ApiModelProperty("项目的英文名")
|
||||
private String itemEn;
|
||||
|
||||
@ApiModelProperty("值的编码数值")
|
||||
private Integer valueNum;
|
||||
}
|
Loading…
Reference in New Issue