| | |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.core.vo.UserDto; |
| | | import com.ruoyi.common.security.annotation.RequiresPermissions; |
| | | import com.ruoyi.order.entity.ChangeDispatch; |
| | | import com.ruoyi.order.entity.Order; |
| | | import com.ruoyi.order.entity.Withdraw; |
| | | import com.ruoyi.order.entity.WithdrawDetail; |
| | | import com.ruoyi.order.entity.*; |
| | | import com.ruoyi.order.request.ChangeDispatchRequest; |
| | | import com.ruoyi.order.service.ChangeDispatchService; |
| | | import com.ruoyi.order.service.OrderService; |
| | | import com.ruoyi.order.service.WithdrawDetailService; |
| | | import com.ruoyi.order.service.WithdrawService; |
| | | import com.ruoyi.order.service.*; |
| | | import com.ruoyi.order.vx.HttpUtil; |
| | | import com.ruoyi.system.api.RemoteUserService; |
| | | import com.ruoyi.user.api.feignClient.UserClient; |
| | |
| | | |
| | | @Autowired |
| | | private WithdrawDetailService withdrawDetailService; |
| | | @Autowired |
| | | private WithdrawRecordService withdrawRecordService; |
| | | @Resource |
| | | private OrderService orderService; |
| | | @Autowired |
| | |
| | | withdrawDetail.setStatus("SUCCESS"); |
| | | withdrawDetailService.updateById(withdrawDetail); |
| | | orderService.updateById(order); |
| | | WithdrawRecord withdrawRecord = new WithdrawRecord(); |
| | | withdrawRecord.setWithdrawId(withdraw.getId()); |
| | | withdrawRecord.setOrderId(withdraw.getOrderId()); |
| | | withdrawRecord.setUserId(withdraw.getUserId()); |
| | | withdrawRecord.setWithdrawType(4); |
| | | withdrawRecord.setCreateTime(new Date()); |
| | | withdrawRecord.setAuditStatus(1); |
| | | |
| | | |
| | | }else if ("CANCELLED".equals(state)||"CANCELING".equals(state)||"FAIL".equals(state)){ |
| | | // 校验提现 |
| | | // List<Withdraw> list = withdrawService.lambdaQuery().eq(Withdraw::getUserId, order.getUserId()) |