|
@@ -0,0 +1,92 @@
|
|
|
+package com.rshy.project.hy.server.dto;
|
|
|
+
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Created by fanqun on 2022/5/30.
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@Accessors(chain = true)
|
|
|
+public class PctsfzResultDTO {
|
|
|
+
|
|
|
+ private int code;
|
|
|
+ private String msg;
|
|
|
+
|
|
|
+ private SfzData data;
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class SfzData implements Serializable {
|
|
|
+ private List<SfzResult> result;
|
|
|
+ private int excuteTime;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class SfzResult implements Serializable {
|
|
|
+ private String CZRKGMSFHM;
|
|
|
+ private String CZRKXM;
|
|
|
+ private String CZRKQFJG;
|
|
|
+ private String CZRKMZ;
|
|
|
+ private String CZRKZZ;
|
|
|
+ private String CZRKYXQXJZRQ;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public static void main(String[] args) {
|
|
|
+ String string = "{\n" +
|
|
|
+ " \"msg\": \"操作成功\",\n" +
|
|
|
+ " \"code\": 0,\n" +
|
|
|
+ " \"data\": {\n" +
|
|
|
+ " \"result\": [\n" +
|
|
|
+ " {\n" +
|
|
|
+ " \"CZRKGMSFHM\": \"33018419950510501X\",\n" +
|
|
|
+ " \"CZRKXM\": \"徐世杰\",\n" +
|
|
|
+ " \"CZRKSLQFID\": \"\",\n" +
|
|
|
+ " \"CZRKYXQXQSRQ\": \"20110514\",\n" +
|
|
|
+ " \"FILE_URL\": \"\",\n" +
|
|
|
+ " \"NAME\": \"\",\n" +
|
|
|
+ " \"FZJG\": \"杭州市公安局江干分局\",\n" +
|
|
|
+ " \"CZRKQFJG\": \"杭州市公安局江干分局\",\n" +
|
|
|
+ " \"PICHASHCODE\": \"\",\n" +
|
|
|
+ " \"CZRKCSRQ\": \"19950510\",\n" +
|
|
|
+ " \"CZRKMZ\": \"汉族\",\n" +
|
|
|
+ " \"CZRKXB\": \"男\",\n" +
|
|
|
+ " \"CZRKSDZPID\": \"\",\n" +
|
|
|
+ " \"LYBM\": \"ysk_kx.ods_zjt_slxxb\",\n" +
|
|
|
+ " \"CZRKYXQXJZRQ\": \"20210514\",\n" +
|
|
|
+ " \"ELC_LICENCE_RELATES\": \"\",\n" +
|
|
|
+ " \"CZRKZZ\": \"杭州市江干区青荷苑10幢2单元201室\"\n" +
|
|
|
+ " },\n" +
|
|
|
+ " {\n" +
|
|
|
+ " \"CZRKGMSFHM\": \"33018419950510501X\",\n" +
|
|
|
+ " \"CZRKXM\": \"徐世杰\",\n" +
|
|
|
+ " \"CZRKSLQFID\": \"\",\n" +
|
|
|
+ " \"CZRKYXQXQSRQ\": \"20171227\",\n" +
|
|
|
+ " \"FILE_URL\": \"\",\n" +
|
|
|
+ " \"NAME\": \"\",\n" +
|
|
|
+ " \"FZJG\": \"杭州市公安局江干分局\",\n" +
|
|
|
+ " \"CZRKQFJG\": \"杭州市公安局江干分局\",\n" +
|
|
|
+ " \"PICHASHCODE\": \"\",\n" +
|
|
|
+ " \"CZRKCSRQ\": \"19950510\",\n" +
|
|
|
+ " \"CZRKMZ\": \"汉族\",\n" +
|
|
|
+ " \"CZRKXB\": \"男\",\n" +
|
|
|
+ " \"CZRKSDZPID\": \"\",\n" +
|
|
|
+ " \"LYBM\": \"ysk_kx.ods_zjt_slxxb\",\n" +
|
|
|
+ " \"CZRKYXQXJZRQ\": \"20271227\",\n" +
|
|
|
+ " \"ELC_LICENCE_RELATES\": \"\",\n" +
|
|
|
+ " \"CZRKZZ\": \"杭州市江干区青荷苑10幢2单元201室\"\n" +
|
|
|
+ " }\n" +
|
|
|
+ " ],\n" +
|
|
|
+ " \"excuteTime\": 14\n" +
|
|
|
+ " }\n" +
|
|
|
+ "}";
|
|
|
+
|
|
|
+ PctsfzResultDTO pctsfzResultDTO = JSON.parseObject(string, PctsfzResultDTO.class);
|
|
|
+ System.out.println(JSON.toJSONString(pctsfzResultDTO));
|
|
|
+ }
|
|
|
+}
|