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