| | |
| | | Integer carriageType = addMallGoodsDto.getCarriageType(); |
| | | if(1 == carriageType){ |
| | | if(ObjectUtil.isEmpty(addMallGoodsDto.getCarriageAmount()) |
| | | || BigDecimal.ZERO.compareTo(addMallGoodsDto.getCarriageAmount()) >= 0){ |
| | | || BigDecimal.ZERO.compareTo(addMallGoodsDto.getCarriageAmount()) > 0){ |
| | | return new FebsResponse().fail().message("固定邮费不能小于零"); |
| | | } |
| | | }else{ |
| | |
| | | |
| | | mallGoodsMapper.updateById(mallGoods); |
| | | |
| | | if( 1 == mallGoods.getCarriageType()){ |
| | | mallGoodsMapper.updateCarriageRuleId(mallGoods.getId()); |
| | | }else{ |
| | | mallGoodsMapper.updateCarriageAmount(mallGoods.getId()); |
| | | } |
| | | |
| | | mallGoodsImagesMapper.deleteByGoodsId(mallGoodsUpdateDto.getId()); |
| | | String thumbs = mallGoodsUpdateDto.getThumbs(); |
| | | if (StrUtil.isNotEmpty(thumbs)) { |