Sfoglia il codice sorgente

快手、头条账户视频报表更换application库数据

zhaoxian 3 anni fa
parent
commit
e83a8d7406

+ 8 - 5
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/controller/KsVideoReportCtrl.java

@@ -120,10 +120,10 @@ public class KsVideoReportCtrl {
                 requestMap.put("leaderId", requestBody.getString("leaderId"));
             }
             if (!Check.isNull(requestBody.getString("target"))) {
-                if("photo_show".equals(requestBody.getString("target"))){
-                    requestMap.put("target",  "`show`");
-                }else{
-                 requestMap.put("target", requestBody.getString("target"));
+                if ("photo_show".equals(requestBody.getString("target"))) {
+                    requestMap.put("target", "`show`");
+                } else {
+                    requestMap.put("target", requestBody.getString("target"));
                 }
             }
             if (!Check.isNull(requestBody.getString("order"))) {
@@ -216,7 +216,10 @@ public class KsVideoReportCtrl {
             if (Check.isNull(filedAll)) {
                 throw new Exception("初始化查询 字段返回为空");
             }
-            filedAll = filedAll.replace("photo_show","`show`");
+            filedAll = filedAll.replace("photo_show", "`show`")
+                    .replace("keyAction", "key_action")
+                    .replace("keyActionCost", "key_action_cost");
+
             requestMap.put("filed", filedAll);
             requestMap.put("startDate", startDate);
             requestMap.put("endDate", endDate);

+ 3 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/KuaiShouAccountReportServiceImpl.java

@@ -127,7 +127,9 @@ public class KuaiShouAccountReportServiceImpl implements IKuaiShouAccountReportS
 
     @Override
     public List<JSONObject> getExcelDataBy(String filed, String mediaId, JSONArray accounts, String startDate, String endDate, int hour, String target, String order) {
-        filed = filed.replace("photo_show", "`show`");
+        filed = filed.replace("photo_show", "`show`")
+                .replace("keyAction", "key_action")
+                .replace("keyActionCost", "key_action_cost");
         List<JSONObject> result;
         if (startDate.equals(endDate)) {
             if (startDate.equals(DateUtils.date2Str())) {