|
|
@ -283,17 +283,19 @@ public class IcEpidemicSpecialAttentionServiceImpl extends BaseServiceImpl<IcEpi |
|
|
List<String> idCards = entities.stream().map(m -> m.getIdCard()).collect(Collectors.toList()); |
|
|
List<String> idCards = entities.stream().map(m -> m.getIdCard()).collect(Collectors.toList()); |
|
|
Integer attentionType = entities.get(NumConstant.ZERO).getAttentionType(); |
|
|
Integer attentionType = entities.get(NumConstant.ZERO).getAttentionType(); |
|
|
List<String> existList = baseDao.getExistList(attentionType, idCards); |
|
|
List<String> existList = baseDao.getExistList(attentionType, idCards); |
|
|
|
|
|
List<IcEpidemicSpecialAttentionEntity> existsEntities = new ArrayList<>(); |
|
|
if (CollectionUtils.isNotEmpty(existList)){ |
|
|
if (CollectionUtils.isNotEmpty(existList)){ |
|
|
for (String s : existList) { |
|
|
for (String s : existList) { |
|
|
for (int i = NumConstant.ZERO; i < entities.size(); i++) { |
|
|
for (int i = NumConstant.ZERO; i < entities.size(); i++) { |
|
|
if (s.equals(entities.get(i).getIdCard())){ |
|
|
if (s.equals(entities.get(i).getIdCard())){ |
|
|
|
|
|
existsEntities.add(entities.get(i)); |
|
|
entities.remove(i); |
|
|
entities.remove(i); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
baseDao.addAttention(idCards,attentionType); |
|
|
} |
|
|
} |
|
|
baseDao.addAttention(idCards,attentionType); |
|
|
|
|
|
entities.forEach(e -> { |
|
|
entities.forEach(e -> { |
|
|
e.setIsAttention(NumConstant.ONE); |
|
|
e.setIsAttention(NumConstant.ONE); |
|
|
e.setOrgId(agencyInfo.getId()); |
|
|
e.setOrgId(agencyInfo.getId()); |
|
|
|