Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
30c7fd52
Commit
30c7fd52
authored
Dec 17, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
abe94082
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
42 deletions
+1
-42
C10-task/pps-core-task/src/main/java/pps/core/task/job/PlantPredictedPowerLongTermDataJob.java
...pps/core/task/job/PlantPredictedPowerLongTermDataJob.java
+0
-40
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/ThirdDataAccessCloudServiceImpl.java
...e/prediction/service/ThirdDataAccessCloudServiceImpl.java
+1
-2
No files found.
C10-task/pps-core-task/src/main/java/pps/core/task/job/PlantPredictedPowerLongTermDataJob.java
deleted
100644 → 0
View file @
abe94082
//package pps.core.task.job;
//
//import cn.hutool.core.date.DateUtil;
//import cn.hutool.core.util.ObjectUtil;
//import pps.cloud.prediction.service.PlantPredictedPowerLongTermDataCloudService;
//import pps.core.common.cache.TaskLockCache;
//import pps.core.task.constant.TaskConstant;
//import pps.core.task.utils.ServiceUtil;
//import xstartup.annotation.XService;
//import xstartup.annotation.XText;
//import xstartup.base.XContext;
//import xstartup.data.XServiceResult;
//import xstartup.service.job.XJob;
//import xstartup.service.job.annotation.XCronTrigger;
//
//@XText("长期预测数据,每天更新一次")
//@XService
//public class PlantPredictedPowerLongTermDataJob implements XJob {
// @XCronTrigger(value = "0 45 1 * * ?")
// @Override
// public XServiceResult execute(XContext xContext) {
// xContext.getLogger().info("------ PlantPredictedPowerLongTermDataJob start:{}", DateUtil.date());
// String key = TaskConstant.TASK_LOCK_KEY + "PlantPredictedPowerLongTermDataJob";
// TaskLockCache exist = TaskLockCache.exist(xContext, key);
// if (ObjectUtil.isNull(exist)) {
// ServiceUtil.setCache(xContext, key);
// try {
// PlantPredictedPowerLongTermDataCloudService cloudService = xContext.getBean(PlantPredictedPowerLongTermDataCloudService.class);
// XServiceResult result = cloudService.runPlantPredictedPowerLongTermData(xContext);
// result.throwIfFail();
// } catch (Exception e) {
// xContext.getLogger().error("------ PlantPredictedPowerLongTermDataJob Exception: ", e);
// } finally {
// xContext.getLogger().info("------ PlantPredictedPowerLongTermDataJob end:{}", DateUtil.date());
// TaskLockCache.delete(xContext, key);
// }
// }
// return XServiceResult.OK;
// }
//}
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/ThirdDataAccessCloudServiceImpl.java
View file @
30c7fd52
...
...
@@ -233,7 +233,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer
break
;
case
BusinessConstant
.
ENV_CQ
:
Map
<
String
,
Object
>
param
=
new
HashMap
<>(
4
);
param
.
put
(
"Calc_Date"
,
DateUtil
.
yesterday
().
to
String
(
"yyyy-MM-dd"
));
param
.
put
(
"Calc_Date"
,
DateUtil
.
yesterday
().
to
DateStr
(
));
String
resultStr
=
ServiceUtil
.
doPostFormCq
(
context
,
ThirdPartyApiConstant
.
CQ_STATION_DAILY_PV_DATA
,
param
);
...
...
@@ -672,5 +672,4 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer
return
XServiceResult
.
OK
;
});
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment