| | |
| | | import cn.lili.common.utils.BeanUtil; |
| | | import cn.lili.common.utils.CurrencyUtil; |
| | | import cn.lili.common.utils.SnowFlake; |
| | | import cn.lili.common.utils.StringUtils; |
| | | import cn.lili.modules.order.aftersale.aop.AfterSaleLogPoint; |
| | | import cn.lili.modules.order.aftersale.entity.dos.AfterSale; |
| | | import cn.lili.modules.order.aftersale.entity.dto.AfterSaleDTO; |
| | |
| | | afterSaleApplyVO.setReturnGoods(false); |
| | | } else { |
| | | afterSaleApplyVO.setReturnMoney(true); |
| | | |
| | | if(StringUtils.isNotBlank(order.getOrderStatus()) && DeliverStatusEnum.UNDELIVERED.name().equals(order.getOrderStatus())){ |
| | | afterSaleApplyVO.setReturnGoods(false); |
| | | }else { |
| | | afterSaleApplyVO.setReturnGoods(true); |
| | | } |
| | | |
| | | } |
| | | |
| | | afterSaleApplyVO.setAccountType(order.getPaymentMethod()); |
| | | afterSaleApplyVO.setApplyRefundPrice(CurrencyUtil.div(orderItem.getFlowPrice(), orderItem.getNum())); |
| | | //如果已经退货或者退款过,则返回最大售后数量重新设置 |