From 503da018813cb8f2e01ff27016b7b0f056b000ad Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 21 Jul 2023 15:53:20 +0800 Subject: [PATCH] 订单支付后生成对应的课程单 --- src/main/java/cc/mrbird/febs/mall/service/impl/AdminMallGoodsService.java | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/AdminMallGoodsService.java b/src/main/java/cc/mrbird/febs/mall/service/impl/AdminMallGoodsService.java index c65d6f8..e80ebd8 100644 --- a/src/main/java/cc/mrbird/febs/mall/service/impl/AdminMallGoodsService.java +++ b/src/main/java/cc/mrbird/febs/mall/service/impl/AdminMallGoodsService.java @@ -83,6 +83,13 @@ } } + if(addMallGoodsDto.getIsNormal() == 5){ + if(ObjectUtil.isEmpty(addMallGoodsDto.getHouseAddress()) + || ObjectUtil.isEmpty(addMallGoodsDto.getHouseName())){ + return new FebsResponse().fail().message("请填写酒店信息"); + } + } + // 付费商品 if (addMallGoodsDto.getGoodsType() != 2) { @@ -345,6 +352,13 @@ } } + if(mallGoodsUpdateDto.getIsNormal() == 5){ + if(ObjectUtil.isEmpty(mallGoodsUpdateDto.getHouseAddress()) + || ObjectUtil.isEmpty(mallGoodsUpdateDto.getHouseName())){ + return new FebsResponse().fail().message("请填写酒店信息"); + } + } + if (mallGoodsUpdateDto.getGoodsType() != 2) { Long categoryId = mallGoodsUpdateDto.getCategoryId(); if (ObjectUtil.isEmpty(categoryId)) { -- Gitblit v1.9.1