xin
2025-07-10 f30342f8762f598da78ee9be80779085347af067
订单商品
2 files modified
4 ■■■■ changed files
oying-system/src/main/java/com/oying/modules/sh/domain/request/ProductOrder.java 2 ●●● patch | view | raw | blame | history
oying-system/src/main/java/com/oying/modules/sh/service/impl/OrderServiceImpl.java 2 ●●● patch | view | raw | blame | history
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;
}
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())) {