We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boolean execute = transactionTemplate.execute(e -> { updateById(storeOrder); if (storeOrder.getPayType().equals(Constants.PAY_TYPE_YUE)) { //新增日志 request.setOrderId(storeOrder.getId()); userBillService.saveRefundBill(request, user); // 更新用户金额 userService.operationNowMoney(user.getUid(), request.getAmount(), user.getNowMoney(), "add"); // 退款task redisUtil.lPush(Constants.ORDER_TASK_REDIS_KEY_AFTER_REFUND_BY_USER, storeOrder.getId()); } if (storeOrder.getPayType().equals(Constants.PAY_TYPE_WE_CHAT) && request.getAmount().compareTo(BigDecimal.ZERO) == 0) { //新增日志 userBillService.saveRefundBill(request, user); // 退款task redisUtil.lPush(Constants.ORDER_TASK_REDIS_KEY_AFTER_REFUND_BY_USER, storeOrder.getId()); } return Boolean.TRUE; }); if (!execute) { storeOrderStatusService.saveRefund(storeOrder.getId(), request.getAmount(), "失败"); throw new CrmebException("订单更新失败"); } 比如这里,如果execute方法里面执行抛出了异常,这里也没有捕获,整个方法直接就被返回了 下面整个记录报错的部分根本就没机会进去 if (!execute) { storeOrderStatusService.saveRefund(storeOrder.getId(), request.getAmount(), "失败"); throw new CrmebException("订单更新失败"); }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: