| | |
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public int deleteBatchByPrimaryKey(List<Long> list) throws SwiperPictureException {
|
| | |
|
| | | List<SwiperPicture> listSwiper = swiperPictureMapper.queryByListPrimaryKey(list);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (listSwiper != null)
|
| | | for (SwiperPicture picture : listSwiper) {
|
| | | List<AdActivityVersionControl> versionList = adActivityVersionControlService
|
| | | .listByTypeAndSourceId(AdActivityType.banner, picture.getId());
|
| | | if (versionList != null)
|
| | | for (AdActivityVersionControl control : versionList)
|
| | | adActivityVersionControlService.deleteByPrimaryKey(control.getId());
|
| | | }
|
| | | return swiperPictureMapper.deleteBatchByPrimaryKey(list);
|
| | | }
|
| | |
|
| | |
| | | public List<SwiperPicture> getByBannerCardAndVersion(String card, String platform, int version) {
|
| | | List<SwiperPicture> list = swiperPictureMapper.getByBannerCard(card);
|
| | | filterSwipePicture(list, platform, version);
|
| | | for (SwiperPicture picture : list) {
|
| | | if (picture.isJumpNeedLogin() && picture.getJumpDetail() != null) {
|
| | | picture.getJumpDetail().setNeedLogin(true);
|
| | | }
|
| | | }
|
| | |
|
| | | return list;
|
| | | }
|
| | |
|