Commit c8414f8a by QianQiXiang

解绑记录接口

parent f085a54a
...@@ -41,7 +41,7 @@ public enum ChannelCodeEnum { ...@@ -41,7 +41,7 @@ public enum ChannelCodeEnum {
this.name = name; this.name = name;
} }
public String getNameByCode(int code) { public static String getNameByCode(int code) {
ChannelCodeEnum[] values = ChannelCodeEnum.values(); ChannelCodeEnum[] values = ChannelCodeEnum.values();
for (ChannelCodeEnum channelCodeEnum : values) { for (ChannelCodeEnum channelCodeEnum : values) {
if (channelCodeEnum.getCode() == code) { if (channelCodeEnum.getCode() == code) {
......
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