p-honggang.li
2025-09-03 703ca1c4ac199d13f0345bb913c320845f77f2ee
src/main/java/com/webmanage/service/impl/OrderInfoServiceImpl.java
@@ -464,6 +464,7 @@
        orderInfo.setPaymentType(createOrderDTO.getPaymentType());
        orderInfo.setPaymentStatus("未支付");
        orderInfo.setBuyerRemarks(createOrderDTO.getBuyerRemarks());
        orderInfo.setIsEvaluate("未评价");
        orderInfo.setCreatedAt(LocalDateTime.now());
        orderInfo.setUpdatedAt(LocalDateTime.now());
@@ -1199,4 +1200,17 @@
        Long count = this.baseMapper.selectCount(wrapper);
        return count != null && count > 0;
    }
    @Override
    public boolean updateOrderIsEvaluate(String orderId) {
        if (!StringUtils.hasText(orderId)) {
            throw new BusinessException("订单ID不能为空");
        }
        OrderInfo orderInfo = this.getById(orderId);
        if (orderInfo == null) {
            throw new BusinessException("订单不存在");
        }
        orderInfo.setIsEvaluate("已评价");
        return this.updateById(orderInfo);
    }
}