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
73dfe016
Commit
73dfe016
authored
Jul 08, 2021
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防队伍列表接口修改
parent
d69e8b47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
FireTeamMapper.xml
...e-common-api/src/main/resources/mapper/FireTeamMapper.xml
+2
-1
FireTeamServiceImpl.java
...boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
+4
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FireTeamMapper.xml
View file @
73dfe016
...
...
@@ -31,7 +31,8 @@
<if
test=
'par.companyCode != null'
>
and a.company_code = #{par.companyCode}
</if>
<if
test=
'par.name != null'
>
and a.name like concat('%', #{par.name}, '%')
</if>
<if
test=
'par.nodeType != null and par.nodeType == "1"'
>
and a.company = #{par.id}
</if>
<if
test=
'par.nodeType != null and par.nodeType == "0"'
>
and a.parent = #{par.id}
</if>
<if
test=
'par.nodeType != null and par.nodeType == "0"'
>
and a.parent = #{par.id} or a.sequence_nbr =
#{par.id}
</if>
</select>
<select
id=
"listFireTeamDto"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.FireTeamDto"
>
...
...
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 @
73dfe016
...
...
@@ -19,6 +19,7 @@ import com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl;
import
com.yeejoin.amos.boot.module.jcs.api.feign.EquipFeignClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -83,6 +84,9 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
t
.
setCarNum
(
finalTeamCarCountMap
.
get
(
t
.
getSequenceNbr
().
toString
()).
intValue
());
}
});
if
(
"0"
.
equals
(
team
.
getNodeType
())
&&
!
ValidationUtil
.
isEmpty
(
fireTeamList
)
&&
fireTeamList
.
size
()
>
1
)
{
fireTeamList
=
fireTeamList
.
stream
().
filter
(
t
->
t
.
getSequenceNbr
().
equals
(
team
.
getId
())).
collect
(
Collectors
.
toList
());
}
fireTeamListPage
.
setRecords
(
fireTeamList
);
return
fireTeamListPage
;
}
...
...
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