File was renamed from ruoyi-common/src/main/java/com/ruoyi/common/enums/BillTypeEnum.java |
| | |
| | | |
| | | import lombok.Getter; |
| | | |
| | | public enum BillTypeEnum { |
| | | public enum RegisteredCapitalsEnum { |
| | | |
| | | Zujin(1,"租金"), |
| | | Yajin(2,"押金"), |
| | |
| | | this.name = name; |
| | | } |
| | | |
| | | BillTypeEnum(Integer code, String name){ |
| | | RegisteredCapitalsEnum(Integer code, String name){ |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | |
| | | public static BillTypeEnum getByCode(Integer code){ |
| | | BillTypeEnum[] values = BillTypeEnum.values(); |
| | | for (BillTypeEnum value : values) { |
| | | public static RegisteredCapitalsEnum getByCode(Integer code){ |
| | | RegisteredCapitalsEnum[] values = RegisteredCapitalsEnum.values(); |
| | | for (RegisteredCapitalsEnum value : values) { |
| | | if (value.code==code){ |
| | | return value; |
| | | } |