代码提交
parent
82e1578c1e
commit
f578a3ebe5
@ -1,39 +1,33 @@
|
|||||||
package com.supervision.enums;
|
package com.supervision.enums;
|
||||||
|
|
||||||
public enum RetireRoleEnum {
|
import cn.hutool.core.collection.ListUtil;
|
||||||
|
import cn.hutool.core.lang.Pair;
|
||||||
|
|
||||||
sex("sex", "性别", null),
|
import java.util.List;
|
||||||
job("job", "职业", null),
|
|
||||||
age("age", "年龄", EntityQuestionEnum.年龄),
|
|
||||||
residentLocation("residentLocation", "户口所在地", EntityQuestionEnum.户口所在地),
|
|
||||||
offsiteSocialSecurityInfo("offsiteSocialSecurityInfo", "异地社保转入情况", null),
|
|
||||||
lastInsuredPlace("lastInsuredPlace", "最后参保地", null),
|
|
||||||
pensionPaymentPeriod("pensionPaymentPeriod", "养老缴费年限", EntityQuestionEnum.缴费年限);
|
|
||||||
|
|
||||||
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 String zhName;
|
||||||
* 关联的实体类型
|
|
||||||
*/
|
|
||||||
private final EntityQuestionEnum entityEnum;
|
|
||||||
|
|
||||||
RetireRoleEnum(String code, String name, EntityQuestionEnum entityEnum) {
|
private final List<Pair<Integer, String>> answerList;
|
||||||
this.code = code;
|
|
||||||
this.name = name;
|
|
||||||
this.entityEnum = entityEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCode() {
|
RetireRoleEnum(String zhName, List<Pair<Integer, String>> answerList) {
|
||||||
return code;
|
this.zhName = zhName;
|
||||||
|
this.answerList = answerList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getZhName() {
|
||||||
return name;
|
return zhName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityQuestionEnum getEntityEnum() {
|
public List<Pair<Integer, String>> getAnswerList() {
|
||||||
return entityEnum;
|
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