You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
634 B
31 lines
634 B
package com.dxhy.common.enums;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
/**
|
|
* @author jiaohongyang
|
|
*/
|
|
@AllArgsConstructor
|
|
public enum QSignStatusEnum {
|
|
/**
|
|
* 签收状态0未签收1已签收
|
|
*/
|
|
|
|
A("0", "未签收"), B("1", "已签收");
|
|
|
|
private final String key;
|
|
private final String value;
|
|
|
|
public static String getVal(String key) {
|
|
for (QSignStatusEnum materialEnum : QSignStatusEnum.values()) {
|
|
if (materialEnum.key.equals(key)) {
|
|
return materialEnum.value;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public String getKey() {
|
|
return key;
|
|
}
|
|
}
|
|
|