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
a06501ef
Commit
a06501ef
authored
Oct 30, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改容量
parent
fe925071
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
3 deletions
+84
-3
ImasterConstant.java
...ejoin/amos/api/householdapi/constant/ImasterConstant.java
+38
-0
KSolarConstant.java
...eejoin/amos/api/householdapi/constant/KSolarConstant.java
+42
-0
KsolarDataAcquisitionServiceImpl.java
...i/face/service/impl/KsolarDataAcquisitionServiceImpl.java
+4
-3
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/constant/ImasterConstant.java
View file @
a06501ef
...
@@ -38,6 +38,44 @@ public class ImasterConstant {
...
@@ -38,6 +38,44 @@ public class ImasterConstant {
}
}
};
};
public
static
final
HashMap
<
String
,
Double
>
Capacity
=
new
HashMap
<
String
,
Double
>()
{
{
put
(
"NB1"
,
125440
D
/
1000
);
put
(
"NB2"
,
123200
D
/
1000
);
put
(
"NB3"
,
123200
D
/
1000
);
put
(
"NB4"
,
131040
D
/
1000
);
put
(
"NB5"
,
115360
D
/
1000
);
put
(
"NB6"
,
123200
D
/
1000
);
put
(
"NB7"
,
123200
D
/
1000
);
put
(
"NB8"
,
122080
D
/
1000
);
put
(
"NB9"
,
116480
D
/
1000
);
put
(
"NB10"
,
125440
D
/
1000
);
put
(
"NB11"
,
119840
D
/
1000
);
put
(
"NB12"
,
123200
D
/
1000
);
put
(
"NB13"
,
136080
D
/
1000
);
put
(
"NB14"
,
127680
D
/
1000
);
}
};
public
static
String
baseurl
=
"https://cn.fusionsolar.huawei.com"
;
public
static
String
baseurl
=
"https://cn.fusionsolar.huawei.com"
;
public
static
String
account
=
"ahsjmg-API"
;
public
static
String
account
=
"ahsjmg-API"
;
public
static
String
password
=
"huawei123"
;
public
static
String
password
=
"huawei123"
;
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/constant/KSolarConstant.java
View file @
a06501ef
...
@@ -56,4 +56,46 @@ public class KSolarConstant {
...
@@ -56,4 +56,46 @@ public class KSolarConstant {
put
(
"1"
,
"已恢复"
);
put
(
"1"
,
"已恢复"
);
}
}
};
};
public
static
final
HashMap
<
String
,
Double
>
Capacity
=
new
HashMap
<
String
,
Double
>()
{
{
put
(
"nb1"
,
141120
D
/
1000
);
put
(
"nb2"
,
141120
D
/
1000
);
put
(
"nb3"
,
143920
D
/
1000
);
put
(
"nb4"
,
141120
D
/
1000
);
put
(
"nb5"
,
140000
D
/
1000
);
put
(
"nb6"
,
147840
D
/
1000
);
put
(
"nb7"
,
144480
D
/
1000
);
put
(
"nb8"
,
132160
D
/
1000
);
put
(
"nb9"
,
142240
D
/
1000
);
put
(
"nb10"
,
143360
D
/
1000
);
put
(
"nb11"
,
143360
D
/
1000
);
put
(
"nb12"
,
140000
D
/
1000
);
put
(
"nb13"
,
147840
D
/
1000
);
put
(
"nb14"
,
145600
D
/
1000
);
put
(
"nb15"
,
147840
D
/
1000
);
put
(
"nb16"
,
143360
D
/
1000
);
put
(
"nb17"
,
145040
D
/
1000
);
put
(
"nb18"
,
147840
D
/
1000
);
put
(
"nb19"
,
147840
D
/
1000
);
put
(
"nb20"
,
147840
D
/
1000
);
put
(
"nb21"
,
146720
D
/
1000
);
put
(
"nb22"
,
147840
D
/
1000
);
put
(
"nb23"
,
147840
D
/
1000
);
put
(
"nb24"
,
143360
D
/
1000
);
put
(
"nb25"
,
143360
D
/
1000
);
put
(
"nb26"
,
147840
D
/
1000
);
put
(
"nb27"
,
142240
D
/
1000
);
put
(
"nb28"
,
138880
D
/
1000
);
put
(
"nb29"
,
129920
D
/
1000
);
put
(
"nb30"
,
144480
D
/
1000
);
}
};
}
}
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/KsolarDataAcquisitionServiceImpl.java
View file @
a06501ef
...
@@ -171,7 +171,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -171,7 +171,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
// 业主姓名
// 业主姓名
jpStation
.
setUserName
(
ksolarStation
.
getUserName
());
jpStation
.
setUserName
(
ksolarStation
.
getUserName
());
jpStation
.
setState
(
KSolarConstant
.
collectStaus
.
get
(
String
.
valueOf
(
ksolarStation
.
getStatus
())));
jpStation
.
setState
(
KSolarConstant
.
collectStaus
.
get
(
String
.
valueOf
(
ksolarStation
.
getStatus
())));
jpStation
.
setRealTimePower
(
ksolarStation
.
getPowerInter
()!=
null
?
ksolarStation
.
getPowerInter
()/
1000
000
:
0.0
);
jpStation
.
setRealTimePower
(
ksolarStation
.
getPowerInter
()!=
null
?
ksolarStation
.
getPowerInter
()/
1000
:
0.0
);
jpStation
.
setDayGenerate
(
ksolarStation
.
getDayGeneration
());
jpStation
.
setDayGenerate
(
ksolarStation
.
getDayGeneration
());
jpStation
.
setAccumulatedPower
(
ksolarStation
.
getTotalGeneration
());
jpStation
.
setAccumulatedPower
(
ksolarStation
.
getTotalGeneration
());
...
@@ -458,7 +458,8 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -458,7 +458,8 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
// 满发小时数
// 满发小时数
// jpInverter.setGenerationHours(String.valueOf(inverterDetailDto.getFullHour()));
// jpInverter.setGenerationHours(String.valueOf(inverterDetailDto.getFullHour()));
// 装机容量
// 装机容量
// jpInverter.setCapacity(inverterDetailDto.getPower().intValue());
// jpInverter.setCapacity();
jpInverter
.
setSnCode
(
ksolarStationCollectData
.
getInverterId
());
jpInverter
.
setSnCode
(
ksolarStationCollectData
.
getInverterId
());
jpInverter
.
setId
(
ksolarStationCollectData
.
getInverterId
());
jpInverter
.
setId
(
ksolarStationCollectData
.
getInverterId
());
...
@@ -467,7 +468,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
...
@@ -467,7 +468,7 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
jpInverter
.
setCollectorSnCode
(
ksolarStationCollectList
.
getCollectId
());
jpInverter
.
setCollectorSnCode
(
ksolarStationCollectList
.
getCollectId
());
jpInverter
.
setUpdateTime
(
new
Date
());
jpInverter
.
setUpdateTime
(
new
Date
());
jpInverter
.
setCurrentPower
(
ksolarStationCollectData
.
getPowerApparent
());
jpInverter
.
setCurrentPower
(
ksolarStationCollectData
.
getPowerApparent
()
!=
null
?
ksolarStationCollectData
.
getPowerApparent
()/
1000
:
0.0
);
jpInverter
.
setDayPowerGeneration
(
ksolarStationCollectData
.
getDayGeneration
());
jpInverter
.
setDayPowerGeneration
(
ksolarStationCollectData
.
getDayGeneration
());
jpInverter
.
setMonthPowerGeneration
(
ksolarStationCollectData
.
getMonthGeneration
());
jpInverter
.
setMonthPowerGeneration
(
ksolarStationCollectData
.
getMonthGeneration
());
jpInverter
.
setYearPowerGeneration
(
ksolarStationCollectData
.
getYearGeneration
());
jpInverter
.
setYearPowerGeneration
(
ksolarStationCollectData
.
getYearGeneration
());
...
...
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