Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
ims-ci-test
Commits
162720bb
提交
162720bb
authored
8月 31, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
RequirementsServiceImpl(update)
上级
02102d2a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
23 行增加
和
1 行删除
+23
-1
RequirementsServiceImpl.java
...mmc/csf/release/service/impl/RequirementsServiceImpl.java
+23
-1
没有找到文件。
release-service/src/main/java/com/mmc/csf/release/service/impl/RequirementsServiceImpl.java
浏览文件 @
162720bb
...
...
@@ -1328,7 +1328,7 @@ public class RequirementsServiceImpl implements RequirementsService {
PublisherWalletFlowVO
publisherWalletFlowVO
=
new
PublisherWalletFlowVO
();
IsNullConvertZeroUtil
.
checkIsNull
(
publisherWalletFlowVO
);
ApplyRefundVO
applyRefundVO
=
new
ApplyRefundVO
();
IsNullConvertZeroUtil
.
checkIsNull
(
requirementsInfoDO
);
RequirementsInfoDO
infoDO
=
new
RequirementsInfoDO
(
requirementsEditVO
);
if
(
requirementsInfoDO
==
null
)
{
...
...
@@ -1361,6 +1361,11 @@ public class RequirementsServiceImpl implements RequirementsService {
applyRefund
(
applyRefundVO
,
request
.
getHeader
(
"token"
));
}
WalletFlowVO
wo
=
new
WalletFlowVO
();
PublisherWalletFlowVO
pwf
=
new
PublisherWalletFlowVO
();
IsNullConvertZeroUtil
.
checkIsNull
(
pwf
);
//用户钱包信息接口
ResultBody
resultBody
=
getCurrentUserPayWalletInfo
(
request
);
GetOrderNumberDTO
orderNumberDTO
=
new
GetOrderNumberDTO
();
...
...
@@ -1387,6 +1392,7 @@ public class RequirementsServiceImpl implements RequirementsService {
}
}
tempTotalAmount
=
orderAmount
;
for
(
String
type
:
objects
)
{
switch
(
type
)
{
...
...
@@ -1395,10 +1401,12 @@ public class RequirementsServiceImpl implements RequirementsService {
if
(
cashAmt
.
compareTo
(
tempTotalAmount
)
==
1
||
cashAmt
.
compareTo
(
tempTotalAmount
)
==
0
)
{
amountDO
.
setCashAmount
(
tempTotalAmount
);
// walletFlowVO.setCashAmount(tempTotalAmount);
pwf
.
setCashAmount
(
tempTotalAmount
);
tempTotalAmount
=
BigDecimal
.
ZERO
;
}
else
{
tempTotalAmount
=
tempTotalAmount
.
subtract
(
cashAmt
);
amountDO
.
setCashAmount
(
cashAmt
);
pwf
.
setCashAmount
(
cashAmt
);
// walletFlowVO.setCashAmount(cashAmt);
}
}
...
...
@@ -1407,10 +1415,12 @@ public class RequirementsServiceImpl implements RequirementsService {
if
(!(
tempTotalAmount
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
))
{
if
(
salaryAmt
.
compareTo
(
tempTotalAmount
)
==
1
||
salaryAmt
.
compareTo
(
tempTotalAmount
)
==
0
)
{
amountDO
.
setSalaryAmount
(
tempTotalAmount
);
pwf
.
setSalaryAmount
(
tempTotalAmount
);
tempTotalAmount
=
BigDecimal
.
ZERO
;
}
else
{
tempTotalAmount
=
tempTotalAmount
.
subtract
(
salaryAmt
);
amountDO
.
setSalaryAmount
(
salaryAmt
);
pwf
.
setSalaryAmount
(
salaryAmt
);
}
}
...
...
@@ -1435,6 +1445,18 @@ public class RequirementsServiceImpl implements RequirementsService {
amountDO
.
setTotalAmount
(
add
);
BigDecimal
totalAmount
=
amountDO
.
getTotalAmount
();
requirementsDao
.
updateAmount
(
amountDO
);
if
(
pwf
.
getCashAmount
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
||
pwf
.
getSalaryAmount
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
)
{
pwf
.
setUserAccountId
(
requirementsEditVO
.
getUserAccountId
());
pwf
.
setOperateUserAccountId
(
requirementsEditVO
.
getUserAccountId
());
pwf
.
setModeOfPayment
(
100
);
pwf
.
setCashAmount
(
pwf
.
getCashAmount
().
negate
());
pwf
.
setSalaryAmount
(
pwf
.
getSalaryAmount
().
negate
());
wo
.
setPublisherWalletFlowVO
(
pwf
);
flyerCancel
(
wo
,
request
.
getHeader
(
"token"
));
}
return
ResultBody
.
success
();
}
else
{
//云享金和佣金扣除完成,但是还不足支付订单金额,并且没有选择微信支付,所以支付不合法
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论