| | |
| | | import cc.mrbird.febs.mall.vo.OrderListVo; |
| | | import cc.mrbird.febs.mall.vo.OrderRefundVo; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.date.DateUnit; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.crypto.SecureUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | OrderRefundVo orderRefundVo = MallOrderRefundConversion.INSTANCE.entityToVo(orderRefund); |
| | | orderDetailVo.setOrderRefund(orderRefundVo); |
| | | } |
| | | |
| | | if (OrderStatusEnum.WAIT_PAY.getValue() == orderInfo.getStatus()) { |
| | | Date endTime = DateUtil.offsetMinute(orderInfo.getOrderTime(), 15); |
| | | |
| | | long remainTime = DateUtil.between(new Date(), endTime, DateUnit.SECOND, false); |
| | | orderDetailVo.setRemainTime(remainTime); |
| | | } |
| | | return orderDetailVo; |
| | | } |
| | | |