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
019712eb
Commit
019712eb
authored
4 years ago
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
deea7cdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
ShareIncomeServiceImpl.java
...main/java/common/service/impl/ShareIncomeServiceImpl.java
+13
-3
No files found.
src/main/java/common/service/impl/ShareIncomeServiceImpl.java
View file @
019712eb
...
@@ -335,12 +335,15 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
...
@@ -335,12 +335,15 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
totalFlow
=
totalFlow
-
accruingFlow
+
contract
.
getTrackFlow
();
totalFlow
=
totalFlow
-
accruingFlow
+
contract
.
getTrackFlow
();
totalprice
=
totalprice
-
accruingAmounts
+
contract
.
getMoney
();
totalprice
=
totalprice
-
accruingAmounts
+
contract
.
getMoney
();
contract
.
setIncomeExcludingTax
(
new
BigDecimal
(
totalprice
/
1.06
)
contract
.
setIncomeExcludingTax
(
new
BigDecimal
(
totalprice
/
1.06
)
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
longValue
());
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
multiply
(
new
BigDecimal
(
100L
)).
longValue
());
BigDecimal
unitPriceAccurate
=
new
BigDecimal
(
totalprice
/
1.06
/
totalFlow
)
BigDecimal
unitPriceAccurate
=
null
;
if
(!
contract
.
getPriceLevel
().
equals
(
Constant
.
tkioPriceLevelNotLimit
)){
unitPriceAccurate
=
new
BigDecimal
(
totalprice
/
1.06
/
totalFlow
)
.
setScale
(
16
,
BigDecimal
.
ROUND_HALF_UP
);
//当前合同的单价
.
setScale
(
16
,
BigDecimal
.
ROUND_HALF_UP
);
//当前合同的单价
//四舍五入单价
//四舍五入单价
double
unitPrice
=
unitPriceAccurate
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
double
unitPrice
=
unitPriceAccurate
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
contract
.
setUnitPrice
(
unitPrice
);
contract
.
setUnitPrice
(
unitPrice
);
}
boolean
isLateContract
=
false
;
// 是否为晚录合同(为了兼容历史数据 此处做冗余判断)
boolean
isLateContract
=
false
;
// 是否为晚录合同(为了兼容历史数据 此处做冗余判断)
if
(
ContractStatusEnum
.
LATE
.
getKey
().
equals
(
contract
.
getStatus
()))
{
if
(
ContractStatusEnum
.
LATE
.
getKey
().
equals
(
contract
.
getStatus
()))
{
isLateContract
=
true
;
isLateContract
=
true
;
...
@@ -621,7 +624,6 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
...
@@ -621,7 +624,6 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
}
}
}
}
}
}
//多个合同其中有一个无限流量的,这组全部都走adi逻辑,否则用新需求的逻辑计算
}
}
}
}
...
@@ -636,6 +638,14 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
...
@@ -636,6 +638,14 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
Contract
temp
=
contractsArray
[
j
];
Contract
temp
=
contractsArray
[
j
];
contractsArray
[
j
]
=
contractsArray
[
j
+
1
];
contractsArray
[
j
]
=
contractsArray
[
j
+
1
];
contractsArray
[
j
+
1
]
=
temp
;
contractsArray
[
j
+
1
]
=
temp
;
}
else
if
(
contractsArray
[
j
].
getCreateTime
().
getTime
()
==
contractsArray
[
j
+
1
].
getCreateTime
().
getTime
()){
String
contractCode
=
StringUtil
.
matchNumber
(
contractsArray
[
j
].
getContractCode
());
String
contractCodeMin
=
StringUtil
.
matchNumber
(
contractsArray
[
j
+
1
].
getContractCode
());
if
(
Long
.
valueOf
(
contractCode
)>
Long
.
valueOf
(
contractCodeMin
)){
Contract
temp
=
contractsArray
[
j
];
contractsArray
[
j
]
=
contractsArray
[
j
+
1
];
contractsArray
[
j
+
1
]
=
temp
;
}
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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