Commit 35d548ff authored by chenzhao's avatar chenzhao

登记表生成代码优化 空指针处理

parent a540d961
......@@ -2337,10 +2337,10 @@ public class CommonServiceImpl implements ICommonService {
LambdaQueryWrapper<TzBaseEnterpriseInfo> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(TzBaseEnterpriseInfo::getUseUnitCode,formData.getString("useUnitCreditCode").split("_")[0]);
String address = enterpriseInfoMapper.selectOne(wrapper).getAddress();
TzBaseEnterpriseInfo tzBaseEnterpriseInfo = enterpriseInfoMapper.selectOne(wrapper);
//使用单位地址
if (StringUtils.isNotEmpty(address)){
formData.put("useUnitAddress",address);
if (Objects.nonNull(tzBaseEnterpriseInfo) && StringUtils.isNotEmpty(tzBaseEnterpriseInfo.getAddress())){
formData.put("useUnitAddress",tzBaseEnterpriseInfo.getAddress());
}
}
//右下角日期
......
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