Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
041553cf
Commit
041553cf
authored
Apr 03, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
曾加td 电站信息
parent
0d6e553a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
16 deletions
+11
-16
GoLangDataAcquisitionServiceImpl.java
...i/face/service/impl/GoLangDataAcquisitionServiceImpl.java
+1
-1
GoodWeDataAcquisitionServiceImpl.java
...i/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
+1
-1
ImasterDataServiceImpl.java
...ouseholdapi/face/service/impl/ImasterDataServiceImpl.java
+1
-1
KsolarDataAcquisitionServiceImpl.java
...i/face/service/impl/KsolarDataAcquisitionServiceImpl.java
+1
-1
SofarDataAcquisitionServiceImpl.java
...pi/face/service/impl/SofarDataAcquisitionServiceImpl.java
+2
-2
SunlightServiceImpl.java
...i/householdapi/face/service/impl/SunlightServiceImpl.java
+5
-10
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoLangDataAcquisitionServiceImpl.java
View file @
041553cf
...
@@ -221,7 +221,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
...
@@ -221,7 +221,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setThirdStationId
(
stationIds
.
get
(
i
));
tdJpStation
.
setThirdStationId
(
stationIds
.
get
(
i
));
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
JLY
.
getCode
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
JLY
.
getCode
());
tdJpStation
.
setIsDelete
(
jpStation
.
isDelete
?
0
:
1
);
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
1
:
0
);
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
tdJpStationMapper
.
insert
(
tdJpStation
);
tdJpStationMapper
.
insert
(
tdJpStation
);
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
View file @
041553cf
...
@@ -145,7 +145,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
...
@@ -145,7 +145,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
tdJpStation
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
GDW
.
getCode
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
GDW
.
getCode
());
tdJpStation
.
setIsDelete
(
jpStation
.
isDelete
?
0
:
1
);
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
1
:
0
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
tdJpStationMapper
.
insert
(
tdJpStation
);
tdJpStationMapper
.
insert
(
tdJpStation
);
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/ImasterDataServiceImpl.java
View file @
041553cf
...
@@ -314,7 +314,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
...
@@ -314,7 +314,7 @@ public class ImasterDataServiceImpl implements ImasterDataService {
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setThirdStationId
(
imasterStationList
.
getPlantCode
());
tdJpStation
.
setThirdStationId
(
imasterStationList
.
getPlantCode
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
HUAWEI
.
getCode
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
HUAWEI
.
getCode
());
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
0
:
1
);
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
1
:
0
);
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
tdJpStationMapper
.
insert
(
tdJpStation
);
tdJpStationMapper
.
insert
(
tdJpStation
);
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/KsolarDataAcquisitionServiceImpl.java
View file @
041553cf
...
@@ -254,7 +254,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -254,7 +254,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setThirdStationId
(
ksolarStation
.
getStationId
());
tdJpStation
.
setThirdStationId
(
ksolarStation
.
getStationId
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
KSOLAR
.
getCode
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
KSOLAR
.
getCode
());
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
0
:
1
);
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
1
:
0
);
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/SofarDataAcquisitionServiceImpl.java
View file @
041553cf
...
@@ -142,7 +142,7 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
...
@@ -142,7 +142,7 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
// 并网类型
// 并网类型
jpStation
.
setOnGridType
(
SofarRequestUtil
.
intoNetWorkStatus
.
get
(
sunlightDto
.
getGridInterconnectionType
()));
jpStation
.
setOnGridType
(
SofarRequestUtil
.
intoNetWorkStatus
.
get
(
sunlightDto
.
getGridInterconnectionType
()));
//第三方厂商标识
//第三方厂商标识
jpStation
.
setThirdCode
(
PVProducerInfoEnum
.
YG
.
getCode
());
//
jpStation.setThirdCode(PVProducerInfoEnum.YG.getCode());
jpStation
.
setRecDate
(
new
Date
());
jpStation
.
setRecDate
(
new
Date
());
//获取单个电站详情
//获取单个电站详情
...
@@ -325,7 +325,7 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
...
@@ -325,7 +325,7 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
tdJpStation
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
SH
.
getCode
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
SH
.
getCode
());
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
0
:
1
);
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
1
:
0
);
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
tdJpStationMapper
.
insert
(
tdJpStation
);
tdJpStationMapper
.
insert
(
tdJpStation
);
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/SunlightServiceImpl.java
View file @
041553cf
...
@@ -259,9 +259,9 @@ public class SunlightServiceImpl implements SunlightService {
...
@@ -259,9 +259,9 @@ public class SunlightServiceImpl implements SunlightService {
JSONObject
jsonObject22
=
JSONUtil
.
parseObj
(
jsonObject1nb
.
get
(
listd
.
get
(
0
).
getPs_key
()),
true
);
JSONObject
jsonObject22
=
JSONUtil
.
parseObj
(
jsonObject1nb
.
get
(
listd
.
get
(
0
).
getPs_key
()),
true
);
List
<
Map
>
js
=
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
jsonObject22
.
get
(
"p1"
)),
Map
.
class
);
List
<
Map
>
js
=
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
jsonObject22
.
get
(
"p1"
)),
Map
.
class
);
// 月发电量
// 月发电量
jpStation
.
setMonthGenerate
(
js
.
get
(
0
).
get
(
"4"
)!=
null
?
Double
.
valueOf
(
js
.
get
(
0
).
get
(
"4"
)+
""
)/
1000
:
null
);
jpStation
.
setMonthGenerate
(
js
!=
null
&&
js
.
get
(
0
).
get
(
"4"
)!=
null
?
Double
.
valueOf
(
js
.
get
(
0
).
get
(
"4"
)+
""
)/
1000
:
null
);
// 月收益
// 月收益
jpStation
.
setMonthIncome
(
js
.
get
(
0
).
get
(
"4"
)!=
null
?
Double
.
valueOf
(
js
.
get
(
0
).
get
(
"4"
)+
""
)/
1000
:
null
);
jpStation
.
setMonthIncome
(
js
!=
null
&&
js
.
get
(
0
).
get
(
"4"
)!=
null
?
Double
.
valueOf
(
js
.
get
(
0
).
get
(
"4"
)+
""
)/
1000
:
null
);
}
}
...
@@ -294,9 +294,9 @@ public class SunlightServiceImpl implements SunlightService {
...
@@ -294,9 +294,9 @@ public class SunlightServiceImpl implements SunlightService {
List
<
Map
>
js
=
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
jsonObject23
.
get
(
"p1"
)),
Map
.
class
);
List
<
Map
>
js
=
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
jsonObject23
.
get
(
"p1"
)),
Map
.
class
);
// 年发电量
// 年发电量
jpStation
.
setYearGenerate
(
Double
.
valueOf
(
js
.
get
(
0
).
get
(
"4"
)+
""
)/
1000
);
jpStation
.
setYearGenerate
(
js
!=
null
?
Double
.
valueOf
(
js
.
get
(
0
).
get
(
"4"
)+
""
)/
1000
:
null
);
// 年收益
// 年收益
jpStation
.
setYearIncome
(
Double
.
valueOf
(
js
.
get
(
0
).
get
(
"4"
)+
""
)/
1000
);
jpStation
.
setYearIncome
(
js
!=
null
?
Double
.
valueOf
(
js
.
get
(
0
).
get
(
"4"
)+
""
)/
1000
:
null
);
if
(!
ObjectUtils
.
isEmpty
(
jpStation
.
getSequenceNbr
()))
{
if
(!
ObjectUtils
.
isEmpty
(
jpStation
.
getSequenceNbr
()))
{
jpStationMapper
.
updateById
(
jpStation
);
jpStationMapper
.
updateById
(
jpStation
);
}
else
{
}
else
{
...
@@ -317,19 +317,14 @@ public class SunlightServiceImpl implements SunlightService {
...
@@ -317,19 +317,14 @@ public class SunlightServiceImpl implements SunlightService {
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
tdJpStation
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
tdJpStation
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
YG
.
getCode
());
tdJpStation
.
setThirdCode
(
PVProducerInfoEnum
.
YG
.
getCode
());
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
0
:
1
);
tdJpStation
.
setIsDelete
(
jpStation
.
getIsDelete
()?
1
:
0
);
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
if
(!
ObjectUtils
.
isEmpty
(
tdJpStation
.
getCreatedTime
()))
{
tdJpStationMapper
.
insert
(
tdJpStation
);
tdJpStationMapper
.
insert
(
tdJpStation
);
}
else
{
}
else
{
tdJpStation
.
setCreatedTime
(
System
.
currentTimeMillis
());
tdJpStation
.
setCreatedTime
(
System
.
currentTimeMillis
());
tdJpStationMapper
.
insert
(
tdJpStation
);
tdJpStationMapper
.
insert
(
tdJpStation
);
}
}
this
.
setJpInverte
(
listd
.
get
(
0
),
jpStation
);
this
.
setJpInverte
(
listd
.
get
(
0
),
jpStation
);
}
}
...
...
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