Commit 55b12621 authored by 向怀芳's avatar 向怀芳 🎱

1. 处理空对象

parent 4e9a8dfb
...@@ -97,7 +97,9 @@ public class HpHzjlServiceImpl extends ServiceImpl<HpHzjlMapper, HpHzjl> impleme ...@@ -97,7 +97,9 @@ public class HpHzjlServiceImpl extends ServiceImpl<HpHzjlMapper, HpHzjl> impleme
.eq(HpDocInfo::getResourceName, r.getZzysxm()) .eq(HpDocInfo::getResourceName, r.getZzysxm())
.last("limit 1"); .last("limit 1");
HpDocInfo one = hpDocInfoService.getOne(dw); HpDocInfo one = hpDocInfoService.getOne(dw);
doctorList.add(one); if(ObjectUtil.isNotNull(one)){
doctorList.add(one);
}
}); });
} }
return doctorList; return doctorList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment