|
|
@@ -350,6 +350,9 @@ public class ProductOrderInfoServiceImpl extends ServiceImpl<ProductOrderInfoMap
|
|
|
throw new ServiceException("订单不存在");
|
|
|
}
|
|
|
detail.setOrderStatusName(ProductOrderStatusEnum.getDescByCode(detail.getOrderStatus()));
|
|
|
+ //根据商品ID查询商品的付款类型
|
|
|
+ Product product = productMapper.selectById(detail.getProductId());
|
|
|
+ detail.setPaymentType(product.getPaymentType());
|
|
|
// 计算剩余秒数
|
|
|
long remainSeconds = ChronoUnit.SECONDS.between(LocalDateTime.now(), detail.getPayExpireTime());
|
|
|
detail.setRemainSeconds(remainSeconds);
|