提交 98989c95 作者: xiaowang

充值钱包操作bug修复

上级 7c2fe43f
......@@ -198,25 +198,25 @@ public class PayWalletServiceImpl implements PayWalletService {
log.error("飞手有责取消订单,飞手用户钱包更新失败,飞手用户id是:{},接单方传入参数是:{}", flyerWalletFlowVO.getUserAccountId(), flyerWalletFlowVO);
return ResultBody.error("钱包操作错误");
}
PayLogDO flyerPayLogDO = buildPayLogDO(null, flyerWalletFlowVO);
flyerPayLogDO.setCashAmtPaid(flyerWalletFlowVO.getYxjCashPledge());
flyerPayLogDO.setSalaryAmtPaid(flyerWalletFlowVO.getSalaryAmount());
// 插入接单者流水记录表
payWalletDao.insertPayLogDO(flyerPayLogDO);
// PayLogDO flyerPayLogDO = buildPayLogDO(null, flyerWalletFlowVO);
// flyerPayLogDO.setCashAmtPaid(flyerWalletFlowVO.getYxjCashPledge());
// flyerPayLogDO.setSalaryAmtPaid(flyerWalletFlowVO.getSalaryAmount());
// // 插入接单者流水记录表
// payWalletDao.insertPayLogDO(flyerPayLogDO);
// 飞手钱包更新信息
PayWalletDO publishUpdatePayWallet = new PayWalletDO();
// 断言此处必定不为空
assert publisherWalletFlowVO != null;
publishUpdatePayWallet.setUserAccountId(flyerWalletFlowVO.getUserAccountId());
publishUpdatePayWallet.setPid(flyerWallet.getPid());
publishUpdatePayWallet.setUserAccountId(publisherWalletFlowVO.getUserAccountId());
publishUpdatePayWallet.setPid(publishWallet.getPid());
publishUpdatePayWallet.setSalaryAmt(publishWallet.getSalaryAmt().add(flyerWalletFlowVO.getPercentagePenaltyOfOrder()));
int publishUpdateCount = payWalletDao.updatePayWallet(flyerUpdatePayWallet);
int publishUpdateCount = payWalletDao.updatePayWallet(publishUpdatePayWallet);
if (publishUpdateCount > 0) {
PayLogDO publishPayLogDO = buildPayLogDO(publisherWalletFlowVO, flyerWalletFlowVO);
PayLogDO publishPayLogDO = buildPayLogDO(publisherWalletFlowVO, null);
publishPayLogDO.setCashAmtPaid(flyerWalletFlowVO.getPercentagePenaltyOfOrder());
publishPayLogDO.setOperateUser(flyerWalletFlowVO.getOperateUserAccountId());
// 插入流水记录表
payWalletDao.insertPayLogDO(flyerPayLogDO);
payWalletDao.insertPayLogDO(publishPayLogDO);
return ResultBody.success();
} else {
log.error("飞手有责取消订单,发布者用户钱包更新失败,发布者用户id是:{},发布方传入参数是:{},接单方方违约金是:{}", publisherWalletFlowVO.getUserAccountId(), publisherWalletFlowVO, flyerWalletFlowVO.getPercentagePenaltyOfOrder());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论