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
8098009f
Commit
8098009f
authored
Nov 24, 2020
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主账号为空处理
parent
07dda011
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
ShareIncomeServiceImpl.java
...main/java/common/service/impl/ShareIncomeServiceImpl.java
+12
-2
No files found.
src/main/java/common/service/impl/ShareIncomeServiceImpl.java
View file @
8098009f
...
...
@@ -202,7 +202,17 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
//查出所有报表->进行代码分组,按照email分组 计算
try
(
Stream
<
Contract
>
streamContract
=
contracts
.
parallelStream
())
{
streamContract
.
forEachOrdered
(
v
->
{
multimap
.
put
(
v
.
getEmail
(),
v
);
if
(!
StringUtil
.
isEmpty
(
v
.
getEmail
())){
multimap
.
put
(
v
.
getEmail
(),
v
);
}
else
{
v
.
setUnitPrice
(
0.0
);
v
.
setClickFlow
(
0.0
);
v
.
setAdjustmentFund
(
0L
);
if
(
checkTwoTime
(
new
DateTime
(
v
.
getEndDate
()),
end
)||
checkTwoTime
(
start
,
new
DateTime
(
v
.
getEndDate
()))){
v
.
setIntervaIncomeShare
(
new
BigDecimal
(
v
.
getMoney
()/
1.06
*
100
).
setScale
(
0
,
BigDecimal
.
ROUND_HALF_UP
).
longValue
());
v
.
setIncomeGross
(
v
.
getIntervaIncomeShare
());
}
}
});
}
//遍历map,找出主合同,注:补充协议不能与补充协议互相绑定
...
...
@@ -623,7 +633,7 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
}
else
{
Contract
contractMaster
=
contractsArray
[
i
];
if
(
contracts
.
contains
(
contractMaster
)){
shareIncome4ContractTKIO
(
contractMaster
,
start
,
new
DateTime
(
contractMaster
.
getNextSignedDate
())
);
//到结束的前一天
shareIncome4ContractTKIO
(
contractMaster
,
start
,
checkTwoTime
(
new
DateTime
(
contractMaster
.
getNextSignedDate
()),
end
)?
new
DateTime
(
contractMaster
.
getNextSignedDate
()):
end
);
//到结束的前一天
}
}
}
...
...
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