yumeng il y a 5 ans
Parent
commit
a3e24a3306

+ 4 - 4
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -402,10 +402,10 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             detailJson.put("photo_show", show);
             var like = detailJson.getLong("like");
             detailJson.put("photo_like", like);
-            var kuaishouReportDailyAccount = JSONObject.toJavaObject(detailJson, KuaishouReportDailyAccount.class);
-            kuaishouReportDailyAccount.setAccountId(token.getAccountId());
-            kuaishouReportDailyAccount.setId("" + token.getAccountId() + kuaishouReportDailyAccount.getStatDate());
-            dailyAccountService.saveOrUpdate(kuaishouReportDailyAccount);
+            var KuaishouReportDailyAccountOld = JSONObject.toJavaObject(detailJson, KuaishouReportDailyAccountOld.class);
+            KuaishouReportDailyAccountOld.setAccountId(token.getAccountId());
+            KuaishouReportDailyAccountOld.setId("" + token.getAccountId() + KuaishouReportDailyAccountOld.getStatDate());
+            dailyAccountService.saveOrUpdate(KuaishouReportDailyAccountOld);
         }
         getAccountDailyReportByPage(token, startDate, endDate, page + 1);
     }

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

@@ -0,0 +1,125 @@
+package cn.com.ctop.kuaishou.modules.report.entity;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+@Data
+@TableName("ctop_kuaishou_report_daily_account")
+public class KuaishouReportDailyAccountOld implements Serializable {
+    private static final long serialVersionUID = 1L;
+    @TableId
+    private String id;
+
+    private Long accountId;
+
+    @JsonProperty("stat_date")
+    private String statDate;
+
+    @JsonProperty
+    private BigDecimal charge;
+
+    @JsonProperty
+    private Long photoShow;
+
+    @JsonProperty("photo_click")
+    private Long photoClick;
+
+    @JsonProperty
+    private Long aclick;
+    @JsonProperty
+    private Long bclick;
+    @JsonProperty
+    private Long share;
+    @JsonProperty
+    private Long comment;
+    @JsonProperty
+    private Long photoLike;
+    @JsonProperty
+    private Long follow;
+    @JsonProperty("cancel_follow")
+    private Long cancelFollow;
+    @JsonProperty
+    private Long report;
+    @JsonProperty
+    private Long block;
+    @JsonProperty
+    private Long negative;
+    @JsonProperty
+    private Long submit;
+    @JsonProperty("download_started")
+    private Long downloadStarted;
+    @JsonProperty("download_completed")
+    private Long downloadCompleted;
+    @JsonProperty
+    private Long activation;
+
+    @JsonProperty
+    private BigDecimal photoClickRatio;
+    @JsonProperty
+    private BigDecimal actionRatio;
+    @JsonProperty("impression_1k_cost")
+    @TableField("impression_1k_cost")
+    private BigDecimal impression1kCost;
+    @JsonProperty
+    private BigDecimal photoClickCost;
+    @JsonProperty
+    private BigDecimal actionCost;
+    @JsonProperty
+    private Long eventPayFirstDay;
+    @JsonProperty
+    private BigDecimal eventPayFirstDayRoi;
+    @JsonProperty
+    private BigDecimal eventPay;
+    @JsonProperty
+    private BigDecimal eventPayPurchaseAmount;
+    @JsonProperty
+    private BigDecimal eventPayRoi;
+    @JsonProperty
+    private Long eventRegister;
+    @JsonProperty
+    private BigDecimal eventRegisterCost;
+    @JsonProperty
+    private Long eventJinJianApp;
+    @JsonProperty
+    private BigDecimal eventJinJianAppCost;
+    @JsonProperty
+    private BigDecimal eventPayPurchaseAmountFirstDay;
+    @JsonProperty
+    private Long eventCreditGrantApp;
+    @JsonProperty
+    private BigDecimal eventCreditGrantAppCost;
+    @JsonProperty
+    private BigDecimal eventCreditGrantAppRatio;
+    @JsonProperty
+    private BigDecimal eventOrderPaid;
+    @JsonProperty
+    private BigDecimal eventOrderPaidPurchaseAmount;
+    @JsonProperty
+    private BigDecimal eventOrderPaidCost;
+    @JsonProperty
+    private Long formCount;
+    @JsonProperty
+    private BigDecimal formCost;
+    @JsonProperty
+    private BigDecimal formActionRatio;
+    @JsonProperty
+    private Long eventJinJianLandingPage;
+    @JsonProperty
+    private BigDecimal eventJinJianLandingPageCost;
+    @JsonProperty
+    private Long eventCreditGrantLandingPage;
+    @JsonProperty
+    private BigDecimal eventCreditGrantLandingPageCost;
+    @JsonProperty
+    private Date createTime;
+    @JsonProperty
+    private Date updateTime;
+}
+

+ 2 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/KuaishouReportDailyAccountMapper.java

@@ -1,10 +1,11 @@
 package cn.com.ctop.kuaishou.modules.report.mapper;
 
 import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportDailyAccount;
+import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportDailyAccountOld;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import org.apache.ibatis.annotations.Param;
 
-public interface KuaishouReportDailyAccountMapper extends BaseMapper<KuaishouReportDailyAccount> {
+public interface KuaishouReportDailyAccountMapper extends BaseMapper<KuaishouReportDailyAccountOld> {
     void loadAccountDailyReport(@Param("accountId") Long accountId, @Param("localPath") String localPath);
 
     void insertSelective(KuaishouReportDailyAccount dailyAccount);

+ 2 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/service/IKuaishouReportDailyAccountService.java

@@ -1,8 +1,9 @@
 package cn.com.ctop.kuaishou.modules.report.service;
 
 import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportDailyAccount;
+import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportDailyAccountOld;
 import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportHourlyAccount;
 import com.baomidou.mybatisplus.extension.service.IService;
 
-public interface IKuaishouReportDailyAccountService extends IService<KuaishouReportDailyAccount> {
+public interface IKuaishouReportDailyAccountService extends IService<KuaishouReportDailyAccountOld> {
 }

+ 2 - 5
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/KuaishouReportDailyAccountServiceImpl.java

@@ -1,14 +1,11 @@
 package cn.com.ctop.kuaishou.modules.report.service.impl;
 
-import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportDailyAccount;
-import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportHourlyAccount;
+import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportDailyAccountOld;
 import cn.com.ctop.kuaishou.modules.report.mapper.KuaishouReportDailyAccountMapper;
-import cn.com.ctop.kuaishou.modules.report.mapper.KuaishouReportHourlyAccountMapper;
 import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportDailyAccountService;
-import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportHourlyAccountService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.springframework.stereotype.Service;
 
 @Service
-public class KuaishouReportDailyAccountServiceImpl extends ServiceImpl<KuaishouReportDailyAccountMapper, KuaishouReportDailyAccount> implements IKuaishouReportDailyAccountService {
+public class KuaishouReportDailyAccountServiceImpl extends ServiceImpl<KuaishouReportDailyAccountMapper, KuaishouReportDailyAccountOld> implements IKuaishouReportDailyAccountService {
 }