fix(wearing): 修复佩戴详情部门缓存空指针异常
This commit is contained in:
+2
@@ -115,7 +115,9 @@ public class WearingDetailTransfer {
|
|||||||
return Optional.ofNullable(this.departMap.get(orgCode))
|
return Optional.ofNullable(this.departMap.get(orgCode))
|
||||||
.orElseGet(() -> {
|
.orElseGet(() -> {
|
||||||
SysDepart sysDepart = SpringContextUtils.getBean(ISysCache.class).getDepartByOrgCode(orgCode);
|
SysDepart sysDepart = SpringContextUtils.getBean(ISysCache.class).getDepartByOrgCode(orgCode);
|
||||||
|
if (sysDepart != null) {
|
||||||
this.departMap.put(orgCode, sysDepart);
|
this.departMap.put(orgCode, sysDepart);
|
||||||
|
}
|
||||||
return sysDepart;
|
return sysDepart;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user