| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.order.feignClient.OrderClient; |
| | | import com.ruoyi.order.feignClient.RemoteOrderGoodsClient; |
| | | import com.ruoyi.order.model.Order; |
| | | import com.ruoyi.other.mapper.GoodsEvaluateMapper; |
| | |
| | | private RemoteOrderGoodsClient remoteOrderGoodsClient; |
| | | @Resource |
| | | private TokenService tokenService; |
| | | @Resource |
| | | private OrderClient orderClient; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | } |
| | | } |
| | | if (CollectionUtil.isNotEmpty(evaluates)){ |
| | | Long orderId = goodsEvaluateVO.getEvaluates().get(0).getOrderId(); |
| | | Order data = orderClient.getOrderById(orderId).getData(); |
| | | Order order = new Order(); |
| | | order.setId(goodsEvaluateVO.getEvaluates().get(0).getOrderId()); |
| | | order.setId(data.getId()); |
| | | order.setOldOrderStatus(data.getOrderStatus()); |
| | | order.setOrderStatus(8); |
| | | R<Void> r = remoteOrderGoodsClient.updateOrderStatus(order); |
| | | if (R.isError(r)){ |