From 9e450ba0cf0ca22c667084b8014b400da254162e Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期四, 23 一月 2025 10:03:13 +0800
Subject: [PATCH] 增加log,增加查询参数

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 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 d57d35c..ecdea16 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
@@ -49,7 +49,7 @@
 
     @Override
     public void run(String params) {
-        logger.info("runPredictModuleTask定时任务正在执行,参数为:{}", params);
+        logger.info("syncSegmentedDataTask定时任务正在执行,参数为:{}", params);
         try {
             Calendar calendar = Calendar.getInstance();
             calendar.set(Calendar.SECOND, 0);
@@ -65,7 +65,10 @@
             RequestAccessTokenVO requestAccessToken = new RequestAccessTokenVO();
             requestAccessToken.setUserName(USERNAME);
             // 使用公钥和组合后的密码进行密码加密
-            requestAccessToken.setReaPassword(encryptWithPublicKey(publicKeyKey, password));
+            String realPassword = encryptWithPublicKey(publicKeyKey, password);
+            logger.info("公钥和组合后的密码进行密码加密:" + realPassword);
+            requestAccessToken.setReaPassword(realPassword);
+            requestAccessToken.setSource(1);
             //获取 token
             String accessToken = "Bearer " + getAccessToken(requestAccessToken);
             //获取保存后的数据
@@ -74,10 +77,10 @@
                 mcsApi.createElectricityPrice(item);
             });
         } catch (Exception ex) {
-            logger.error("runPredictModuleTask运行异常");
+            logger.error("syncSegmentedDataTask运行异常");
             ex.printStackTrace();
         }
-        logger.info("runPredictModuleTask运行完成");
+        logger.info("syncSegmentedDataTask运行完成");
     }
 
     public String getPublicKey() {

--
Gitblit v1.9.3