| | |
| | | orderVo.setComShopFlowerEvaluateVO(comShopFlowerEvaluateVO); |
| | | } |
| | | } |
| | | |
| | | //判断是否可以退款 订单是否已超过15天 是否已有退款订单 |
| | | int count = comShopFlowerRefundOrderDAO.selectCountRefundNowByOrderId(orderVo.getOrderId()); |
| | | if (count > 0){ |
| | | orderVo.setRefundable(2); |
| | | }else { |
| | | if (null == orderVo.getReceivingTime()){ |
| | | orderVo.setRefundable(2); |
| | | }else { |
| | | //收货时间往前推15天和当前时间做比较 |
| | | Date date = DateUtils.addDay(orderVo.getReceivingTime(), 15); |
| | | if(date.before(new Date())){ |
| | | orderVo.setRefundable(2); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | }); |
| | | } |
| | | return R.ok(orderPageVOIPage); |
| | |
| | | //查询自提点信息 |
| | | ConvenientElevatingPointDO convenientElevatingPointDO = convenientElevatingPointDAO.selectOne(new LambdaQueryWrapper<ConvenientElevatingPointDO>().eq(ConvenientElevatingPointDO::getWechatAccount, phone)); |
| | | if (isNull(convenientElevatingPointDO)) { |
| | | return R.fail("自提点不存在"); |
| | | return R.ok(); |
| | | } |
| | | Long pointDOId = convenientElevatingPointDO.getId(); |
| | | shopOrderDO = this.baseMapper.selectOne(new LambdaQueryWrapper<ComShopFlowerOrderDO>().eq(ComShopFlowerOrderDO::getId, orderId).eq(ComShopFlowerOrderDO::getPointId, pointDOId)); |