|
@@ -1,5 +1,6 @@
|
|
|
package com.jiayue.insu.inclientqn.service.client;
|
|
|
|
|
|
+
|
|
|
import cn.hutool.core.date.DateTime;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.date.LocalDateTimeUtil;
|
|
@@ -104,9 +105,10 @@ public class BJZYYJYCorrforeService extends ServiceImpl<BJZYYJYSDCorrforeMapper,
|
|
|
try {
|
|
|
// 实装请求参数
|
|
|
DateTime dateTime = DateUtil.parse(DateUtil.today());
|
|
|
+ DateTime tomorrow = DateUtil.offsetDay(dateTime, 1);
|
|
|
// 拼接请求地址
|
|
|
// dataPullUrl = dataPullUrl + "?pdate=" + dateTime.toString("yyyy-MM-dd") + "&farm_id=SD0015";
|
|
|
- dataPullUrl = dataPullUrl + "?pdate="+dateTime.toString("yyyy-MM-dd")+"&farm_id="+ signCode;
|
|
|
+ dataPullUrl = dataPullUrl + "?pdate="+tomorrow.toString("yyyy-MM-dd")+"&farm_id="+ signCode;
|
|
|
|
|
|
//https://www.dljyfzjc.spic.com.cn:20280/sdapi/powerforecast/txnypowerforecast/getPowerForecastByFarmAndPdate?pdate=2023-12-15&farm_id=SD0015
|
|
|
// 发送请求
|