Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
Overview
Overview
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
首航-临时账号
api
Commits
0ce6d7b0
Commit
0ce6d7b0
authored
Nov 18, 2020
by
java-温文海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模糊查询
parent
1302072a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
6 deletions
+51
-6
StatisticalDao.xml
resources/mapper/modules/airport/StatisticalDao.xml
+51
-6
No files found.
resources/mapper/modules/airport/StatisticalDao.xml
View file @
0ce6d7b0
...
...
@@ -193,12 +193,56 @@
foc_airline_sta favt
WHERE
favt.del_flag = #{DEL_FLAG_NORMAL}
<if
test=
"depIata != null and depIata != ''"
>
and (favt.dep_iata = #{depIata} or favt.arr_iata= #{depIata})
</if>
<if
test=
"arrIata != null and arrIata != ''"
>
and (favt.arr_iata = #{arrIata} or favt.arr_iata = #{depIata})
</if>
<choose>
<!--当出发地不为空,目的地不为空 -->
<when
test=
"(depIata != null and depIata != '') and (arrIata != null and arrIata != '')"
>
AND ( favt.dep_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{depIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{depIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{depIata}, '%')
</if>
or favt.arr_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{depIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{depIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{depIata}, '%')
</if>
)
or ( favt.dep_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{arrIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{arrIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{arrIata}, '%')
</if>
or favt.arr_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{arrIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{arrIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{arrIata}, '%')
</if>
)
</when>
<!--当出发地不为空,目的地为空 -->
<when
test=
"(depIata != null and depIata != '') and (arrIata == null and arrIata == '')"
>
AND ( favt.dep_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{depIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{depIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{depIata}, '%')
</if>
or favt.arr_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{depIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{depIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{depIata}, '%')
</if>
)
</when>
<!--当出发地为空,目的地不为空 -->
<when
test=
"(depIata == null and depIata == '') and (arrIata != null and arrIata != '')"
>
and ( favt.dep_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{arrIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{arrIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{arrIata}, '%')
</if>
or favt.arr_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{arrIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{arrIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{arrIata}, '%')
</if>
)
</when>
<otherwise>
</otherwise>
</choose>
</select>
</mapper>
\ No newline at end of file
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