yumeng 3 tahun lalu
induk
melakukan
7559336088

+ 9 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/KuaiShouVideoGetController.java

@@ -38,6 +38,7 @@ import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
 import java.io.UnsupportedEncodingException;
 import java.net.URLDecoder;
+import java.text.ParseException;
 import java.util.*;
 
 /**
@@ -301,6 +302,14 @@ public class KuaiShouVideoGetController {
     }
 
 
+    public static void main(String[] args) throws ParseException {
+        String endMonth = DateUtils.getNowDate("yyyy-MM");
+        String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
+        String startMonthStr = DateUtils.addMonth(nowDate, -5);
+        String startMonth = DateUtils.formatDate(startMonthStr, "yyyy-MM");
+        System.err.println(startMonth);
+    }
+
     public static Map<String, Object> parseJSON2Map(String jsonStr) {
         Map<String, Object> map = new HashMap<String, Object>();
         JSONObject json = JSONObject.parseObject(jsonStr);

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouReportDailyMaterialMapper.xml

@@ -1082,7 +1082,7 @@
             AND t1.video_name LIKE CONCAT(CONCAT('%', #{photoName}), '%')
         </if>
         GROUP BY
-        t1.photo_id
+        t1.photo_id,t1.signature
         ) t
         ORDER BY
         t.charge DESC