Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
bbea40c8
Commit
bbea40c8
authored
Nov 22, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询
parent
7e2528c5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
5 deletions
+20
-5
ConsumerMonthlyCardMapper.xml
...ain/resources/mapper/system/ConsumerMonthlyCardMapper.xml
+4
-1
ConsumerSecondaryCardMapper.xml
...n/resources/mapper/system/ConsumerSecondaryCardMapper.xml
+4
-1
MonthlyCardLogMapper.xml
...src/main/resources/mapper/system/MonthlyCardLogMapper.xml
+4
-1
MonthlyCardOrderMapper.xml
...c/main/resources/mapper/system/MonthlyCardOrderMapper.xml
+2
-0
SecondaryCardLogMapper.xml
...c/main/resources/mapper/system/SecondaryCardLogMapper.xml
+4
-2
SecondaryCardOrderMapper.xml
...main/resources/mapper/system/SecondaryCardOrderMapper.xml
+2
-0
No files found.
share-system/src/main/resources/mapper/system/ConsumerMonthlyCardMapper.xml
View file @
bbea40c8
...
...
@@ -67,7 +67,10 @@
where c.is_delete = 0
<if
test=
"monthlyCardConfId != null "
>
and c.monthly_card_conf_id = #{monthlyCardConfId}
</if>
<if
test=
"consumerId != null "
>
and c.consumer_id = #{consumerId}
</if>
<if
test=
"phone != null and phone != ''"
>
and c.phone = #{phone}
</if>
<if
test=
"phone != null and phone != ''"
>
and c.phone like concat('%', #{phone},'%')
</if>
<if
test=
"nickName != null and nickName != ''"
>
and c2.nick_name like concat('%', #{nickName},'%')
</if>
<if
test=
"freeDuration != null "
>
and c.free_duration = #{freeDuration}
</if>
<if
test=
"monthlyCardDays != null "
>
and c.monthly_card_days = #{monthlyCardDays}
</if>
<if
test=
"expirationDate != null "
>
and c.expiration_date = #{expirationDate}
</if>
...
...
share-system/src/main/resources/mapper/system/ConsumerSecondaryCardMapper.xml
View file @
bbea40c8
...
...
@@ -70,7 +70,10 @@
c.is_delete = 0
<if
test=
"secondaryCardConfId != null "
>
and c.secondary_card_conf_id = #{secondaryCardConfId}
</if>
<if
test=
"consumerId != null "
>
and c.consumer_id = #{consumerId}
</if>
<if
test=
"phone != null and phone != ''"
>
and c.phone = #{phone}
</if>
<if
test=
"phone != null and phone != ''"
>
and c.phone like concat('%', #{phone},'%')
</if>
<if
test=
"nickName != null and nickName != ''"
>
and m.nick_name like concat('%', #{nickName},'%')
</if>
<if
test=
"singleDuration != null "
>
and c.single_duration = #{singleDuration}
</if>
<if
test=
"singleAmount != null "
>
and c.single_amount = #{singleAmount}
</if>
<if
test=
"expirationDate != null "
>
and c.expiration_date = #{expirationDate}
</if>
...
...
share-system/src/main/resources/mapper/system/MonthlyCardLogMapper.xml
View file @
bbea40c8
...
...
@@ -68,7 +68,10 @@
where l.is_delete = 0
<if
test=
"consumerMonthlyCardId != null "
>
and l.consumer_monthly_card_id = #{consumerMonthlyCardId}
</if>
<if
test=
"consumerId != null "
>
and l.consumer_id = #{consumerId}
</if>
<if
test=
"phone != null and phone != ''"
>
and l.phone = #{phone}
</if>
<if
test=
"phone != null and phone != ''"
>
and l.phone like concat('%', #{phone},'%')
</if>
<if
test=
"nickName != null and nickName != ''"
>
and c.nick_name like concat('%', #{nickName},'%')
</if>
<if
test=
"useDuration != null "
>
and l.use_duration = #{useDuration}
</if>
<if
test=
"residueDuration != null "
>
and l.residue_duration = #{residueDuration}
</if>
order by l.create_time desc
...
...
share-system/src/main/resources/mapper/system/MonthlyCardOrderMapper.xml
View file @
bbea40c8
...
...
@@ -82,6 +82,8 @@
where o.is_delete = 0
<if
test=
"nickName != null and nickName != ''"
>
and c.nick_name like concat('%', #{nickName},'%')
</if>
<if
test=
"phone != null and phone != ''"
>
and o.phone like concat('%', #{phone},'%')
</if>
<if
test=
"monthlyCardNo != null and monthlyCardNo != ''"
>
and o.monthly_card_no = #{monthlyCardNo}
</if>
<if
test=
"outTradeNo != null and outTradeNo != ''"
>
and o.out_trade_no = #{outTradeNo}
</if>
<if
test=
"terminalTrace != null and terminalTrace != ''"
>
and o.terminal_trace = #{terminalTrace}
</if>
...
...
share-system/src/main/resources/mapper/system/SecondaryCardLogMapper.xml
View file @
bbea40c8
...
...
@@ -69,8 +69,10 @@
<if
test=
"consumerSecondaryCardId != null "
>
and l.consumer_secondary_card_id = #{consumerSecondaryCardId}
</if>
<if
test=
"consumerId != null "
>
and l.consumer_id = #{consumerId}
</if>
<if
test=
"phone != null and phone != ''"
>
and l.phone = #{phone}
</if>
<if
test=
"phone != null and phone != ''"
>
and l.phone like concat('%', #{phone},'%')
</if>
<if
test=
"nickName != null and nickName != ''"
>
and c.nick_name like concat('%', #{nickName},'%')
</if>
<if
test=
"usageCount != null "
>
and l.usage_count = #{usageCount}
</if>
<if
test=
"residueCount != null "
>
and l.residue_count = #{residueCount}
</if>
order by l.create_time desc
...
...
share-system/src/main/resources/mapper/system/SecondaryCardOrderMapper.xml
View file @
bbea40c8
...
...
@@ -82,6 +82,8 @@
</if>
<if
test=
"nickName != null and nickName != ''"
>
and c1.nick_name like concat('%', #{nickName},'%')
</if>
<if
test=
"phone != null and phone != ''"
>
and o.phone like concat('%', #{phone},'%')
</if>
<if
test=
"outTradeNo != null and outTradeNo != ''"
>
and o.out_trade_no = #{outTradeNo}
</if>
<if
test=
"terminalTrace != null and terminalTrace != ''"
>
and o.terminal_trace = #{terminalTrace}
</if>
<if
test=
"secondaryCardAmount != null "
>
and o.secondary_card_amount = #{secondaryCardAmount}
</if>
...
...
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