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
af7d6601
Commit
af7d6601
authored
Nov 01, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认值
parent
0913f2f7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+5
-5
TdHygfJpCollectorHistoryServiceImpl.java
...biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
+1
-1
TdHygfJpInvertorElecHistoryServiceImpl.java
.../service/impl/TdHygfJpInvertorElecHistoryServiceImpl.java
+18
-18
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpStationServiceImpl.java
View file @
af7d6601
...
...
@@ -89,7 +89,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
for
(
int
i
=
0
;
i
<
listx
.
size
();
i
++)
{
if
(
datum
.
getDate
().
equals
(
listx
.
get
(
i
).
toString
())){
listy
.
remove
(
i
);
String
format
=
datum
.
getNum
()!=
null
?
new
DecimalFormat
(
"#.000"
).
format
(
datum
.
getNum
()):
"0"
;
String
format
=
datum
.
getNum
()!=
null
?
new
DecimalFormat
(
"#.000"
).
format
(
datum
.
getNum
()):
null
;
listy
.
add
(
i
,
format
);
break
;
}
...
...
@@ -137,7 +137,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
}
listx
.
add
(
aDate
);
listy
.
add
(
0
);
listy
.
add
(
null
);
}
map
.
put
(
"x"
,
listx
);
map
.
put
(
"y"
,
listy
);
...
...
@@ -160,7 +160,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
}
listx
.
add
(
aDate
);
listy
.
add
(
0
);
listy
.
add
(
null
);
}
map
.
put
(
"x"
,
listx
);
map
.
put
(
"y"
,
listy
);
...
...
@@ -176,7 +176,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
for
(
int
i
=
1
;
i
<=
10
;
i
++)
{
int
aDate
=
year
-(
10
-
i
);
listx
.
add
(
String
.
valueOf
(
aDate
));
listy
.
add
(
0
);
listy
.
add
(
null
);
}
map
.
put
(
"x"
,
listx
);
map
.
put
(
"y"
,
listy
);
...
...
@@ -192,7 +192,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
for
(
int
i
=
0
;
i
<
24
;
i
++)
{
String
s1
=
i
+
":00"
;
listx
.
add
(
s1
);
listy
.
add
(
0
);
listy
.
add
(
null
);
}
}
catch
(
Exception
e
){
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
View file @
af7d6601
...
...
@@ -60,7 +60,7 @@ public class TdHygfJpCollectorHistoryServiceImpl
if
(!
list
.
isEmpty
())
{
list
.
forEach
(
i
->
{
i
.
setTimeFormat
(
TimeUtil
.
minuteFormat
(
i
.
getTime
()));
i
.
setSignalStrength
(
i
.
getSignalStrength
()==
null
?
0
D
:
i
.
getSignalStrength
());
i
.
setSignalStrength
(
i
.
getSignalStrength
()==
null
?
null
:
i
.
getSignalStrength
());
});
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpInvertorElecHistoryServiceImpl.java
View file @
af7d6601
...
...
@@ -87,12 +87,12 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
da
.
setDay
(
s
);
da
.
setSnCode
(
invertor
.
getSnCode
().
trim
());
da
.
setYearMonth
(
monthStr
);
da
.
setUAcCurrent
(
0
D
);
da
.
setUAcVoltage
(
0
D
);
da
.
setVAcVoltage
(
0
D
);
da
.
setVAcCurrent
(
0
D
);
da
.
setWAcCurrent
(
0
D
);
da
.
setWAcVoltage
(
0
D
);
da
.
setUAcCurrent
(
null
);
da
.
setUAcVoltage
(
null
);
da
.
setVAcVoltage
(
null
);
da
.
setVAcCurrent
(
null
);
da
.
setWAcCurrent
(
null
);
da
.
setWAcVoltage
(
null
);
}
lidata
.
add
(
da
)
;
}
...
...
@@ -160,12 +160,12 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
da
.
setMonth
(
String
.
valueOf
(
i
));
da
.
setSnCode
(
invertor
.
getSnCode
().
trim
());
da
.
setYear
(
yearStr
);
da
.
setUAcCurrent
(
0
D
);
da
.
setUAcVoltage
(
0
D
);
da
.
setVAcVoltage
(
0
D
);
da
.
setVAcCurrent
(
0
D
);
da
.
setWAcCurrent
(
0
D
);
da
.
setWAcVoltage
(
0
D
);
da
.
setUAcCurrent
(
null
);
da
.
setUAcVoltage
(
null
);
da
.
setVAcVoltage
(
null
);
da
.
setVAcCurrent
(
null
);
da
.
setWAcCurrent
(
null
);
da
.
setWAcVoltage
(
null
);
}
lidata
.
add
(
da
)
;
...
...
@@ -200,12 +200,12 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
da
=
new
JpInvertorElecHistoryAllDto
();
da
.
setYear
(
String
.
valueOf
(
i
));
da
.
setSnCode
(
invertor
.
getSnCode
().
trim
());
da
.
setUAcCurrent
(
0
D
);
da
.
setUAcVoltage
(
0
D
);
da
.
setVAcVoltage
(
0
D
);
da
.
setVAcCurrent
(
0
D
);
da
.
setWAcCurrent
(
0
D
);
da
.
setWAcVoltage
(
0
D
);
da
.
setUAcCurrent
(
null
);
da
.
setUAcVoltage
(
null
);
da
.
setVAcVoltage
(
null
);
da
.
setVAcCurrent
(
null
);
da
.
setWAcCurrent
(
null
);
da
.
setWAcVoltage
(
null
);
}
lidata
.
add
(
da
)
;
...
...
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