Administrator
2025-05-22 9bb4c9aeeb6165c08e6be165640f177f2c193627
src/main/java/cc/mrbird/febs/mall/service/impl/AdminMallGoodsService.java
@@ -73,6 +73,12 @@
            return new FebsResponse().fail().message("商品编号不能重复");
        }
        Integer carriageType = addMallGoodsDto.getCarriageType();
        if (addMallGoodsDto.getIsNormal() == 3) {
            String storeAppId = addMallGoodsDto.getStoreAppId();
            if (ObjectUtil.isEmpty(storeAppId)) {
                return new FebsResponse().fail().message("微信小店APP_ID不能为空");
            }
        }
        if (addMallGoodsDto.getGoodsType() == 1) {
            if (1 == carriageType) {
                if (ObjectUtil.isEmpty(addMallGoodsDto.getCarriageAmount())
@@ -370,6 +376,14 @@
            }
        }
        if (mallGoodsUpdateDto.getIsNormal() == 3) {
            String storeAppId = mallGoodsUpdateDto.getStoreAppId();
            if (ObjectUtil.isEmpty(storeAppId)) {
                return new FebsResponse().fail().message("微信小店APP_ID不能为空");
            }
        }
        if (mallGoodsUpdateDto.getGoodsType() != 2) {
            Long categoryId = mallGoodsUpdateDto.getCategoryId();
            if (ObjectUtil.isEmpty(categoryId)) {