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
6e319937
Commit
6e319937
authored
Jul 08, 2020
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复不含税收入
parent
293a1d2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
ShareIncomeServiceImpl.java
...main/java/common/service/impl/ShareIncomeServiceImpl.java
+14
-3
No files found.
src/main/java/common/service/impl/ShareIncomeServiceImpl.java
View file @
6e319937
...
...
@@ -120,7 +120,8 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
contract
.
setIntervalUseDays
(
getDayRange
(
contractPart
[
0
],
usePart
[
1
])
+
1
);
Long
excludTax
=
contract
.
getMoney
()
*
94
;
//不含税收入*100
Long
excludTax
=
new
BigDecimal
(
contract
.
getMoney
()
/
1.06
)
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
multiply
(
new
BigDecimal
(
100L
)).
longValue
();
//不含税收入*100
contract
.
setIncomeExcludingTax
(
excludTax
);
int
contractAllDay
=
getDayRange
(
contractPart
[
0
],
contractPart
[
1
])
+
1
;
//合同总天数
...
...
@@ -533,6 +534,18 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
public
static
void
main
(
String
[]
args
)
{
Long
aa
=
new
BigDecimal
(
1000
*
100
/
1.06
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
longValue
();
Long
bb
=
new
BigDecimal
(
1000
/
1.06
)
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)
.
multiply
(
new
BigDecimal
(
100L
)).
longValue
();
System
.
out
.
println
(
aa
);
System
.
out
.
println
(
bb
);
}
public
static
void
main2
(
String
[]
args
)
{
DateTime
contractStart
=
new
DateTime
(
"2020-05-15"
);
DateTime
create
=
new
DateTime
(
"2020-06-15"
);
System
.
out
.
println
(
contractStart
.
monthOfYear
().
getDateTime
());
...
...
@@ -548,8 +561,6 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
{
new
DateTime
(),
new
DateTime
()},
{
new
DateTime
(),
new
DateTime
()}
};
System
.
out
.
println
(
times
[
1
][
0
].
toString
());
}
}
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