修改bug

This commit is contained in:
yangjun 2025-11-04 14:50:31 +08:00
parent 35f0ec6fe3
commit afb1f58d56
1 changed files with 5 additions and 1 deletions

View File

@ -194,7 +194,11 @@ public class NuBaseInfoServiceImpl extends ServiceImpl<NuBaseInfoMapper, NuBaseI
QueryWrapper<NuBaseInfo> queryWrapper = QueryGenerator.initQueryWrapper(nuBaseInfo, req.getParameterMap(), customeRuleMap); QueryWrapper<NuBaseInfo> queryWrapper = QueryGenerator.initQueryWrapper(nuBaseInfo, req.getParameterMap(), customeRuleMap);
NuBaseInfo dto = baseMapper.queryinfoByBuId(queryWrapper); NuBaseInfo dto = baseMapper.queryinfoByBuId(queryWrapper);
NuBaseInfoEntity result = new NuBaseInfoEntity(); NuBaseInfoEntity result = new NuBaseInfoEntity();
BeanUtils.copyProperties(dto, result); if(dto!=null){
BeanUtils.copyProperties(dto, result);
}else{
result = null;
}
return result; return result;
} }