提交 6d9436e4 作者: 张小凤

RequirementsServiceImpl(update)

上级 66faa9aa
...@@ -716,7 +716,6 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -716,7 +716,6 @@ public class RequirementsServiceImpl implements RequirementsService {
@Override @Override
public ResultBody droneFlyerCancel(Integer requirementsInfoId, Integer userAccountId, HttpServletRequest request) { public ResultBody droneFlyerCancel(Integer requirementsInfoId, Integer userAccountId, HttpServletRequest request) {
RequirementsInfoDO infoDO = requirementsDao.publisherCancelFlyer(requirementsInfoId); RequirementsInfoDO infoDO = requirementsDao.publisherCancelFlyer(requirementsInfoId);
RequirementsServiceDO requirementsServiceDO = requirementsDao.droneFlyerCancel(requirementsInfoId, userAccountId); RequirementsServiceDO requirementsServiceDO = requirementsDao.droneFlyerCancel(requirementsInfoId, userAccountId);
IsNullConvertZeroUtil.checkIsNull(requirementsServiceDO); IsNullConvertZeroUtil.checkIsNull(requirementsServiceDO);
...@@ -751,15 +750,15 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -751,15 +750,15 @@ public class RequirementsServiceImpl implements RequirementsService {
BigDecimal subtract = preemptTotalAmount.subtract(requirementsServiceDO.getWeChat()); BigDecimal subtract = preemptTotalAmount.subtract(requirementsServiceDO.getWeChat());
if (requirementsServiceDO.getSalaryAmount().compareTo(subtract) == -1) { if (requirementsServiceDO.getSalaryAmount().compareTo(subtract) == -1) {
BigDecimal sub2 = subtract.subtract(requirementsServiceDO.getSalaryAmount()); BigDecimal sub2 = subtract.subtract(requirementsServiceDO.getSalaryAmount());
flyerWalletFlowVO.setSalaryCashPledge(requirementsServiceDO.getSalaryAmount()); flyerWalletFlowVO.setSalaryCashPledge(requirementsServiceDO.getSalaryAmount().negate());
if (sub2.compareTo(requirementsServiceDO.getCashAmount()) == 0 || if (sub2.compareTo(requirementsServiceDO.getCashAmount()) == 0 ||
sub2.compareTo(requirementsServiceDO.getCashAmount()) == -1) { sub2.compareTo(requirementsServiceDO.getCashAmount()) == -1) {
//云享金扣除违约多少 //云享金扣除违约多少
flyerWalletFlowVO.setYxjCashPledge(sub2); flyerWalletFlowVO.setYxjCashPledge(sub2.negate());
} }
} else if (requirementsServiceDO.getSalaryAmount().compareTo(subtract) == 1 || } else if (requirementsServiceDO.getSalaryAmount().compareTo(subtract) == 1 ||
requirementsServiceDO.getSalaryAmount().compareTo(subtract) == 0) { requirementsServiceDO.getSalaryAmount().compareTo(subtract) == 0) {
flyerWalletFlowVO.setSalaryCashPledge(subtract); flyerWalletFlowVO.setSalaryCashPledge(subtract.negate());
} }
} }
walletFlowVO.setFlyerWalletFlowVO(flyerWalletFlowVO); walletFlowVO.setFlyerWalletFlowVO(flyerWalletFlowVO);
...@@ -769,6 +768,12 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -769,6 +768,12 @@ public class RequirementsServiceImpl implements RequirementsService {
publisherWalletFlowVO.setOperateUserAccountId(userAccountId); publisherWalletFlowVO.setOperateUserAccountId(userAccountId);
publisherWalletFlowVO.setSalaryAmount(infoDO.getSalaryAmount()); publisherWalletFlowVO.setSalaryAmount(infoDO.getSalaryAmount());
publisherWalletFlowVO.setCashAmount(infoDO.getCashAmount()); publisherWalletFlowVO.setCashAmount(infoDO.getCashAmount());
//退云享金和佣金
/* if (infoDO.getOrderLevel().equals("RUSH_ORDER")) {
publisherWalletFlowVO.setUrgentSalaryAmount();
publisherWalletFlowVO.setUrgentSalaryAmount();
}*/
walletFlowVO.setPublisherWalletFlowVO(publisherWalletFlowVO); walletFlowVO.setPublisherWalletFlowVO(publisherWalletFlowVO);
//给发布者微信退钱 //给发布者微信退钱
...@@ -782,7 +787,6 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -782,7 +787,6 @@ public class RequirementsServiceImpl implements RequirementsService {
} }
IsNullConvertZeroUtil.checkIsNull(infoDO); IsNullConvertZeroUtil.checkIsNull(infoDO);
//任务佣金 //任务佣金
requirementsServiceDO.setPercentagePenaltyOfOrder(percentagePenaltyOfOrder); requirementsServiceDO.setPercentagePenaltyOfOrder(percentagePenaltyOfOrder);
//飞手单方面取消将20之二十退回到发布者佣金里面 //飞手单方面取消将20之二十退回到发布者佣金里面
...@@ -1098,7 +1102,8 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -1098,7 +1102,8 @@ 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 ||
serviceDO.getWeChat().compareTo(BigDecimal.ZERO) != 0) {
System.out.println(freeze); System.out.println(freeze);
//优先扣除微信 //优先扣除微信
BigDecimal weChat1 = requirementsInfoDO.getWeChat(); BigDecimal weChat1 = requirementsInfoDO.getWeChat();
...@@ -1118,7 +1123,6 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -1118,7 +1123,6 @@ public class RequirementsServiceImpl implements RequirementsService {
} }
} }
//飞手应该获得的金额 //飞手应该获得的金额
publisherWalletFlowVO.setUserAccountId(userAccountId); publisherWalletFlowVO.setUserAccountId(userAccountId);
publisherWalletFlowVO.setOperateUserAccountId(userAccountId); publisherWalletFlowVO.setOperateUserAccountId(userAccountId);
...@@ -1131,8 +1135,11 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -1131,8 +1135,11 @@ public class RequirementsServiceImpl implements RequirementsService {
flyerWalletFlowVO.setModeOfPayment(300); flyerWalletFlowVO.setModeOfPayment(300);
walletFlowVO.setPublisherWalletFlowVO(publisherWalletFlowVO); walletFlowVO.setPublisherWalletFlowVO(publisherWalletFlowVO);
walletFlowVO.setFlyerWalletFlowVO(flyerWalletFlowVO); walletFlowVO.setFlyerWalletFlowVO(flyerWalletFlowVO);
String s = String.valueOf(walletFlowVO);
log.info(s);
flyerCancel(walletFlowVO, request.getHeader("token")); flyerCancel(walletFlowVO, request.getHeader("token"));
} }
//飞手全额退款
if (serviceDO.getWechatPayOrderNumber() != null) { if (serviceDO.getWechatPayOrderNumber() != null) {
ApplyRefundVO arv = new ApplyRefundVO(); ApplyRefundVO arv = new ApplyRefundVO();
arv.setReason("全额退款"); arv.setReason("全额退款");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论