public class ProposalRuleFlag {
public enum RelationType{
RISKKIND("01");
private final String value;
private RelationType(String value) {
this.value = value;
}
public String toString() {
return this.value;
}
};
}
//使用
if (relationType.equals(ProposalRuleFlag.RelationType.RISKKIND
.toString()))