Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
ims-ci-test
Commits
2f1a1d0a
提交
2f1a1d0a
authored
8月 31, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Req(update)
上级
0b934411
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
25 行增加
和
2 行删除
+25
-2
RequirementsServiceImpl.java
...mmc/csf/release/service/impl/RequirementsServiceImpl.java
+25
-2
没有找到文件。
release-service/src/main/java/com/mmc/csf/release/service/impl/RequirementsServiceImpl.java
浏览文件 @
2f1a1d0a
...
@@ -995,6 +995,8 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -995,6 +995,8 @@ public class RequirementsServiceImpl implements RequirementsService {
BigDecimal
refundCashAmount
=
new
BigDecimal
(
0
);
BigDecimal
refundCashAmount
=
new
BigDecimal
(
0
);
BigDecimal
refundSalaryAmount
=
new
BigDecimal
(
0
);
BigDecimal
refundSalaryAmount
=
new
BigDecimal
(
0
);
BigDecimal
refundWeChat
=
new
BigDecimal
(
0
);
BigDecimal
refundWeChat
=
new
BigDecimal
(
0
);
//飞手获得的金额
BigDecimal
receiveSalaryAmount
=
orderAmount
.
multiply
(
new
BigDecimal
(
0.2
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
//微信支付金额大于需要退款金额
//微信支付金额大于需要退款金额
if
(
weChat
.
compareTo
(
residueOrderAmount
)
==
1
)
{
if
(
weChat
.
compareTo
(
residueOrderAmount
)
==
1
)
{
//用户退百分之七十的费用
//用户退百分之七十的费用
...
@@ -1022,6 +1024,7 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -1022,6 +1024,7 @@ public class RequirementsServiceImpl implements RequirementsService {
publisherWalletFlowVO
.
setSalaryAmount
(
residueAmount
);
publisherWalletFlowVO
.
setSalaryAmount
(
residueAmount
);
walletFlowVO
.
setPublisherWalletFlowVO
(
publisherWalletFlowVO
);
walletFlowVO
.
setPublisherWalletFlowVO
(
publisherWalletFlowVO
);
flyerCancel
(
walletFlowVO
,
request
.
getHeader
(
"token"
));
flyerCancel
(
walletFlowVO
,
request
.
getHeader
(
"token"
));
//退回的佣金大于0
}
else
if
(
residueAmount
.
compareTo
(
BigDecimal
.
ZERO
)
==
1
)
{
}
else
if
(
residueAmount
.
compareTo
(
BigDecimal
.
ZERO
)
==
1
)
{
publisherWalletFlowVO
.
setCashAmount
(
residueAmount
);
publisherWalletFlowVO
.
setCashAmount
(
residueAmount
);
publisherWalletFlowVO
.
setSalaryAmount
(
requirementsInfoDO
.
getSalaryAmount
());
publisherWalletFlowVO
.
setSalaryAmount
(
requirementsInfoDO
.
getSalaryAmount
());
...
@@ -1031,6 +1034,7 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -1031,6 +1034,7 @@ public class RequirementsServiceImpl implements RequirementsService {
walletFlowVO
.
setPublisherWalletFlowVO
(
publisherWalletFlowVO
);
walletFlowVO
.
setPublisherWalletFlowVO
(
publisherWalletFlowVO
);
//退回任务佣金
//退回任务佣金
flyerCancel
(
walletFlowVO
,
request
.
getHeader
(
"token"
));
flyerCancel
(
walletFlowVO
,
request
.
getHeader
(
"token"
));
}
}
BigDecimal
weChatAmount
=
requirementsInfoDO
.
getWeChat
();
BigDecimal
weChatAmount
=
requirementsInfoDO
.
getWeChat
();
long
longWeChat
=
weChatAmount
.
multiply
(
new
BigDecimal
(
100
)).
longValue
();
long
longWeChat
=
weChatAmount
.
multiply
(
new
BigDecimal
(
100
)).
longValue
();
...
@@ -1039,7 +1043,7 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -1039,7 +1043,7 @@ public class RequirementsServiceImpl implements RequirementsService {
applyRefundVO
.
setOutTradeNo
(
requirementsInfoDO
.
getWechatPayOrderNumber
());
applyRefundVO
.
setOutTradeNo
(
requirementsInfoDO
.
getWechatPayOrderNumber
());
applyRefund
(
applyRefundVO
,
request
.
getHeader
(
"token"
));
applyRefund
(
applyRefundVO
,
request
.
getHeader
(
"token"
));
}
}
BigDecimal
receiveSalaryAmount
=
orderAmount
.
multiply
(
new
BigDecimal
(
0.2
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
//平台抽取百分之十
//平台抽取百分之十
//发布者取消
//发布者取消
BigDecimal
earnings
=
orderAmount
.
multiply
(
new
BigDecimal
(
0.1
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
earnings
=
orderAmount
.
multiply
(
new
BigDecimal
(
0.1
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
...
@@ -1053,12 +1057,31 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -1053,12 +1057,31 @@ public class RequirementsServiceImpl implements RequirementsService {
if
(
serviceDO
.
getCashAmount
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
||
if
(
serviceDO
.
getCashAmount
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
||
serviceDO
.
getSalaryAmount
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
)
{
serviceDO
.
getSalaryAmount
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
)
{
System
.
out
.
println
(
receiveSalaryAmount
);
//优先扣除微信
BigDecimal
weChat1
=
requirementsInfoDO
.
getWeChat
();
//如果微信扣除的金额小于飞手获得的钱
if
(
weChat1
.
compareTo
(
receiveSalaryAmount
)
==
-
1
)
{
//还需要扣除多少
BigDecimal
subtract
=
receiveSalaryAmount
.
subtract
(
weChat1
);
if
(
subtract
.
compareTo
(
requirementsInfoDO
.
getSalaryAmount
())
==
1
)
{
publisherWalletFlowVO
.
setSalaryCashPledge
(
requirementsInfoDO
.
getSalaryAmount
().
negate
());
//
BigDecimal
subtract1
=
subtract
.
subtract
(
requirementsInfoDO
.
getSalaryAmount
());
if
(
subtract1
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
||
subtract1
.
compareTo
(
BigDecimal
.
ZERO
)
==
1
)
{
publisherWalletFlowVO
.
setYxjCashPledge
(
subtract1
.
negate
());
}
}
else
if
(
subtract
.
compareTo
(
requirementsInfoDO
.
getSalaryAmount
())
==
-
1
)
{
publisherWalletFlowVO
.
setSalaryCashPledge
(
subtract
.
negate
());
}
}
//飞手应该获得的金额
//飞手应该获得的金额
publisherWalletFlowVO
.
setUserAccountId
(
userAccountId
);
publisherWalletFlowVO
.
setUserAccountId
(
userAccountId
);
publisherWalletFlowVO
.
setOperateUserAccountId
(
userAccountId
);
publisherWalletFlowVO
.
setOperateUserAccountId
(
userAccountId
);
publisherWalletFlowVO
.
setModeOfPayment
(
300
);
publisherWalletFlowVO
.
setModeOfPayment
(
300
);
publisherWalletFlowVO
.
setPercentagePenaltyOfOrder
(
receiveSalaryAmount
.
negate
());
publisherWalletFlowVO
.
setPercentagePenaltyOfOrder
(
receiveSalaryAmount
.
negate
());
flyerWalletFlowVO
.
setCashAmount
(
serviceDO
.
getCashAmount
());
flyerWalletFlowVO
.
setCashAmount
(
serviceDO
.
getCashAmount
());
flyerWalletFlowVO
.
setSalaryAmount
(
serviceDO
.
getSalaryAmount
());
flyerWalletFlowVO
.
setSalaryAmount
(
serviceDO
.
getSalaryAmount
());
flyerWalletFlowVO
.
setUserAccountId
(
requirementsInfoDO
.
getPilotCertificationUserId
());
flyerWalletFlowVO
.
setUserAccountId
(
requirementsInfoDO
.
getPilotCertificationUserId
());
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论