Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
789fae1f
Commit
789fae1f
authored
Oct 21, 2020
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+套餐字段
parent
1249b9f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ShareIncomeServiceImpl.java
...main/java/common/service/impl/ShareIncomeServiceImpl.java
+7
-1
No files found.
src/main/java/common/service/impl/ShareIncomeServiceImpl.java
View file @
789fae1f
...
...
@@ -54,7 +54,9 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
private
AccountRepository
accountRepository
;
@Autowired
private
AccountFlowRestrictService
accountFlowRestrictService
;
@Autowired
private
PackageBaseRepository
packageBaseRepository
;
@Override
public
List
<
Contract
>
shareIncomeList
(
User
loginAccount
,
String
startDate
,
String
endDate
,
String
platform
,
String
bodyCode
,
String
serchName
)
{
...
...
@@ -110,6 +112,8 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
List
<
BarrioCity
>
barrioCities
=
barrioCityRepository
.
findAll
();
Map
<
Long
,
BarrioCity
>
barrioCitiesNameMap
=
barrioCities
.
stream
().
collect
(
Collectors
.
toMap
(
BarrioCity:
:
getId
,
Function
.
identity
(),
(
v1
,
v2
)
->
v1
));
List
<
PackageBase
>
packageBases
=
packageBaseRepository
.
findByPlatAndStatus
(
platform
,
1
);
Map
<
Long
,
PackageBase
>
packageBaseMap
=
packageBases
.
stream
().
collect
(
Collectors
.
toMap
(
PackageBase:
:
getId
,
Function
.
identity
(),
(
v1
,
v2
)
->
v1
));
DateTime
start
=
new
DateTime
(
startDate
);
DateTime
end
=
new
DateTime
(
endDate
);
...
...
@@ -139,6 +143,8 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
v
.
setMyBodyName
(
bodiesNameMap
.
get
(
v
.
getMyBodyCode
()));
if
(
v
.
getBarrioId
()!=
null
)
v
.
setBarrioName
(
barrioCitiesNameMap
.
get
(
barrioCitiesNameMap
.
get
(
v
.
getBarrioId
()).
getParentId
()).
getName
());
if
(
v
.
getPriceLevel
()!=
null
)
v
.
setPriceLevelName
(
packageBaseMap
.
get
(
v
.
getPriceLevel
()).
getPackageName
());
});
}
logger
.
info
(
"计算分摊收入耗时:{}"
,
(
System
.
currentTimeMillis
()
-
start_
));
...
...
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