| | |
| | | return; |
| | | } |
| | | |
| | | if (CollUtil.isEmpty(mallVipBenefits.getDetails())) { |
| | | throw new FebsException("权益明细不能为空"); |
| | | } |
| | | // if (CollUtil.isEmpty(mallVipBenefits.getDetails())) { |
| | | // throw new FebsException("权益明细不能为空"); |
| | | // } |
| | | |
| | | this.baseMapper.insert(mallVipBenefits); |
| | | |
| | | mallVipBenefits.getDetails().forEach(item -> { |
| | | item.setBenefitsId(mallVipBenefits.getId()); |
| | | }); |
| | | if (CollUtil.isNotEmpty(mallVipBenefits.getDetails())) { |
| | | mallVipBenefits.getDetails().forEach(item -> { |
| | | item.setBenefitsId(mallVipBenefits.getId()); |
| | | }); |
| | | } |
| | | this.mallVipBenefitsDetailsService.saveBatch(mallVipBenefits.getDetails()); |
| | | } |
| | | |