瀏覽代碼

Update DataDashboardService.scheduleExportFirstContentScore: support param

StrayWarrior 9 月之前
父節點
當前提交
0bd696c3ac

+ 5 - 0
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/DataDashboardService.java

@@ -41,6 +41,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.util.Pair;
 import org.springframework.http.*;
 import org.springframework.stereotype.Service;
+import org.springframework.util.StringUtils;
 import org.springframework.web.client.RestTemplate;
 
 import java.lang.reflect.Field;
@@ -1322,6 +1323,10 @@ public class DataDashboardService {
     @XxlJob("scheduleExportFirstContentScore")
     public ReturnT<String> scheduleExportFirstContentScore(String param) {
         List<String> dateStrList = DateUtils.getBeforeDays(null, 1);
+        if (StringUtils.hasText(param)) {
+            dateStrList.clear();
+            dateStrList.add(param);
+        }
         exportFeishuFirstContentScore(dateStrList, sheetToken, "XBFd16");
         return ReturnT.SUCCESS;
     }