xiaoyong931011
2023-07-21 503da018813cb8f2e01ff27016b7b0f056b000ad
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)) {