Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
youka-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
java-youka-wallet
youka-api
Commits
e5e2d6f9
Commit
e5e2d6f9
authored
May 15, 2018
by
Java-聂换换
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
余额
parent
2172f786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
PayApiDao.xml
src/main/resources/mappings/modules/pay/PayApiDao.xml
+10
-8
No files found.
src/main/resources/mappings/modules/pay/PayApiDao.xml
View file @
e5e2d6f9
...
...
@@ -126,19 +126,21 @@
<select
id=
"getBenefitSum"
resultType=
"com.thinkgem.jeesite.modules.pay.entity.BenefitEntity"
>
SELECT
SUM(amount) AS amount
FROM youka_benefit
WHERE user_code = #{userCode}
AND del_flag = 0
AND benefit_type = #{benefitType}
SUM(b.amount) AS amount
FROM youka_benefit b
LEFT JOIN youka_orders o ON o.`code` = b.order_code
WHERE b.user_code = #{userCode}
AND b.del_flag = 0
AND b.benefit_type = #{benefitType}
AND o.pay_status = 2
<if
test=
"benefitStatus != null and benefitStatus != ''"
>
AND benefit_status = #{benefitStatus}
AND b
.b
enefit_status = #{benefitStatus}
</if>
<if
test=
"startTime != null and startTime != ''"
>
AND create_date >= #{startTime}
AND
b.
create_date >= #{startTime}
</if>
<if
test=
"endTime != null and endTime != ''"
>
AND create_date
<
= #{endTime}
AND
b.
create_date
<
= #{endTime}
</if>
</select>
...
...
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