提交 00959e00 作者: 张小凤

RequirementsServiceImpl(update)

上级 803bacf9
......@@ -1387,6 +1387,16 @@ public class RequirementsServiceImpl implements RequirementsService {
if (serviceFlowId != 1) {
return ResultBody.error("只有未抢单的信息才能被修改");
}
//用户钱包信息接口
ResultBody resultBody = getCurrentUserPayWalletInfo(request);
GetOrderNumberDTO orderNumberDTO = new GetOrderNumberDTO();
orderNumberDTO.setUserAccountId(requirementsEditVO.getUserAccountId());
PayWalletDTO payWalletDTO = (PayWalletDTO) resultBody.getResult();
//剩余后台云享金
BigDecimal cashAmt = payWalletDTO.getCashAmt();
//剩余佣金
BigDecimal salaryAmt = payWalletDTO.getSalaryAmt();
BigDecimal orderAmount = requirementsEditVO.getOrderAmount();
//先退款
if (requirementsInfoDO.getCashAmount().compareTo(BigDecimal.ZERO) != 0 ||
requirementsInfoDO.getSalaryAmount().compareTo(BigDecimal.ZERO) != 0) {
......@@ -1410,21 +1420,10 @@ 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();
orderNumberDTO.setUserAccountId(requirementsEditVO.getUserAccountId());
PayWalletDTO payWalletDTO = (PayWalletDTO) resultBody.getResult();
//剩余后台云享金
BigDecimal cashAmt = payWalletDTO.getCashAmt();
//剩余佣金
BigDecimal salaryAmt = payWalletDTO.getSalaryAmt();
BigDecimal orderAmount = requirementsEditVO.getOrderAmount();
String paymentType = requirementsEditVO.getPaymentType();
String[] split = paymentType.split(",");
Set<String> collect = Arrays.asList(split).stream().collect(Collectors.toSet());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论