Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
47249efc
Commit
47249efc
authored
Jul 19, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推广*邀请
parent
c2a44c03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
UserBusinessBiz.java
...om/github/wxiaoqi/security/admin/biz/UserBusinessBiz.java
+1
-1
AppUserSellingWaterMapper.xml
...n/src/main/resources/mapper/AppUserSellingWaterMapper.xml
+1
-1
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/UserBusinessBiz.java
View file @
47249efc
...
@@ -105,7 +105,7 @@ public class UserBusinessBiz {
...
@@ -105,7 +105,7 @@ public class UserBusinessBiz {
promoteBO
.
setActivatedNumber
(
memberStateAndCountMap
.
get
(
1
));
promoteBO
.
setActivatedNumber
(
memberStateAndCountMap
.
get
(
1
));
BigDecimal
totalIncome
=
appUserSellingWaterBiz
.
selectTotalIncomeByUserId
(
userId
);
BigDecimal
totalIncome
=
appUserSellingWaterBiz
.
selectTotalIncomeByUserId
(
userId
);
promoteBO
.
setTotalIncome
(
totalIncome
);
promoteBO
.
setTotalIncome
(
totalIncome
==
null
?
new
BigDecimal
(
0
):
totalIncome
);
return
promoteBO
;
return
promoteBO
;
}
}
}
}
ace-modules/ace-admin/src/main/resources/mapper/AppUserSellingWaterMapper.xml
View file @
47249efc
...
@@ -17,7 +17,7 @@ WHERE
...
@@ -17,7 +17,7 @@ WHERE
</foreach>
</foreach>
</select>
</select>
<select
id=
"selectTotalIncomeByUserId"
>
<select
id=
"selectTotalIncomeByUserId"
resultType=
"java.math.BigDecimal"
>
SELECT SUM(commission) FROM app_user_selling_water WHERE `user_id`=#{userId}
SELECT SUM(commission) FROM app_user_selling_water WHERE `user_id`=#{userId}
</select>
</select>
</mapper>
</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