ソースを参照

修改头条数据自定义列

songyh 3 年 前
コミット
bc9e31bb4f

+ 9 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/service/impl/MaterialInfoServiceImpl.java

@@ -484,6 +484,15 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
     @Autowired
     private IProjectService projectService;
 
+    public static void main(String[] args) {
+        String url= "https://media-1301855440.cos.ap-chongqing.myqcloud.com/video/2021-09-06/%E4%BA%8C%E5%89%AA-%E5%A4%A9%E5%A4%A9%E4%B8%80%E5%85%83%E8%B4%AD-%E7%BA%B8%E6%8A%BD%E8%BD%AE%E6%92%AD-%E9%87%91%E7%A7%8B-H-%E5%AE%98%E4%B9%89%E5%BE%B7%E7%BB%84-0906-1630926514799.mp4";
+        String fileName = AesEncryptUtil.getUrlDecoderString(url.substring(url.lastIndexOf("/") + 1));
+        String fileNameNoEx = StringUtils.getFileNameNoEx(fileName);
+        if (fileNameNoEx.contains("-")) {
+            fileNameNoEx = fileNameNoEx.substring(0, fileNameNoEx.lastIndexOf("-"));
+        }
+        System.out.println(fileNameNoEx);
+    }
     /**
      * 素材库关联上传素材 1
      *

+ 5 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/common/constant/AccountReportConstants.java

@@ -760,6 +760,10 @@ public class AccountReportConstants {
             "    \"comment\": \"投放场景\"\n" +
             "  }\n" +
             "}";
+
+    public static void main(String[] args) {
+        System.out.println(BYTEDANCE_VIDEO_REPORT_MAPPING_JSON);
+    }
     public static final String BYTEDANCE_VIDEO_REPORT_MAPPING_JSON = "{\n" +
             "  \"cost\": {\n" +
             "    \"filed\": \"IFNULL(sum(t1.cost),0) as cost \",\n" +
@@ -908,7 +912,7 @@ public class AccountReportConstants {
             "  \"shareMaterial\": {\n" +
             "    \"filed\": \"IFNULL(sum(t1.share_material),0) as shareMaterial \",\n" +
             "    \"comment\": \"分享数\"\n" +
-            "  }\n" +
+            "  },\n" +
              "  \"showMaterial\": {\n" +
             "    \"filed\": \"IFNULL(t1.material_show, 0 ) AS material_show \",\n" +
             "    \"comment\": \"展示数\"\n" +