| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | |
| | | @Override |
| | | public List<AllertTitleDto> allert(List<String> cityCode) { |
| | | List<AllertTitleDto> allert = this.baseMapper.allert(cityCode); |
| | | List<AllertTitleDto> allert = new ArrayList<>(); |
| | | for (String s : cityCode) { |
| | | List<AllertTitleDto> allert1 = this.baseMapper.allert(Collections.singletonList(s)); |
| | | allert.addAll(allert1); |
| | | } |
| | | allert = allert.stream().distinct().collect(Collectors.toList()); |
| | | for (AllertTitleDto allertTitleDto : allert) { |
| | | List<TTitleMajor> tTitleMajors = titleMajorMapper.selectList(Wrappers.lambdaQuery(TTitleMajor.class) |
| | | .eq(TTitleMajor::getTechnicalId, allertTitleDto.getId())); |