|
@@ -563,9 +563,9 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
if (Validator.isEmpty(goods)) {
|
|
|
throw new CustomException("商品不存在", 510);
|
|
|
}
|
|
|
- if (goods.getGoodsStatus() != 1) {
|
|
|
- throw new CustomException(goods.getGoodsName()+"商品已下架,请重新选择商品下单", 510);
|
|
|
- }
|
|
|
+// if (goods.getGoodsStatus() != 1) {
|
|
|
+// throw new CustomException(goods.getGoodsName()+"商品已下架,请重新选择商品下单", 510);
|
|
|
+// }
|
|
|
OrderGoods orderGoods = BeanUtil.toBean(g, OrderGoods.class);
|
|
|
orderGoods.setOrderSn(out_trade_no);
|
|
|
if (g.getGoodsInputData() != null) {
|