Commit a02b0d72 authored by DESKTOP-BQLVS7A\admin's avatar DESKTOP-BQLVS7A\admin

简化企业注册代码(只获取一条数据)

parent 76031b75
......@@ -323,15 +323,11 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
wrapper.eq(UnitLicence::getUnitCode,model.getCreditCode());
List<UnitLicence> unitLicenceLists = unitLicenceMapper.selectList(wrapper);
for (UnitLicence unitLicencelist : unitLicenceLists){
int i = 1;
if(i == 1){
if(!ValidationUtil.isEmpty(unitLicencelist)){
model.setLicenseNumber(unitLicencelist.getCertNo());
model.setExpirationDate(unitLicencelist.getExpiryDate());
}
i =++i;
if(!ValidationUtil.isEmpty(unitLicencelist)){
model.setLicenseNumber(unitLicencelist.getCertNo());
model.setExpirationDate(unitLicencelist.getExpiryDate());
}
break;
}
......
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