|
@@ -1,5 +1,6 @@
|
|
|
package com.qs.mp.common.enums;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.alibaba.fastjson.annotation.JSONType;
|
|
|
import com.baomidou.mybatisplus.annotation.IEnum;
|
|
|
import com.qs.mp.common.json.EnumValueDeserializer;
|
|
@@ -29,4 +30,16 @@ public enum ChannelOrderStatusEnum implements IEnum<Integer> {
|
|
|
public Integer getValue() {
|
|
|
return value;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 重写toString,单个转化成json
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ JSONObject object = new JSONObject();
|
|
|
+ object.put("value",value);
|
|
|
+ object.put("desc", desc);
|
|
|
+ return object.toString();
|
|
|
+ }
|
|
|
}
|