优化map判断
2020-11-20 本文已影响0人
盗生一
pInfo.setAttentionPerson(mapAttention.getOrDefault(employeeInfo.getPersonId(),null)==null?false:true);
image.png
pInfo.setAttentionPerson(mapAttention.containsKey(employeeInfo.getPersonId()));
image.png