|
@@ -166,6 +166,9 @@ public class DeptVitalFacade extends DeptVitalServiceImpl {
|
|
|
Map<Long, QuestionInfo> vitalMap = EntityUtil.makeEntityMap(vitalList, "id");
|
|
|
List<QuestionShortDTO> vitals = Lists.newArrayList();
|
|
|
for (Long vitalId : vitalIds) {
|
|
|
+ if (!vitalMap.containsKey(vitalId)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
QuestionShortDTO vital = new QuestionShortDTO();
|
|
|
BeanUtil.copyProperties(vitalMap.get(vitalId), vital);
|
|
|
vitals.add(vital);
|