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
f8b77d2e
Commit
f8b77d2e
authored
Nov 30, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.科士达疯狂新增逆变器,采集器问题修改.
2.锦浪云的月发电量动态判断时kwh还是mvh.
parent
a22f69ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
HouseholdTestController.java
.../api/householdapi/controller/HouseholdTestController.java
+5
-5
GoLangDataAcquisitionServiceImpl.java
...i/face/service/impl/GoLangDataAcquisitionServiceImpl.java
+6
-5
KsolarDataAcquisitionServiceImpl.java
...i/face/service/impl/KsolarDataAcquisitionServiceImpl.java
+6
-3
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/controller/HouseholdTestController.java
View file @
f8b77d2e
...
@@ -59,8 +59,8 @@ public class HouseholdTestController {
...
@@ -59,8 +59,8 @@ public class HouseholdTestController {
@PostMapping
(
value
=
"/golangnew"
)
@PostMapping
(
value
=
"/golangnew"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"锦浪云"
,
notes
=
"锦浪云"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"锦浪云"
,
notes
=
"锦浪云"
)
public
void
golangnew
()
throws
IOException
{
public
void
golangnew
()
throws
IOException
{
//
goLangDataAcquisitionService.stationList();
goLangDataAcquisitionService
.
stationList
();
goLangDataAcquisitionService
.
stationDetail
();
//
goLangDataAcquisitionService.stationDetail();
// goLangDataAcquisitionService.collectorList();
// goLangDataAcquisitionService.collectorList();
//// goLangDataAcquisitionService.inverterList();
//// goLangDataAcquisitionService.inverterList();
// goLangDataAcquisitionService.collectorDetail();
// goLangDataAcquisitionService.collectorDetail();
...
@@ -114,10 +114,10 @@ public class HouseholdTestController {
...
@@ -114,10 +114,10 @@ public class HouseholdTestController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"科士达"
,
notes
=
"科士达"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"科士达"
,
notes
=
"科士达"
)
public
void
ksolarnew
()
throws
IOException
{
public
void
ksolarnew
()
throws
IOException
{
// kSolarDataAcquisitionService.stationList();
// kSolarDataAcquisitionService.stationList();
kSolarDataAcquisitionService
.
stationList
();
//
kSolarDataAcquisitionService.stationList();
kSolarDataAcquisitionService
.
stationDetail
();
kSolarDataAcquisitionService
.
stationDetail
();
kSolarDataAcquisitionService
.
collectorList
();
//
kSolarDataAcquisitionService.collectorList();
kSolarDataAcquisitionService
.
collectorDetail
();
//
kSolarDataAcquisitionService.collectorDetail();
//// goLangDataAcquisitionService.inverterList();
//// goLangDataAcquisitionService.inverterList();
// goLangDataAcquisitionService.collectorDetail();
// goLangDataAcquisitionService.collectorDetail();
// goLangDataAcquisitionService.inverterDetail();
// goLangDataAcquisitionService.inverterDetail();
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoLangDataAcquisitionServiceImpl.java
View file @
f8b77d2e
...
@@ -29,10 +29,8 @@ import org.springframework.scheduling.annotation.Scheduled;
...
@@ -29,10 +29,8 @@ import org.springframework.scheduling.annotation.Scheduled;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
java.util.Date
;
import
java.lang.reflect.Array
;
import
java.util.HashMap
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
@Async
@Async
...
@@ -173,7 +171,10 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
...
@@ -173,7 +171,10 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
jpStation
.
setRealTimePower
(
golangStationDetail
.
getPower
());
jpStation
.
setRealTimePower
(
golangStationDetail
.
getPower
());
jpStation
.
setOnGridType
(
GoLangConstant
.
intoNetWorkStatus
.
get
(
String
.
valueOf
(
golangStationDetail
.
getStationtypenew
())));
jpStation
.
setOnGridType
(
GoLangConstant
.
intoNetWorkStatus
.
get
(
String
.
valueOf
(
golangStationDetail
.
getStationtypenew
())));
jpStation
.
setDayGenerate
(
golangStationDetail
.
getDayenergy
());
jpStation
.
setDayGenerate
(
golangStationDetail
.
getDayenergy
());
jpStation
.
setMonthGenerate
(
golangStationDetail
.
getMonthenergy
()
*
GoLangConstant
.
mwhTokwh
);
if
(!
golangStationDetail
.
getMonthenergystr
().
toLowerCase
().
equals
(
"kwh"
)){
jpStation
.
setMonthGenerate
(
golangStationDetail
.
getMonthenergy
()
*
GoLangConstant
.
mwhTokwh
);
}
jpStation
.
setMonthGenerate
(
golangStationDetail
.
getMonthenergy
());
jpStation
.
setYearGenerate
(
golangStationDetail
.
getYearenergy
()
*
GoLangConstant
.
mwhTokwh
);
jpStation
.
setYearGenerate
(
golangStationDetail
.
getYearenergy
()
*
GoLangConstant
.
mwhTokwh
);
jpStation
.
setAccumulatedPower
(
golangStationDetail
.
getAllenergy
()
*
GoLangConstant
.
mwhTokwh
);
jpStation
.
setAccumulatedPower
(
golangStationDetail
.
getAllenergy
()
*
GoLangConstant
.
mwhTokwh
);
jpStation
.
setDayIncome
(
golangStationDetail
.
getDayincome
());
jpStation
.
setDayIncome
(
golangStationDetail
.
getDayincome
());
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/KsolarDataAcquisitionServiceImpl.java
View file @
f8b77d2e
...
@@ -539,7 +539,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -539,7 +539,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
if
(
jpCollectorflag
!=
null
)
{
if
(
jpCollectorflag
!=
null
)
{
//离线状态
//离线状态
JpInverter
jpInverter
=
jpInverterMapper
.
selectOne
(
new
QueryWrapper
<
JpInverter
>().
JpInverter
jpInverter
=
jpInverterMapper
.
selectOne
(
new
QueryWrapper
<
JpInverter
>().
eq
(
"
sequence_nbr"
,
jpCollectorflag
.
getSequenceNbr
())
);
eq
(
"
collector_sn_code"
,
jpCollectorflag
.
getSnCode
().
trim
())
);
if
(
ObjectUtils
.
isEmpty
(
jpInverter
))
{
if
(
ObjectUtils
.
isEmpty
(
jpInverter
))
{
jpInverter
=
new
JpInverter
();
jpInverter
=
new
JpInverter
();
}
}
...
@@ -707,10 +707,13 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -707,10 +707,13 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
if
(!
CollectionUtils
.
isEmpty
(
result
))
{
if
(!
CollectionUtils
.
isEmpty
(
result
))
{
result
.
forEach
(
ksolarStationCollectData
->
{
result
.
forEach
(
ksolarStationCollectData
->
{
JpInverter
jpInverter
=
jpInverterMapper
.
selectOne
(
new
QueryWrapper
<
JpInverter
>().
List
<
JpInverter
>
jpInverterList
=
jpInverterMapper
.
selectList
(
new
QueryWrapper
<
JpInverter
>().
eq
(
"third_station_id"
,
ksolarStationCollectList
.
getThirdStationId
()).
eq
(
"third_station_id"
,
ksolarStationCollectList
.
getThirdStationId
()).
eq
(
"third_code"
,
PVProducerInfoEnum
.
KSOLAR
.
getCode
()).
eq
(
"third_code"
,
PVProducerInfoEnum
.
KSOLAR
.
getCode
()).
eq
(
"sn_code"
,
ksolarStationCollectData
.
getInverterId
().
trim
()));
eq
(
"sn_code"
,
ksolarStationCollectData
.
getInverterId
().
trim
())
.
isNotNull
(
"sn_code"
)
.
orderByDesc
(
"update_time"
));
JpInverter
jpInverter
=
jpInverterList
.
get
(
0
);
if
(
ObjectUtils
.
isEmpty
(
jpInverter
))
{
if
(
ObjectUtils
.
isEmpty
(
jpInverter
))
{
jpInverter
=
new
JpInverter
();
jpInverter
=
new
JpInverter
();
}
}
...
...
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