Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-product
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-product
Commits
7f9b3251
Commit
7f9b3251
authored
Apr 20, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
bb32f26e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
yd-product-service/src/main/resources/mappers/AnnouncementCommissionRatioMapper.xml
+12
-12
No files found.
yd-product-service/src/main/resources/mappers/AnnouncementCommissionRatioMapper.xml
View file @
7f9b3251
...
...
@@ -148,7 +148,7 @@
AND DATE(#{request.effectiveDate}) BETWEEN DATE(acr.effective_start) AND DATE(acr.effective_end)
</if>
<!-- 供款年期(数字)匹配:左开右闭 -->
<!-- 供款年期(数字)匹配:左开右闭
(保持原有逻辑)
-->
AND (
sa.payment_term_val IS NULL
OR (
...
...
@@ -161,7 +161,7 @@
(
SUBSTRING_INDEX(sa.payment_term_val, '-', -1) != ''
AND CAST(SUBSTRING_INDEX(sa.payment_term_val, '-', 1) AS UNSIGNED)
<
#{request.paymentTerm}
AND CAST(SUBSTRING_INDEX(sa.payment_term_val, '-', -1) AS UNSIGNED)
>
= #{request.paymentTerm}
AND CAST(SUBSTRING_INDEX(sa.payment_term_val, '-', -1) AS UNSIGNED)
>
= #{request.paymentTerm}
)
OR
(
...
...
@@ -172,7 +172,7 @@
)
)
<!-- 投保年龄(区间值)匹配:左
开
右闭 -->
<!-- 投保年龄(区间值)匹配:左
闭
右闭 -->
AND (
sa.age_val IS NULL
OR (
...
...
@@ -184,19 +184,19 @@
AND (
(
SUBSTRING_INDEX(sa.age_val, '-', -1) != ''
AND CAST(SUBSTRING_INDEX(sa.age_val, '-', 1) AS UNSIGNED)
<
CAST(#{request.age} AS UNSIGNED)
AND CAST(SUBSTRING_INDEX(sa.age_val, '-', -1) AS UNSIGNED)
>
= CAST(#{request.age} AS UNSIGNED)
AND CAST(SUBSTRING_INDEX(sa.age_val, '-', 1) AS UNSIGNED)
<
=
CAST(#{request.age} AS UNSIGNED)
AND CAST(SUBSTRING_INDEX(sa.age_val, '-', -1) AS UNSIGNED)
>
= CAST(#{request.age} AS UNSIGNED)
)
OR
(
SUBSTRING_INDEX(sa.age_val, '-', -1) = ''
AND CAST(SUBSTRING_INDEX(sa.age_val, '-', 1) AS UNSIGNED)
<
CAST(#{request.age} AS UNSIGNED)
AND CAST(SUBSTRING_INDEX(sa.age_val, '-', 1) AS UNSIGNED)
<
=
CAST(#{request.age} AS UNSIGNED)
)
)
)
)
<!-- 期缴保费(区间值)匹配:左
开右闭
,使用转换后的港币保费 -->
<!-- 期缴保费(区间值)匹配:左
闭右开
,使用转换后的港币保费 -->
AND (
sa.premium_val IS NULL
OR (
...
...
@@ -209,13 +209,13 @@
AND (
(
SUBSTRING_INDEX(sa.premium_val, '-', -1) != ''
AND CAST(SUBSTRING_INDEX(sa.premium_val, '-', 1) AS DECIMAL(20,2))
<
cp.converted_premium
AND CAST(SUBSTRING_INDEX(sa.premium_val, '-', -1) AS DECIMAL(20,2))
>=
cp.converted_premium
AND CAST(SUBSTRING_INDEX(sa.premium_val, '-', 1) AS DECIMAL(20,2))
<
=
cp.converted_premium
AND CAST(SUBSTRING_INDEX(sa.premium_val, '-', -1) AS DECIMAL(20,2))
>
cp.converted_premium
)
OR
(
SUBSTRING_INDEX(sa.premium_val, '-', -1) = ''
AND CAST(SUBSTRING_INDEX(sa.premium_val, '-', 1) AS DECIMAL(20,2))
<
cp.converted_premium
AND CAST(SUBSTRING_INDEX(sa.premium_val, '-', 1) AS DECIMAL(20,2))
<
=
cp.converted_premium
)
)
)
...
...
@@ -234,7 +234,7 @@
OR sa.policy_currency_val = #{request.policyCurrency}
)
<!-- 保障年期(数字)匹配:左开右闭 -->
<!-- 保障年期(数字)匹配:左开右闭
(保持原有逻辑)
-->
AND (
sa.guarantee_period_val IS NULL
OR (
...
...
@@ -247,7 +247,7 @@
(
SUBSTRING_INDEX(sa.guarantee_period_val, '-', -1) != ''
AND CAST(SUBSTRING_INDEX(sa.guarantee_period_val, '-', 1) AS UNSIGNED)
<
CAST(#{request.guaranteePeriod} AS UNSIGNED)
AND CAST(SUBSTRING_INDEX(sa.guarantee_period_val, '-', -1) AS UNSIGNED)
>
= CAST(#{request.guaranteePeriod} AS UNSIGNED)
AND CAST(SUBSTRING_INDEX(sa.guarantee_period_val, '-', -1) AS UNSIGNED)
>
= CAST(#{request.guaranteePeriod} AS UNSIGNED)
)
OR
(
...
...
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