| | |
| | | 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()) |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | 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)) { |