From f30342f8762f598da78ee9be80779085347af067 Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Thu, 10 Jul 2025 15:51:32 +0800
Subject: [PATCH] 订单商品

---
 oying-system/src/main/java/com/oying/modules/sh/service/impl/OrderServiceImpl.java |    2 +-
 oying-system/src/main/java/com/oying/modules/sh/domain/request/ProductOrder.java   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/sh/domain/request/ProductOrder.java b/oying-system/src/main/java/com/oying/modules/sh/domain/request/ProductOrder.java
index 963ce17..bb53ef8 100644
--- a/oying-system/src/main/java/com/oying/modules/sh/domain/request/ProductOrder.java
+++ b/oying-system/src/main/java/com/oying/modules/sh/domain/request/ProductOrder.java
@@ -14,7 +14,7 @@
 public class ProductOrder {
 
     @ApiModelProperty(value = "商品ID")
-    private String productId;
+    private Long productId;
     @ApiModelProperty(value = "数量")
     private Integer count;
 }
diff --git a/oying-system/src/main/java/com/oying/modules/sh/service/impl/OrderServiceImpl.java b/oying-system/src/main/java/com/oying/modules/sh/service/impl/OrderServiceImpl.java
index c185dc3..7f31fb6 100644
--- a/oying-system/src/main/java/com/oying/modules/sh/service/impl/OrderServiceImpl.java
+++ b/oying-system/src/main/java/com/oying/modules/sh/service/impl/OrderServiceImpl.java
@@ -165,7 +165,7 @@
             if (product == null) {
                 throw new BadRequestException("商品不存在");
             }
-            if (product.getStoreId().equals(criteria.getStoreId())) {
+            if (!product.getStoreId().equals(criteria.getStoreId())) {
                 throw new BadRequestException("不支持跨门店下单");
             }
             if (!product.getStatus().equals(ProductStatusEnum.AVAILABLE.getValue())) {

--
Gitblit v1.9.3