Commit beb45ea3 authored by suhuiguang's avatar suhuiguang

1.判空

parent 7f3f2707
...@@ -242,6 +242,9 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI ...@@ -242,6 +242,9 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
wrapper.notLike(TzBaseEnterpriseInfo::getQrCode,"upload"); wrapper.notLike(TzBaseEnterpriseInfo::getQrCode,"upload");
wrapper.last("limit 100"); wrapper.last("limit 100");
List<TzBaseEnterpriseInfo> noQrCodeList = tzBaseEnterpriseInfoMapper.selectList(wrapper); List<TzBaseEnterpriseInfo> noQrCodeList = tzBaseEnterpriseInfoMapper.selectList(wrapper);
if(noQrCodeList.isEmpty()){
return;
}
noQrCodeList.forEach(e-> e.setQrCode(createQRCode(e.getUseCode()))); noQrCodeList.forEach(e-> e.setQrCode(createQRCode(e.getUseCode())));
tzBaseEnterpriseInfoService.saveOrUpdateBatch(noQrCodeList); tzBaseEnterpriseInfoService.saveOrUpdateBatch(noQrCodeList);
} }
......
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