Commit 0be6f88b authored by suhuiguang's avatar suhuiguang

1.增加判断空指针

parent 54282ed3
......@@ -1265,6 +1265,9 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
companyModel = companyCodeCompanyMap.get(tzsUserInfo.getUnitCode());
} else {
companyModel = baseEnterpriseInfoService.getBaseMapper().getOneByCompanyCode(tzsUserInfo.getUnitCode());
if(companyModel == null){
throw new BadRequest("单位统一信用代码为:" + tzsUserInfo.getUnitCode() + "的单位还未进行注册,请确认数据是否正确!");
}
companyCodeCompanyMap.put(tzsUserInfo.getUnitCode(), companyModel);
}
return companyModel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment