fix: 处理办理接口NPE
This commit is contained in:
+9
-3
@@ -129,9 +129,15 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
|||||||
|
|
||||||
// 翻译数据
|
// 翻译数据
|
||||||
for (ProcessEsInitChange initChange : initChangeList) {
|
for (ProcessEsInitChange initChange : initChangeList) {
|
||||||
initChange.setMainDraftUserLeaderDictText(userMap.get(initChange.getMainDraftUserLeader()).getUsername());
|
if (userMap.get(initChange.getMainDraftUserLeader()) != null) {
|
||||||
initChange.setMainDraftUserLeaderLeaderDictText(userMap.get(initChange.getMainDraftUserLeaderLeader()).getUsername());
|
initChange.setMainDraftUserLeaderDictText(userMap.get(initChange.getMainDraftUserLeader()).getUsername());
|
||||||
initChange.setMainDraftingUnit(departMap.get(initChange.getMainDraftingUnit()).getDepartName());
|
}
|
||||||
|
if (userMap.get(initChange.getMainDraftUserLeaderLeader()) != null) {
|
||||||
|
initChange.setMainDraftUserLeaderLeaderDictText(userMap.get(initChange.getMainDraftUserLeaderLeader()).getUsername());
|
||||||
|
}
|
||||||
|
if (departMap.get(initChange.getMainDraftingUnit()) != null) {
|
||||||
|
initChange.setMainDraftingUnitDictText(departMap.get(initChange.getMainDraftingUnit()).getDepartName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return initChangeList;
|
return initChangeList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user