| | |
| | | order.setOrderStatusDescribe(OrderStatusEnum.ZERO.getValue()); |
| | | order.setUserId(SecurityUtils.getCurrentUserId()); |
| | | order.setUsername(SecurityUtils.getCurrentUsername()); |
| | | Store store = storeService.getMerchantStore(submit.getStoreId()); |
| | | Store store = storeService.getById(submit.getStoreId()); |
| | | order.setStoreId(submit.getStoreId()); |
| | | order.setStoreName(store.getStoreName()); |
| | | order.setStoreLogo(store.getLogoImageUrl()); |
| | |
| | | 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())) { |