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
f28d21ee
Commit
f28d21ee
authored
Oct 30, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改逆变器容量
parent
e32752ed
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
4 deletions
+18
-4
JpInverter.java
...ouseholdapi/face/orm/houseapi/entity/hygf/JpInverter.java
+1
-1
GoLangDataAcquisitionServiceImpl.java
...i/face/service/impl/GoLangDataAcquisitionServiceImpl.java
+1
-1
KsolarDataAcquisitionServiceImpl.java
...i/face/service/impl/KsolarDataAcquisitionServiceImpl.java
+14
-0
JpInverterDto.java
.../yeejoin/amos/boot/module/hygf/api/dto/JpInverterDto.java
+1
-1
JpInverter.java
.../yeejoin/amos/boot/module/hygf/api/entity/JpInverter.java
+1
-1
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/orm/houseapi/entity/hygf/JpInverter.java
View file @
f28d21ee
...
@@ -167,7 +167,7 @@ public class JpInverter implements Serializable {
...
@@ -167,7 +167,7 @@ public class JpInverter implements Serializable {
* 装机容量
* 装机容量
*/
*/
@TableField
(
"capacity"
)
@TableField
(
"capacity"
)
private
Integer
capacity
;
private
Double
capacity
;
/**
/**
* 累计发电量
* 累计发电量
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoLangDataAcquisitionServiceImpl.java
View file @
f28d21ee
...
@@ -380,7 +380,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
...
@@ -380,7 +380,7 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
jpInverter
.
setVersion
(
inverterDetailDto
.
getVersion
());
jpInverter
.
setVersion
(
inverterDetailDto
.
getVersion
());
jpInverter
.
setGenerationHours
(
String
.
valueOf
(
inverterDetailDto
.
getFullHour
()));
jpInverter
.
setGenerationHours
(
String
.
valueOf
(
inverterDetailDto
.
getFullHour
()));
jpInverter
.
setId
(
String
.
valueOf
(
inverterDetailDto
.
getId
()));
jpInverter
.
setId
(
String
.
valueOf
(
inverterDetailDto
.
getId
()));
jpInverter
.
setCapacity
(
inverterDetailDto
.
getPower
()
.
intValue
()
);
jpInverter
.
setCapacity
(
inverterDetailDto
.
getPower
());
jpInverter
.
setThirdStationId
(
String
.
valueOf
(
inverterDetailDto
.
getStationId
()));
jpInverter
.
setThirdStationId
(
String
.
valueOf
(
inverterDetailDto
.
getStationId
()));
jpInverter
.
setThirdCode
(
PVProducerInfoEnum
.
JLY
.
getCode
());
jpInverter
.
setThirdCode
(
PVProducerInfoEnum
.
JLY
.
getCode
());
jpInverter
.
setStationName
(
inverterDetailDto
.
getStationName
());
jpInverter
.
setStationName
(
inverterDetailDto
.
getStationName
());
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/KsolarDataAcquisitionServiceImpl.java
View file @
f28d21ee
...
@@ -24,6 +24,7 @@ import com.yeejoin.amos.api.householdapi.face.orm.mapper.tdengine.*;
...
@@ -24,6 +24,7 @@ import com.yeejoin.amos.api.householdapi.face.orm.mapper.tdengine.*;
import
com.yeejoin.amos.api.householdapi.face.service.KSolarDataAcquisitionService
;
import
com.yeejoin.amos.api.householdapi.face.service.KSolarDataAcquisitionService
;
import
com.yeejoin.amos.openapi.enums.PVProducerInfoEnum
;
import
com.yeejoin.amos.openapi.enums.PVProducerInfoEnum
;
import
fastjson.JSON
;
import
fastjson.JSON
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
...
@@ -416,6 +417,11 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -416,6 +417,11 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
@Scheduled
(
cron
=
"${dataRequstScheduled.keshida}"
)
@Scheduled
(
cron
=
"${dataRequstScheduled.keshida}"
)
@Override
@Override
public
void
collectorDetail
()
{
public
void
collectorDetail
()
{
List
<
JpCollector
>
jpCollectorlist
=
jpCollectorMapper
.
selectList
(
new
QueryWrapper
<
JpCollector
>().
eq
(
"third_code"
,
PVProducerInfoEnum
.
KSOLAR
.
getCode
()));
List
<
String
>
collectIds
=
ksolarStationCollectListMapper
.
getCollectIds
();
List
<
String
>
collectIds
=
ksolarStationCollectListMapper
.
getCollectIds
();
if
(!
CollectionUtils
.
isEmpty
(
collectIds
))
{
if
(!
CollectionUtils
.
isEmpty
(
collectIds
))
{
collectIds
.
forEach
(
collectId
->
{
collectIds
.
forEach
(
collectId
->
{
...
@@ -459,7 +465,15 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -459,7 +465,15 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
// jpInverter.setGenerationHours(String.valueOf(inverterDetailDto.getFullHour()));
// jpInverter.setGenerationHours(String.valueOf(inverterDetailDto.getFullHour()));
// 装机容量
// 装机容量
// jpInverter.setCapacity();
// jpInverter.setCapacity();
if
(
jpCollectorlist
!=
null
&&
jpCollectorlist
.
size
()>
0
){
for
(
JpCollector
jpCollector
:
jpCollectorlist
)
{
if
(
jpCollector
.
getSnCode
().
equals
(
ksolarStationCollectList
.
getCollectId
())){
jpInverter
.
setCapacity
(
KSolarConstant
.
Capacity
.
get
(
StringUtils
.
lowerCase
(
jpCollector
.
getName
())));
}
}
}
jpInverter
.
setSnCode
(
ksolarStationCollectData
.
getInverterId
());
jpInverter
.
setSnCode
(
ksolarStationCollectData
.
getInverterId
());
jpInverter
.
setId
(
ksolarStationCollectData
.
getInverterId
());
jpInverter
.
setId
(
ksolarStationCollectData
.
getInverterId
());
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/JpInverterDto.java
View file @
f28d21ee
...
@@ -87,7 +87,7 @@ public class JpInverterDto extends BaseDto {
...
@@ -87,7 +87,7 @@ public class JpInverterDto extends BaseDto {
private
String
thirdStationId
;
private
String
thirdStationId
;
@ApiModelProperty
(
value
=
"装机容量"
)
@ApiModelProperty
(
value
=
"装机容量"
)
private
Integer
capacity
;
private
Double
capacity
;
@ApiModelProperty
(
value
=
"累计发电量"
)
@ApiModelProperty
(
value
=
"累计发电量"
)
private
Double
totalPowerGeneration
;
private
Double
totalPowerGeneration
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/JpInverter.java
View file @
f28d21ee
...
@@ -152,7 +152,7 @@ public class JpInverter extends BaseEntity {
...
@@ -152,7 +152,7 @@ public class JpInverter extends BaseEntity {
* 装机容量
* 装机容量
*/
*/
@TableField
(
"capacity"
)
@TableField
(
"capacity"
)
private
Integer
capacity
;
private
Double
capacity
;
/**
/**
* 累计发电量
* 累计发电量
...
...
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