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
c827f793
Commit
c827f793
authored
Apr 12, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功率曲线只查询合成测点
parent
1207da7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
56 deletions
+0
-56
Test.java
...yeejoin/amos/boot/module/jxiop/biz/service/impl/Test.java
+0
-56
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/Test.java
deleted
100644 → 0
View file @
1207da7c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
public
class
Test
{
public
static
class
A
{
String
name1
;
String
name2
;
public
String
getName1
()
{
return
name1
;
}
public
void
setName1
(
String
name1
)
{
this
.
name1
=
name1
;
}
public
String
getName2
()
{
return
name2
;
}
public
void
setName2
(
String
name2
)
{
this
.
name2
=
name2
;
}
public
A
()
{
}
public
A
(
String
name1
,
String
name2
)
{
this
.
name1
=
name1
;
this
.
name2
=
name2
;
}
}
public
static
void
main
(
String
[]
args
)
{
List
<
A
>
list
=
new
ArrayList
<>();
list
.
add
(
new
A
(
"1"
,
"2"
));
list
.
add
(
new
A
(
"3"
,
null
));
list
.
add
(
new
A
(
null
,
"4"
));
list
.
add
(
new
A
());
String
names
=
list
.
stream
().
map
(
a
->{
if
(
a
.
getName1
()!=
null
&&
a
.
getName2
()!=
null
){
return
a
.
getName1
()+
","
+
a
.
getName2
();
}
if
(
a
.
getName1
()!=
null
){
return
a
.
getName1
();
}
if
(
a
.
getName2
()!=
null
){
return
a
.
getName2
();
}
return
""
;
}).
collect
(
Collectors
.
joining
(
","
));
names
.
replace
(
"null"
,
""
);
// System.out.printf(names);
}
}
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