解决用户被删除后的单据查询的bug

This commit is contained in:
jishenghua
2025-07-18 17:19:46 +08:00
parent 84e2029a89
commit 2eb8c034fa

View File

@@ -1032,7 +1032,10 @@ public class DepotHeadService {
if(materialsListMap!=null) { if(materialsListMap!=null) {
dh.setMaterialsList(materialsListMap.get(dh.getId())); dh.setMaterialsList(materialsListMap.get(dh.getId()));
} }
dh.setCreatorName(userService.getUser(dh.getCreator()).getUsername()); User creatorUser = userService.getUser(dh.getCreator());
if(creatorUser!=null) {
dh.setCreatorName(creatorUser.getUsername());
}
resList.add(dh); resList.add(dh);
} }
}catch(Exception e){ }catch(Exception e){