Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
0a169392
Commit
0a169392
authored
Dec 14, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"feature-zhaJi:优化开闭区间的查询判断逻辑"
parent
db0e9623
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
TInsuranceDetailMapper.xml
...in/resources/mapper/insurances/TInsuranceDetailMapper.xml
+10
-10
No files found.
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceDetailMapper.xml
View file @
0a169392
...
@@ -502,10 +502,10 @@
...
@@ -502,10 +502,10 @@
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
param.policyEnd == null and param.policyEnd.trim() == ''
"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
(param.policyEnd == null or param.policyEnd.trim() == '')
"
>
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
param.policyStart == null and param.policyStart.trim() == ''
"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
(param.policyStart == null or param.policyStart.trim() == '')
"
>
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
...
@@ -596,10 +596,10 @@
...
@@ -596,10 +596,10 @@
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
param.policyEnd == null and param.policyEnd.trim() == ''
"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
(param.policyEnd == null or param.policyEnd.trim() == '')
"
>
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
param.policyStart == null and param.policyStart.trim() == ''
"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
(param.policyStart == null or param.policyStart.trim() == '')
"
>
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
...
@@ -667,10 +667,10 @@
...
@@ -667,10 +667,10 @@
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
param.policyEnd == null and param.policyEnd.trim() == ''
"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
(param.policyEnd == null or param.policyEnd.trim() == '')
"
>
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
param.policyStart == null and param.policyStart.trim() == ''
"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
(param.policyStart == null or param.policyStart.trim() == '')
"
>
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
...
@@ -747,10 +747,10 @@
...
@@ -747,10 +747,10 @@
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
param.policyEnd == null and param.policyEnd.trim() == ''
"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
( param.policyEnd == null or param.policyEnd.trim() == '' )
"
>
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
param.policyStart == null and param.policyStart.trim() == ''
"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
(param.policyStart == null or param.policyStart.trim() == '')
"
>
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
...
@@ -823,10 +823,10 @@
...
@@ -823,10 +823,10 @@
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
<if
test=
"param.policyNo != null and param.policyNo.trim() != ''"
>
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and a.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
param.policyEnd == null and param.policyEnd.trim() == ''
"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and
(param.policyEnd == null or param.policyEnd.trim() == '')
"
>
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
AND a.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
param.policyStart == null and param.policyStart.trim() == ''
"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and
(param.policyStart == null or param.policyStart.trim() == '')
"
>
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
AND a.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
...
...
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