Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
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
licc
data-server
Commits
c0576166
Commit
c0576166
authored
Mar 18, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化月度奖励列表
parent
a9c40e0c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
OrderMapper.xml
wisenergy-mapper/src/main/resources/mapper/OrderMapper.xml
+0
-1
ProgressPrizeMapper.xml
...-mapper/src/main/resources/mapper/ProgressPrizeMapper.xml
+1
-1
AccountManager.java
...ain/java/cn/wisenergy/service/Manager/AccountManager.java
+1
-1
AccountServiceImpl.java
...ava/cn/wisenergy/service/app/impl/AccountServiceImpl.java
+3
-2
No files found.
wisenergy-mapper/src/main/resources/mapper/OrderMapper.xml
View file @
c0576166
...
...
@@ -135,7 +135,6 @@
<where>
rebate_status=0
<if
test=
"successTime != null "
>
and success_time
<
#{successTime}
AND(
YEAR(success_time) = YEAR(#{successTime})
AND MONTH(success_time) = MONTH(#{successTime}))
...
...
wisenergy-mapper/src/main/resources/mapper/ProgressPrizeMapper.xml
View file @
c0576166
...
...
@@ -93,7 +93,7 @@
where
p.user_id=u.user_id
and p.`year_month` = #{yearMonth}
order by p.`growth_rate` desc,
u.create_time desc,p.award_money
desc
order by p.`growth_rate` desc,
p.award_money desc,u.create_time
desc
</select>
</mapper>
\ No newline at end of file
wisenergy-service/src/main/java/cn/wisenergy/service/Manager/AccountManager.java
View file @
c0576166
...
...
@@ -70,7 +70,7 @@ public class AccountManager {
BigDecimal
performanceMonth
=
accountInfo
.
getEarningsMonth
().
add
(
bigDecimal
);
accountInfo
.
setEarningsMonth
(
performanceMonth
.
setScale
(
2
,
RoundingMode
.
HALF_UP
));
BigDecimal
performanceTotal
=
accountInfo
.
getEarnings
Month
().
add
(
bigDecimal
);
BigDecimal
performanceTotal
=
accountInfo
.
getEarnings
Total
().
add
(
bigDecimal
);
accountInfo
.
setEarningsTotal
(
performanceTotal
.
setScale
(
2
,
RoundingMode
.
HALF_UP
));
//2、修改订单返佣状态:已返佣 1
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/AccountServiceImpl.java
View file @
c0576166
...
...
@@ -83,7 +83,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
if
(
RebateStatusEnum
.
NO_REBATE
.
getCode
().
equals
(
orderInfo
.
getRebateStatus
())
&&
successTime
<=
time
)
{
//获取用户信息
User
user
=
usersMapper
.
getByUserId
(
orderInfo
.
getUserId
());
if
(
null
==
user
)
{
if
(
null
==
user
||
user
.
getUserLevel
()
==
0
)
{
continue
;
}
...
...
@@ -94,7 +94,8 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
}
//获取返佣比例
MemberPercent
memberpercent
=
memberPercentMapper
.
getByLevelAndType
(
user
.
getUserLevel
(),
MemberPercentEnum
.
REBATE
.
getCode
());
MemberPercent
memberpercent
=
memberPercentMapper
.
getByLevelAndType
(
user
.
getUserLevel
(),
MemberPercentEnum
.
REBATE
.
getCode
());
if
(
null
==
memberpercent
)
{
continue
;
}
...
...
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