fix(wearing): 修复佩戴详情部门缓存空指针异常

This commit is contained in:
hejiayang
2026-03-27 18:14:25 +08:00
parent 66795541c0
commit c6338a8d45
@@ -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;
});
}