| | |
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.Date;
|
| | | import java.util.HashSet;
|
| | | import java.util.List;
|
| | | import java.util.Set;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Long> filterSourceIdByVersion(List<Long> sourceIdList, AdActivityType type, List<Long> versionIdList) {
|
| | | public Set<Long> filterSourceIdByVersion(List<Long> sourceIdList, AdActivityType type, List<Long> versionIdList) {
|
| | | if (sourceIdList == null || sourceIdList.size() == 0)
|
| | | return null;
|
| | |
|
| | |
| | |
|
| | | List<AdActivityVersionControl> list = adActivityVersionControlMapper.listByVersionAndSourceId(sourceIdList,
|
| | | type, versionIdList);
|
| | | List<Long> resultList = new ArrayList<>();
|
| | | Set<Long> resultList = new HashSet<>();
|
| | | if (list != null)
|
| | | for (AdActivityVersionControl control : list)
|
| | | if (control != null && control.getSourceId() != null)
|
| | |
| | | return resultList;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void deleteBySourceAndVersion(Long sourceId, AdActivityType type, Long version) {
|
| | | AdActivityVersionControl control = adActivityVersionControlMapper.selectBySourceIdAndTypeAndVersion(sourceId,
|
| | | type, version);
|
| | | if (control != null)
|
| | | deleteByPrimaryKey(control.getId());
|
| | | }
|
| | |
|
| | | }
|