From e5e21b879c80e0b0f90deee324d79d444416b90a Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Fri, 21 Mar 2025 09:26:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../factorydata/suofeiya/job/SpiderDataJob.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/job/SpiderDataJob.java b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/job/SpiderDataJob.java index 6a24089ef..98c08bbb8 100644 --- a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/job/SpiderDataJob.java +++ b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/job/SpiderDataJob.java @@ -76,9 +76,22 @@ public class SpiderDataJob { */ @XxlJob("factoryCarsData") public ReturnT factoryCarsData(String param) throws Exception { - startData =LocalDate.now().toString(); endData = LocalDate.now().minusDays(1).toString(); + + if(StringUtil.isNotBlank(param)){ + if(param.contains(",")){ + String[] split = param.split(","); + startData = split[0]; + endData = split[1]; + }else{ + startData = param; + endData = param; + } + } + + + // // startData ="2025-02-25"; // endData = "2025-02-27";