|
@@ -1129,7 +1129,11 @@ public class ProductOrderService {
|
|
|
if (!isBuyer && !isVendor) {
|
|
if (!isBuyer && !isVendor) {
|
|
|
return Result.error("无权查看");
|
|
return Result.error("无权查看");
|
|
|
}
|
|
}
|
|
|
- return Result.success(ProductOrderDTO.from(order));
|
|
|
|
|
|
|
+ ProductOrderDTO dto = ProductOrderDTO.from(order);
|
|
|
|
|
+ if (product != null) {
|
|
|
|
|
+ dto.setVendorId(product.getVendorId());
|
|
|
|
|
+ }
|
|
|
|
|
+ return Result.success(dto);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Result<List<ProductOrderDTO>> vendorOrders(Long vendorId, String status) {
|
|
public Result<List<ProductOrderDTO>> vendorOrders(Long vendorId, String status) {
|