Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
4b155825
Commit
4b155825
authored
Jan 17, 2025
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交首航接口更新
parent
34085050
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
SoFarConstant.java
...yeejoin/amos/api/householdapi/constant/SoFarConstant.java
+1
-2
PeasantHouseholdWxController.java
...ule/hygf/biz/controller/PeasantHouseholdWxController.java
+1
-1
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+9
-1
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/constant/SoFarConstant.java
View file @
4b155825
...
...
@@ -15,12 +15,11 @@ public class SoFarConstant {
}
};
public
static
String
baseurl
=
"https://openapi.sofar
solarmonitor.com
"
;
public
static
String
baseurl
=
"https://openapi.sofar
cloud.com/openapi-switch
"
;
public
static
String
appId
=
"447430219192733696"
;
public
static
String
appSecret
=
"5881ee8c062817016a2b34425c45937d"
;
public
static
String
corporationId
=
"447430928264990720"
;
public
static
String
account
=
"18120415291"
;
public
static
String
password
=
"ZXNK123456.."
;
public
static
String
tokenurl
=
"/account/auth/createToken"
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PeasantHouseholdWxController.java
View file @
4b155825
...
...
@@ -174,7 +174,7 @@ public class PeasantHouseholdWxController extends BaseController {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
error
(
e
.
getMessage
());
if
(
null
!=
peasantHousehold
)
{
if
(
null
!=
peasantHousehold
&&!
StringUtils
.
isEmpty
(
peasantHousehold
.
getAmosUserId
())
)
{
log
.
error
(
"调用平台接口回滚注册的用户 => {}"
,
e
,
peasantHousehold
.
getAmosUserId
());
// 调用平台接口回滚注册的用户
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
4b155825
...
...
@@ -856,7 +856,15 @@ public class MonitorFanIdxController extends BaseController {
wrapper
.
eq
(
"station_basic_id"
,
stationBasic
.
getSequenceNbr
());
wrapper
.
groupBy
(
"monthly"
);
List
<
Map
<
String
,
Object
>>
list1
=
StationPlanMapper
.
selectMaps
(
wrapper
);
Double
sumValue
=
list1
!=
null
&&
!
list1
.
isEmpty
()
?
(
Double
)
list1
.
get
(
0
).
get
(
"data_value"
)
:
0
;
Double
sumValue
=
0.0
;
if
(
list1
!=
null
)
{
for
(
Map
<
String
,
Object
>
map
:
list1
)
{
sumValue
+=
map
.
get
(
"data_value"
)!=
null
?
Double
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"data_value"
))):
0
;
}
}
// Double sumValue = list1 != null && !list1.isEmpty() ? (Double) list1.get(0).get("data_value") : 0;
columnMap
.
put
(
"年发电量完成率(%)"
,
String
.
format
(
"%.2f"
,
Double
.
parseDouble
(
columnMap
.
get
(
"年发电量"
).
toString
())
/
sumValue
*
100
));
...
...
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