Commit 04ed3675 by daixiaohong

["暂无"]:cmdId变量类型修改

parent 02d7f9db
...@@ -41,7 +41,7 @@ public class InitHander implements CommandLineRunner { ...@@ -41,7 +41,7 @@ public class InitHander implements CommandLineRunner {
list.forEach(j->{ list.forEach(j->{
JsonDataDto jsonDataDto = new JsonDataDto(); JsonDataDto jsonDataDto = new JsonDataDto();
List<JSONObject> mongdbTableList= JSONObject.parseObject(j.getJSONObject("reported").getJSONArray("singleField").toString(), List.class); List<JSONObject> mongdbTableList= JSONObject.parseObject(j.getJSONObject("reported").getJSONArray("singleField").toString(), List.class);
jsonDataDto.setCmdId(j.get("cmdId").toString()); jsonDataDto.setCmdId(Integer.parseInt(j.get("cmdId").toString()));
jsonDataDto.setMongdbTableb(j.get("mongdbTableb").toString()); jsonDataDto.setMongdbTableb(j.get("mongdbTableb").toString());
jsonDataDto.setSequenceId(Integer.parseInt(j.get("sequenceId").toString())); jsonDataDto.setSequenceId(Integer.parseInt(j.get("sequenceId").toString()));
jsonDataDto.setProductKey(j.get("productKey").toString()); jsonDataDto.setProductKey(j.get("productKey").toString());
......
...@@ -10,7 +10,7 @@ import java.util.Map; ...@@ -10,7 +10,7 @@ import java.util.Map;
@Data @Data
public class JsonDataDto { public class JsonDataDto {
@JsonProperty("cmdId") @JsonProperty("cmdId")
private String cmdId; private Integer cmdId;
/** /**
* sk 路徑 * sk 路徑
*/ */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论