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
429ce8c3
Commit
429ce8c3
authored
Jul 08, 2021
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql修改
parent
1e591417
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
FireTeamMapper.xml
...e-common-api/src/main/resources/mapper/FireTeamMapper.xml
+7
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FireTeamMapper.xml
View file @
429ce8c3
...
@@ -43,19 +43,24 @@
...
@@ -43,19 +43,24 @@
<if
test=
'par.typeCode != null'
>
and a.type_code = #{par.typeCode}
</if>
<if
test=
'par.typeCode != null'
>
and a.type_code = #{par.typeCode}
</if>
<if
test=
'par.companyCode != null'
>
and a.company_code = #{par.companyCode}
</if>
<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.name != null'
>
and a.name like concat('%', #{par.name}, '%')
</if>
<if
test=
'par.nodeType != null and par.nodeType == "1" and par.nodeIds != null
and par.nodeIds.size() > 0
'
>
<if
test=
'par.nodeType != null and par.nodeType == "1" and par.nodeIds != null'
>
and a.company in
and a.company in
<foreach
collection=
"par.nodeIds"
separator=
","
open=
"("
item=
"nodeId"
close=
")"
>
<foreach
collection=
"par.nodeIds"
separator=
","
open=
"("
item=
"nodeId"
close=
")"
>
#{nodeId}
#{nodeId}
</foreach>
</foreach>
</if>
</if>
<if
test=
'par.nodeType != null and par.nodeType == "0" and par.nodeIds != null and par.nodeIds.size() > 0'
>
<if
test=
'par.nodeType != null and par.nodeType == "0" and par.nodeIds != null'
>
<if
test=
"par.nodeIds.size() > 0"
>
and a.parent in
and a.parent in
<foreach
collection=
"par.nodeIds"
separator=
","
open=
"("
item=
"nodeId"
close=
")"
>
<foreach
collection=
"par.nodeIds"
separator=
","
open=
"("
item=
"nodeId"
close=
")"
>
#{nodeId}
#{nodeId}
</foreach>
</foreach>
or a.sequence_nbr = #{par.nodeId}
or a.sequence_nbr = #{par.nodeId}
</if>
</if>
<if
test=
"par.nodeIds.size() == 0"
>
and a.sequence_nbr = #{par.nodeId}
</if>
</if>
</select>
</select>
<select
id=
"listFireTeamDto"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.FireTeamDto"
>
<select
id=
"listFireTeamDto"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.FireTeamDto"
>
select t.*, p.name parentName
select t.*, p.name parentName
...
...
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