|
|
@ -1,5 +1,6 @@ |
|
|
package com.zdxt.code.service.impl; |
|
|
package com.zdxt.code.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
import java.util.function.Function; |
|
|
import java.util.function.Function; |
|
|
@ -63,8 +64,14 @@ public class EnterpriseMerchantAuthorizationServiceImpl implements IEnterpriseMe |
|
|
List<EnterpriseInformation> enterpriseInformations = |
|
|
List<EnterpriseInformation> enterpriseInformations = |
|
|
enterpriseInformationMapper.selectEnterpriseInformationList(enterpriseInformation); |
|
|
enterpriseInformationMapper.selectEnterpriseInformationList(enterpriseInformation); |
|
|
//list转Map
|
|
|
//list转Map
|
|
|
Map<String, EnterpriseInformation> collect1 = |
|
|
// Map<String, EnterpriseInformation> collect1 =
|
|
|
enterpriseInformations.stream().collect(Collectors.toMap(EnterpriseInformation::getEnterpriseNumber, Function.identity())); |
|
|
// enterpriseInformations.stream().collect(Collectors.toMap(EnterpriseInformation::getEnterpriseNumber, Function.identity()));
|
|
|
|
|
|
Map<String, EnterpriseInformation> collect1 = new HashMap<>(); |
|
|
|
|
|
for (EnterpriseInformation entity : enterpriseInformations) { |
|
|
|
|
|
if (entity.getEnterpriseNumber() != null) { |
|
|
|
|
|
collect1.put(entity.getEnterpriseNumber(), entity); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
//赋值企业名称
|
|
|
//赋值企业名称
|
|
|
enterpriseMerchantAuthorizations.forEach(res ->{ |
|
|
enterpriseMerchantAuthorizations.forEach(res ->{ |
|
|
EnterpriseInformation enterpriseInformation1 = collect1.get(res.getEnterpriseNumber()); |
|
|
EnterpriseInformation enterpriseInformation1 = collect1.get(res.getEnterpriseNumber()); |
|
|
|