From 885180a46d75d4b58eb074c53c60b29932ae3ee3 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 24 三月 2025 16:51:23 +0800
Subject: [PATCH] 压缩空气优化调度

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java
index d0ba8a1..14b5ac5 100644
--- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java
+++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java
@@ -77,7 +77,7 @@
             mcsApi.createElectricityPrice(list);
             logger.info("保存数据完成");
         } catch (Exception ex) {
-            logger.error("syncSegmentedDataTask运行异常");
+            logger.error("syncSegmentedDataTask运行异常:" + ex.getMessage());
             ex.printStackTrace();
         }
         logger.info("syncSegmentedDataTask运行完成");
@@ -118,7 +118,7 @@
         String year = String.valueOf(date.getYear());
         paramsMap.put("clock", year);
         logger.info("请求参数:" + JSON.toJSONString(paramsMap));
-        String resp = HttpUtils.sendPost(QUERY_SEGMENTED_DATA_URL, JSON.toJSONString(paramsMap), accessToken);
+        String resp = HttpUtils.sendPostToken(QUERY_SEGMENTED_DATA_URL, JSON.toJSONString(paramsMap), accessToken);
         logger.info("获取分段数据的返回值:" + resp);
         JSONObject jsonObject = JSON.parseObject(resp);
         List<ElectricityPriceSegmentedDTO> list = jsonObject.getJSONArray("data").toJavaList(ElectricityPriceSegmentedDTO.class);
@@ -132,4 +132,5 @@
         cipher.init(Cipher.ENCRYPT_MODE, publicKey);
         return Base64.getEncoder().encodeToString(cipher.doFinal(data.getBytes()));
     }
+
 }

--
Gitblit v1.9.3