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
6e737d4c
Commit
6e737d4c
authored
Sep 06, 2023
by
ZWT
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
f910f0c6
7047daee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
5 deletions
+3
-5
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWatherCloudServiceImpl.java
...ava/pps/core/base/service/BaseWatherCloudServiceImpl.java
+1
-1
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWatherService.java
...rc/main/java/pps/core/base/service/BaseWatherService.java
+1
-1
C10-task/pps-core-task/src/main/java/pps/core/task/job/WeatherJob.java
...core-task/src/main/java/pps/core/task/job/WeatherJob.java
+1
-1
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/PredictionService.java
...n/java/pps/core/prediction/service/PredictionService.java
+0
-2
No files found.
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWatherCloudServiceImpl.java
View file @
6e737d4c
...
@@ -44,7 +44,7 @@ public class BaseWatherCloudServiceImpl implements BaseWatherCloudService {
...
@@ -44,7 +44,7 @@ public class BaseWatherCloudServiceImpl implements BaseWatherCloudService {
String
provinceCode
=
pro
[
0
];
//省编码
String
provinceCode
=
pro
[
0
];
//省编码
String
provinceName
=
pro
[
1
];
//省名称
String
provinceName
=
pro
[
1
];
//省名称
//甘肃 .陕西 (全国周期抓取耗费时间超长,共有2400个城市)
//甘肃 .陕西 (全国周期抓取耗费时间超长,共有2400个城市)
if
(
provinceCode
.
equals
(
"A
GS"
)
||
provinceCode
.
equals
(
"ASN
"
))
{
if
(
provinceCode
.
equals
(
"A
JL
"
))
{
//请求省份下的区信息
//请求省份下的区信息
String
cityString
=
HttpUtils
.
send2
(
cityUrl
+
provinceCode
,
""
);
String
cityString
=
HttpUtils
.
send2
(
cityUrl
+
provinceCode
,
""
);
//解析区json,把字符串解析成json对象
//解析区json,把字符串解析成json对象
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWatherService.java
View file @
6e737d4c
...
@@ -46,7 +46,7 @@ public class BaseWatherService {
...
@@ -46,7 +46,7 @@ public class BaseWatherService {
String
provinceCode
=
pro
[
0
];
//省编码
String
provinceCode
=
pro
[
0
];
//省编码
String
provinceName
=
pro
[
1
];
//省名称
String
provinceName
=
pro
[
1
];
//省名称
//甘肃 .陕西 (全国周期抓取耗费时间超长,共有2400个城市)
//甘肃 .陕西 (全国周期抓取耗费时间超长,共有2400个城市)
if
(
provinceCode
.
equals
(
"A
GS"
)
||
provinceCode
.
equals
(
"ASN
"
))
{
if
(
provinceCode
.
equals
(
"A
JL
"
))
{
//请求省份下的区信息
//请求省份下的区信息
String
cityString
=
HttpUtils
.
send2
(
cityUrl
+
provinceCode
,
""
);
String
cityString
=
HttpUtils
.
send2
(
cityUrl
+
provinceCode
,
""
);
//解析区json,把字符串解析成json对象
//解析区json,把字符串解析成json对象
...
...
C10-task/pps-core-task/src/main/java/pps/core/task/job/WeatherJob.java
View file @
6e737d4c
...
@@ -13,7 +13,7 @@ import xstartup.service.job.annotation.XCronTrigger;
...
@@ -13,7 +13,7 @@ import xstartup.service.job.annotation.XCronTrigger;
@XText
(
"天气数据,每8小时执行一次"
)
@XText
(
"天气数据,每8小时执行一次"
)
@XService
@XService
public
class
WeatherJob
implements
XJob
{
public
class
WeatherJob
implements
XJob
{
@XCronTrigger
(
value
=
"0 0 0/
8
* * ?"
)
@XCronTrigger
(
value
=
"0 0 0/
4
* * ?"
)
@Override
@Override
public
XServiceResult
execute
(
XContext
context
)
{
public
XServiceResult
execute
(
XContext
context
)
{
BaseWatherCloudService
cloudService
=
context
.
getBean
(
BaseWatherCloudService
.
class
);
BaseWatherCloudService
cloudService
=
context
.
getBean
(
BaseWatherCloudService
.
class
);
...
...
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/PredictionService.java
View file @
6e737d4c
package
pps.core.prediction.service
;
package
pps.core.prediction.service
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
pps.cloud.base.service.data.GetBasePowerLineInput
;
import
pps.cloud.base.service.data.GetBasePowerLineViewOutput
;
import
pps.core.prediction.entity.BaseDataEnt
;
import
pps.core.prediction.entity.BaseDataEnt
;
import
pps.core.prediction.entity.BaseDataView
;
import
pps.core.prediction.entity.BaseDataView
;
import
pps.core.prediction.mapper.BaseDataMapper
;
import
pps.core.prediction.mapper.BaseDataMapper
;
...
...
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