Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
cfdb88f0
Commit
cfdb88f0
authored
Oct 28, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
平台佣金改为3%
parent
ee7f9f5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributorProfitServiceImpl.java
...ch/wx/impl/distribution/DistributorProfitServiceImpl.java
+4
-4
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributorProfitServiceImpl.java
View file @
cfdb88f0
...
...
@@ -84,18 +84,18 @@ public class DistributorProfitServiceImpl implements DistributorProfitService {
public
Result
getExpectAmount
(
SupplierItemRequestDto
supplierItemRequestDto
)
{
try
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"introduceRebate"
,
"
3
%"
);
double
channelServiceRebate
=
0.
15
;
map
.
put
(
"introduceRebate"
,
"
2
%"
);
double
channelServiceRebate
=
0.
03
;
CollectorWhiteList
collectorWhiteList
=
collectorWhiteListDao
.
findById
(
supplierItemRequestDto
.
getUserId
());
if
(
collectorWhiteList
!=
null
)
{
channelServiceRebate
=
PriceUtil
.
convertToDivide
(
collectorWhiteList
.
getChannelCostRebate
()).
doubleValue
();
map
.
put
(
"channelServiceRebate"
,
collectorWhiteList
.
getChannelCostRebate
().
intValue
()
+
"%"
);
}
else
{
map
.
put
(
"channelServiceRebate"
,
"
15
%"
);
map
.
put
(
"channelServiceRebate"
,
"
3
%"
);
}
Long
itemPrice
=
PriceUtil
.
convertPriceFromStr
(
supplierItemRequestDto
.
getDistributionPrice
());
long
channelServiceCost
=
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
itemPrice
.
doubleValue
()
*
channelServiceRebate
));
long
introduceCost
=
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
itemPrice
.
doubleValue
()
*
0.0
3
));
long
introduceCost
=
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
itemPrice
.
doubleValue
()
*
0.0
2
));
long
profit
=
itemPrice
-
channelServiceCost
-
introduceCost
;
map
.
put
(
"channelServiceCost"
,
PriceUtil
.
convertPriceFenToYuan
(
channelServiceCost
));
map
.
put
(
"introduceCost"
,
PriceUtil
.
convertPriceFenToYuan
(
introduceCost
));
...
...
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