例子:
package com.trm.bidding.modules.project.bean; public enum ProjectState { N0("N0","项目待审核"),N1("N1","竞价中"),N2("N2","竞价—已结束"),T0("T0","竞价—已中标"),N3("N3","已中标—待合同备案"),N4("N4","合同备案—待审核"),N5("N5","合同备案—已通过"),N9("N9","项目未通过"),A0("A0","保存"),A1("A1","合同备案—未通过"); private String code; private String remark; ProjectState(String code, String remark){ this.code = code; this.remark = remark; } public String getCode() { return code; } public String getRemark() { return remark; } }