Commit f0c7e8a4 authored by zhangsen's avatar zhangsen

字段名修改,枚举修改提交

parent f880ec1d
......@@ -22,7 +22,7 @@ public class JgScrapCancelDto extends BaseDto {
@ApiModelProperty(value = "注销类型(1报废注销,2移装注销)")
private String type;
private String cancelType;
@ApiModelProperty(value = "申请编号")
private String applyNo;
......
......@@ -25,8 +25,8 @@ public class JgScrapCancel extends BaseEntity {
/**
* 注销类型(1报废注销,2移装注销)
*/
@TableField("type")
private String type;
@TableField("cancel_type")
private String cancelType;
/**
* 申请编号
......
package com.yeejoin.amos.boot.module.jg.api.enums;
/**
* 办理状态枚举
*/
public enum CancelTypeEnum {
/**
* 报废注销
*/
SCRAPPED("1", "报废注销"),
/**
* 移装注销
*/
TRANSFER("2", "移装注销");
private final String code;
private final String name;
CancelTypeEnum(String code, String name) {
this.code = code;
this.name = name;
}
public static String getNameByType(String code) {
String name = null;
for (CancelTypeEnum enumOne : CancelTypeEnum.values()) {
if (enumOne.getCode() == code) {
name = enumOne.getName();
break;
}
}
return name;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
}
......@@ -26,6 +26,7 @@ public enum ApplicationFormTypeEnum {
DWBG("DWBG"),//单位变更登记
JY("JY"),
JG("JG"),// 检验结果
SBZX("SBZX"),//电梯(设备)注销
;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment