|
|
@@ -0,0 +1,45 @@
|
|
|
+package com.ydtech.constants.enums.dict;
|
|
|
+
|
|
|
+
|
|
|
+import com.ydtech.aop.request.DictEnum;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Getter;
|
|
|
+
|
|
|
+@Getter
|
|
|
+@AllArgsConstructor
|
|
|
+@DictEnum(key = "InsInsuranceKind", desc = "险种类型")
|
|
|
+public enum InsInsuranceKind implements IBaseEnum{
|
|
|
+
|
|
|
+
|
|
|
+ A("A", "车损","机动车损失险"),
|
|
|
+
|
|
|
+ TRAFFIC("0507", "交强", "机动车交通事故责任强制保险"),
|
|
|
+
|
|
|
+ BUSINESS("0510", "商业", "机动车商业保险");
|
|
|
+
|
|
|
+
|
|
|
+ private final String code;
|
|
|
+
|
|
|
+ private final String desc;
|
|
|
+
|
|
|
+ private final String shortName;
|
|
|
+
|
|
|
+ public static InsInsuranceKind getInsInsuranceKind(String code) {
|
|
|
+ for (InsInsuranceKind insInsuranceKind : InsInsuranceKind.values()) {
|
|
|
+ if (insInsuranceKind.getCode().equals(code)) {
|
|
|
+ return insInsuranceKind;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer getSort() {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer getStatus() {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+}
|