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
a5d3d44d
Commit
a5d3d44d
authored
Mar 18, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化月度任务代码
parent
ea341e61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
AccountServiceImpl.java
...ava/cn/wisenergy/service/app/impl/AccountServiceImpl.java
+3
-8
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/AccountServiceImpl.java
View file @
a5d3d44d
...
@@ -143,15 +143,11 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
...
@@ -143,15 +143,11 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
//key 不存在,加入集合
//key 不存在,加入集合
map
.
put
(
userId
,
payMoney
);
map
.
put
(
userId
,
payMoney
);
}
}
//累加订单成交额
totalMoney
=
totalMoney
.
add
(
orderInfo
.
getPayment
());
totalMoney
=
totalMoney
.
add
(
orderInfo
.
getPayment
());
}
}
//累计用户和上级用户-团队业绩
//累计用户和上级用户-团队业绩
Map
<
String
,
Double
>
tempMap
=
new
HashMap
<>();
Map
<
String
,
Double
>
tempMap
=
new
HashMap
<>();
//遍历订单
for
(
Map
.
Entry
<
String
,
Double
>
entity
:
map
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
Double
>
entity
:
map
.
entrySet
())
{
String
userId
=
entity
.
getKey
();
String
userId
=
entity
.
getKey
();
//1)、统计当前用户月度业绩
//1)、统计当前用户月度业绩
...
@@ -223,14 +219,13 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
...
@@ -223,14 +219,13 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
return
R
.
ok
(
1
,
false
);
return
R
.
ok
(
1
,
false
);
}
}
return
R
.
ok
(
0
,
true
);
return
R
.
ok
(
0
,
true
);
}
}
/**
/**
* 获取用户的
商机信息
* 获取用户的
上级列表
*
*
* @param userId 用户id
* @param userId 用户id
* @return
* @return
用户的上级列表
*/
*/
@Override
@Override
public
List
<
User
>
getByList
(
String
userId
)
{
public
List
<
User
>
getByList
(
String
userId
)
{
...
@@ -361,7 +356,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
...
@@ -361,7 +356,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
*
*
* @param totalMoney 月金额总额
* @param totalMoney 月金额总额
* @param userList 用户列表
* @param userList 用户列表
* @return
* @return
true or false
*/
*/
private
boolean
monthlyIncome
(
BigDecimal
totalMoney
,
List
<
User
>
userList
)
{
private
boolean
monthlyIncome
(
BigDecimal
totalMoney
,
List
<
User
>
userList
)
{
double
total
=
totalMoney
.
doubleValue
();
double
total
=
totalMoney
.
doubleValue
();
...
...
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