Explorar o código

修改json转对象异常

syh %!s(int64=4) %!d(string=hai) anos
pai
achega
82f06d6a32

+ 0 - 5
jeecg-boot-module-system/pom.xml

@@ -181,11 +181,6 @@
             <artifactId>pagehelper</artifactId>
             <version>5.1.11</version>
         </dependency>
-        <dependency>
-            <groupId>com.github.houbb</groupId>
-            <artifactId>csv</artifactId>
-            <version>0.0.6</version>
-        </dependency>
     </dependencies>
 
     <dependencyManagement>

+ 1 - 1
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -263,7 +263,7 @@ public class SampleTest {
 
     @Test
     public void testSendMessage() {
-        String path = "";
+        String path = "D:\\9563226_4.csv";
         List<KuaishouReportDailyCreative>creatives = CsvReadBs.newInstance(path).read(KuaishouReportDailyCreative.class);
         System.out.println(creatives);
     }

+ 2 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/entity/KuaishouReportDailyCampaign.java

@@ -32,9 +32,9 @@ public class KuaishouReportDailyCampaign implements Serializable {
     private Long aclick;
     @JsonProperty
     private Long bclick;
-    @JsonProperty
+    @JsonProperty("photo_share")
     private Long share;
-    @JsonProperty
+    @JsonProperty("photo_comment")
     private Long comment;
     @JsonProperty
     private Long photoLike;

+ 0 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/entity/KuaishouReportDailyCreative.java

@@ -16,9 +16,7 @@ public class KuaishouReportDailyCreative implements Serializable {
     private static final long serialVersionUID = 1L;
     @TableId
     private String id;
-
     private Long accountId;
-
     @JsonProperty("creative_id")
     private Long creativeId;