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
a69e35cd
Commit
a69e35cd
authored
Jul 29, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
5a7a558a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
FireTeamMapper.xml
...e-common-api/src/main/resources/mapper/FireTeamMapper.xml
+1
-0
FireTeamServiceImpl.java
...boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
+4
-4
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FireTeamMapper.xml
View file @
a69e35cd
...
@@ -127,6 +127,7 @@
...
@@ -127,6 +127,7 @@
SELECT
SELECT
a.name ,
a.name ,
a.sequence_nbr sequenceNbr,
( SELECT count( 1 ) FROM cb_firefighters WHERE fire_team_id = a.sequence_nbr AND is_delete = 0 ) userNum
( SELECT count( 1 ) FROM cb_firefighters WHERE fire_team_id = a.sequence_nbr AND is_delete = 0 ) userNum
FROM cb_fire_team a
FROM cb_fire_team a
where a.is_delete=0
where a.is_delete=0
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
View file @
a69e35cd
...
@@ -214,7 +214,7 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
...
@@ -214,7 +214,7 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
if
(
result1
!=
null
&&
result1
.
size
()>
0
){
if
(
result1
!=
null
&&
result1
.
size
()>
0
){
Map
<
String
,
Object
>
combineResultMap
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
combineResultMap
=
new
HashMap
<
String
,
Object
>();
result1
.
stream
().
forEach
(
obj
->{
result1
.
stream
().
forEach
(
obj
->{
combineResultMap
.
putAll
(
obj
);
combineResultMap
.
put
(
obj
.
get
(
"teamId"
).
toString
(),
obj
.
get
(
"carNum"
)
);
});
});
list
.
stream
().
forEach
(
obj
->{
list
.
stream
().
forEach
(
obj
->{
if
(
combineResultMap
.
containsKey
(
obj
.
getSequenceNbr
())){
if
(
combineResultMap
.
containsKey
(
obj
.
getSequenceNbr
())){
...
@@ -248,11 +248,11 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
...
@@ -248,11 +248,11 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
if
(
result1
!=
null
&&
result1
.
size
()>
0
){
if
(
result1
!=
null
&&
result1
.
size
()>
0
){
Map
<
String
,
Object
>
combineResultMap
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
combineResultMap
=
new
HashMap
<
String
,
Object
>();
result1
.
stream
().
forEach
(
obj
->{
result1
.
stream
().
forEach
(
obj
->{
combineResultMap
.
put
All
(
obj
);
combineResultMap
.
put
(
obj
.
get
(
"teamId"
).
toString
(),
obj
.
get
(
"carNum"
)
);
});
});
list
.
stream
().
forEach
(
obj
->{
list
.
stream
().
forEach
(
obj
->{
if
(
combineResultMap
.
containsKey
(
obj
.
getSequenceNbr
())){
if
(
combineResultMap
.
containsKey
(
obj
.
getSequenceNbr
()
.
toString
()
)){
obj
.
setCarNum
(
Integer
.
valueOf
(
combineResultMap
.
get
(
obj
.
getSequenceNbr
()).
toString
()));
obj
.
setCarNum
(
Integer
.
valueOf
(
combineResultMap
.
get
(
obj
.
getSequenceNbr
()
.
toString
()
).
toString
()));
}
}
});
});
}
}
...
...
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