|
@@ -320,14 +320,18 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
|
|
|
}
|
|
|
if(moduleInfoListDTO.getModuleType().intValue() == 1){//根据科室
|
|
|
if(moduleInfoListDTO.getRelationId().intValue() != -1){//判断是不是科室通用子模板
|
|
|
- moduleInfoListDTO.setRelationName(deptInfoMap.get(moduleInfoListDTO.getRelationId()).getName());
|
|
|
+ if(null != deptInfoMap.get(moduleInfoListDTO.getRelationId())){
|
|
|
+ moduleInfoListDTO.setRelationName(deptInfoMap.get(moduleInfoListDTO.getRelationId()).getName());
|
|
|
+ }
|
|
|
}else {
|
|
|
moduleInfoListDTO.setRelationName(ModuleInfoTypeEnum.Common.getName());
|
|
|
}
|
|
|
}
|
|
|
if(moduleInfoListDTO.getModuleType().intValue() == 2){//根据疾病
|
|
|
- if(moduleInfoListDTO.getRelationId().intValue() != -1){//判断是不是科室通用子模板
|
|
|
- moduleInfoListDTO.setRelationName(disInfoMap.get(moduleInfoListDTO.getRelationId()).getName());
|
|
|
+ if(moduleInfoListDTO.getRelationId().intValue() != -1){//判断是不是疾病通用子模板
|
|
|
+ if(null != disInfoMap.get(moduleInfoListDTO.getRelationId())){
|
|
|
+ moduleInfoListDTO.setRelationName(disInfoMap.get(moduleInfoListDTO.getRelationId()).getName());
|
|
|
+ }
|
|
|
}else {
|
|
|
moduleInfoListDTO.setRelationName(ModuleInfoTypeEnum.Common.getName());
|
|
|
}
|