Commit f0b08c27 by hanghang.wang

新增订单商品extInfo内部类对象

parent 66e68813
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>assortment-ordercenter-sdk</artifactId> <artifactId>assortment-ordercenter-sdk</artifactId>
<version>2.1.18-RELEASE</version> <version>1.9.5-SNAPSHOT</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
......
...@@ -97,3 +97,4 @@ ...@@ -97,3 +97,4 @@
| 2.1.16-RELEASE | 停车场订单添加排序字段 | 张志恒 | 2021-01-06 | | 2.1.16-RELEASE | 停车场订单添加排序字段 | 张志恒 | 2021-01-06 |
| 2.1.17-RELEASE | 增加配送类型字段 | 王航航 | 2021-01-06 | | 2.1.17-RELEASE | 增加配送类型字段 | 王航航 | 2021-01-06 |
| 2.1.18-RELEASE | 添加美团点评渠道 | 梁崇福 | 2021-01-07 | | 2.1.18-RELEASE | 添加美团点评渠道 | 梁崇福 | 2021-01-07 |
1.9.5-SNAPSHOT | 新增订单商品extInfo内部类对象 | 王航航 | 2021-01-11 |
\ No newline at end of file
...@@ -620,6 +620,21 @@ public class QueryOrdersResponse { ...@@ -620,6 +620,21 @@ public class QueryOrdersResponse {
private String productId; private String productId;
} }
@NoArgsConstructor
@Data
public static class ProductExtInfo {
//券活动编号
private String activityCode;
//数量
private Integer num;
//券活动名称
private String activityName;
}
} }
@NoArgsConstructor @NoArgsConstructor
......
package cn.freemud; package cn.freemud;
import cn.freemud.utils.QrCodeUtilTest;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import org.junit.Test; import org.junit.Test;
import java.io.File; import java.io.File;
...@@ -9,9 +12,7 @@ import java.lang.reflect.Method; ...@@ -9,9 +12,7 @@ import java.lang.reflect.Method;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.net.URL; import java.net.URL;
import java.net.URLDecoder; import java.net.URLDecoder;
import java.util.Enumeration; import java.util.*;
import java.util.LinkedHashSet;
import java.util.Set;
public class AllTests { public class AllTests {
...@@ -125,6 +126,65 @@ public class AllTests { ...@@ -125,6 +126,65 @@ public class AllTests {
} }
@Test
public void qq (){
// String imageString = QrCodeUtil.createQrCode("1243456", 200, "PNG");
// System.out.println(imageString);
aa a1 = new aa();
List<aa> list = new ArrayList<>();
for (int i = 0;i<4 ;i++){
a1.setA("1" + i);
a1.setB("1"+ i);
a1.setC("1"+ i);
list.add(a1);
}
String astr = list.toString();
Gson gson = new Gson();
List<aa> goods = gson.fromJson(astr,
new TypeToken<List<aa>>() {
}.getType());
System.out.println(goods);
}
public class aa {
String a;
String b;
String c;
public String getA() {
return a;
}
public void setA(String a) {
this.a = a;
}
public String getB() {
return b;
}
public void setB(String b) {
this.b = b;
}
public String getC() {
return c;
}
public void setC(String c) {
this.c = c;
}
}
/** /**
* 以文件的形式来获取包下的所有Class * 以文件的形式来获取包下的所有Class
* *
......
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