package com.nova.sankuai.domain.enums.customerinfo;
|
|
import com.nova.sankuai.domain.vo.EnumParamsVo;
|
import io.swagger.annotations.ApiModel;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
/**
|
* @author weikangdi
|
* 客户资产信息-社保缴纳
|
*/
|
@ApiModel(value = "客户资产信息-社保缴纳枚举")
|
public enum SocialSecurityStatusEnum {
|
|
// 无;6个月以内;6个月以上
|
SocialSecurity_1(0, "无社保"),
|
SocialSecurity_2(1, "未满6个月"),
|
SocialSecurity_3(2, "6个月以上"),
|
SocialSecurity_4(3, "有社保"),
|
SocialSecurity_5(4, "缴纳未满一年"),
|
SocialSecurity_6(5, "3个月以下"),
|
;
|
|
private Integer code;
|
private String value;
|
|
SocialSecurityStatusEnum(int code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(Integer code) {
|
if (code != null) {
|
for (SocialSecurityStatusEnum m : SocialSecurityStatusEnum.values()) {
|
if (m.getCode() == code.intValue()) {
|
return m.getValue();
|
}
|
}
|
}
|
return null;
|
}
|
|
public static List<EnumParamsVo> parseParams() {
|
List<EnumParamsVo> paramsVos = new ArrayList<>();
|
for (SocialSecurityStatusEnum m : SocialSecurityStatusEnum.values()) {
|
EnumParamsVo enumParamsVo = new EnumParamsVo();
|
enumParamsVo.setValue(m.getCode().toString());
|
enumParamsVo.setText(m.getValue());
|
paramsVos.add(enumParamsVo);
|
}
|
return paramsVos;
|
}
|
|
public Integer getCode() {
|
return code;
|
}
|
|
public void setCode(Integer code) {
|
this.code = code;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
}
|