Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
5028267b
Commit
5028267b
authored
Sep 14, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
麦咖啡推送数据测试
parent
fa10bf8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
+2
-8
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
View file @
5028267b
...
...
@@ -2721,7 +2721,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
orderItem
.
setRealAmount
(
orderItemResp
.
getSalePrice
().
multiply
(
new
BigDecimal
(
orderItemResp
.
getProductQuantity
())).
intValue
()+
""
);
String
taxId
=
"10"
;
orderItem
.
setTaxId
(
taxId
);
Integer
taxRate
=
Double
.
valueOf
(
orderProductAddInfoDto
.
getTax
()*
100
).
intValue
()
;
Integer
taxRate
=
6
;
orderItem
.
setTaxRate
(
String
.
valueOf
(
taxRate
));
orderItem
.
setTaxAmount
(
String
.
valueOf
(
new
BigDecimal
(
taxRate
).
multiply
(
orderItemResp
.
getSalePrice
())
.
multiply
(
new
BigDecimal
(
orderItemResp
.
getProductQuantity
())).
intValue
()/
100
));
...
...
@@ -2733,7 +2733,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
taxItem
.
setTaxAmount
(
new
BigDecimal
(
taxRate
).
multiply
(
orderItemResp
.
getSalePrice
())
.
multiply
(
new
BigDecimal
(
orderItemResp
.
getProductQuantity
())).
intValue
()/
100
);
taxItem
.
setTaxId
(
taxId
);
taxItem
.
setTaxRate
(
getTaxRateByTaxId
(
taxId
).
toString
()
);
taxItem
.
setTaxRate
(
taxRate
+
""
);
taxAmountDetail
.
setTaxItems
(
Arrays
.
asList
(
taxItem
));
orderItem
.
setTaxAmountDetail
(
Arrays
.
asList
(
taxAmountDetail
));
if
(
StringUtils
.
isBlank
(
orderItemResp
.
getParentProductId
())
&&
"0"
.
equals
(
orderItemResp
.
getParentProductId
()))
{
...
...
@@ -2876,12 +2876,6 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
}
}
private
Integer
getTaxRateByTaxId
(
String
taxId
)
{
switch
(
taxId
)
{
default
:
return
6
;
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
DateUtil
.
convert2String
(
new
Date
(
1631519403066
l
),
"yyyy-MM-dd HH:mm:ss"
));
}
...
...
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