|
|
|
|
@ -1,12 +1,18 @@
|
|
|
|
|
package com.biutag.supervisiondata.service.impl; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.biutag.supervisiondata.common.interfaces.CompletableFutureUtil; |
|
|
|
|
import com.biutag.supervisiondata.pojo.constants.Default; |
|
|
|
|
import com.biutag.supervisiondata.pojo.database.PointOrg; |
|
|
|
|
import com.biutag.supervisiondata.pojo.entity.ads.GBaseSYRKXX; |
|
|
|
|
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseJJD; |
|
|
|
|
import com.biutag.supervisiondata.pojo.entity.mine.RiskPersonal; |
|
|
|
|
import com.biutag.supervisiondata.pojo.entity.mine.SupExternalDepart; |
|
|
|
|
import com.biutag.supervisiondata.pojo.enums.DepartType; |
|
|
|
|
import com.biutag.supervisiondata.repository.GBaseJJDRepository; |
|
|
|
|
import com.biutag.supervisiondata.repository.GBaseSYRKXXRepository; |
|
|
|
|
import com.biutag.supervisiondata.repository.GBaseZDRYRepository; |
|
|
|
|
import com.biutag.supervisiondata.repository.SupExternalDepartRepository; |
|
|
|
|
import com.biutag.supervisiondata.service.GBaseJJDService; |
|
|
|
|
import com.biutag.supervisiondata.service.RiskPersonalService; |
|
|
|
|
import com.biutag.supervisiondata.util.IdCodeUtil; |
|
|
|
|
@ -20,6 +26,7 @@ import java.time.LocalDateTime;
|
|
|
|
|
import java.time.ZoneId; |
|
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.concurrent.CompletableFuture; |
|
|
|
|
import java.util.function.Function; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
import java.util.stream.IntStream; |
|
|
|
|
@ -40,6 +47,10 @@ public class GBaseJJDServiceImpl implements GBaseJJDService {
|
|
|
|
|
|
|
|
|
|
private final RiskPersonalService riskPersonalService; |
|
|
|
|
|
|
|
|
|
private final GBaseZDRYRepository zdryRepository; |
|
|
|
|
|
|
|
|
|
private final SupExternalDepartRepository externalDepartRepository; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void pullAndSave(LocalDateTime start, LocalDateTime end) { |
|
|
|
|
// 获取接警数据
|
|
|
|
|
@ -47,13 +58,22 @@ public class GBaseJJDServiceImpl implements GBaseJJDService {
|
|
|
|
|
end.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
|
|
|
|
log.info("总条数 | {}条", result.size()); |
|
|
|
|
|
|
|
|
|
List<RiskPersonal> personals = new ArrayList<>(); |
|
|
|
|
// 身份证和手机号都为空数量
|
|
|
|
|
int noneCount = 0; |
|
|
|
|
// 未核实到信息数据
|
|
|
|
|
int infoCount = 0; |
|
|
|
|
List<SupExternalDepart> supDeparts = externalDepartRepository.list(new LambdaQueryWrapper<SupExternalDepart>() |
|
|
|
|
.select(SupExternalDepart::getExternalId, SupExternalDepart::getInternalId, SupExternalDepart::getInternalName, SupExternalDepart::getSource) |
|
|
|
|
.in(SupExternalDepart::getSource, List.of("重点人员", "情指行"))); |
|
|
|
|
Map<String, List<SupExternalDepart>> amp = supDeparts.stream().collect(Collectors.groupingBy(SupExternalDepart::getSource)); |
|
|
|
|
Map<String, SupExternalDepart> pointExternalDepart = amp.get("重点人员").stream().collect(Collectors.toMap(SupExternalDepart::getExternalId, Function.identity(), (val, old) -> val)); |
|
|
|
|
Map<String, SupExternalDepart> jqExternalDepart = amp.get("情指行").stream().collect(Collectors.toMap(SupExternalDepart::getExternalId, Function.identity(), (val, old) -> val)); |
|
|
|
|
|
|
|
|
|
List<PointOrg> orgs = zdryRepository.getBaseMapper().selectOrg(); |
|
|
|
|
Map<String, PointOrg> orgIdMap = new WeakHashMap<>(); |
|
|
|
|
Map<String, PointOrg> orgCodeMap = new WeakHashMap<>(); |
|
|
|
|
for (PointOrg org : orgs) { |
|
|
|
|
orgIdMap.put(org.getId(), org); |
|
|
|
|
orgCodeMap.put(org.getDm(), org); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int ok = 0; |
|
|
|
|
List<RiskPersonal> personals = new ArrayList<>(); |
|
|
|
|
// 过滤数据
|
|
|
|
|
List<String> idCodes1 = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
@ -64,32 +84,25 @@ public class GBaseJJDServiceImpl implements GBaseJJDService {
|
|
|
|
|
|
|
|
|
|
for (GBaseJJD item : result) { |
|
|
|
|
RiskPersonal person = createPerson(item); |
|
|
|
|
if(person.getIdCode() != null) { |
|
|
|
|
if (person.getIdCode() != null) { |
|
|
|
|
personals.add(person); |
|
|
|
|
List<GBaseJJD> jjd = Optional.ofNullable(jjdMap.get(person.getIdCode())).orElse(new ArrayList<>()); |
|
|
|
|
jjd.add(item); |
|
|
|
|
jjdMap.put(person.getIdCode(), jjd); |
|
|
|
|
jjdMap.computeIfAbsent(item.getBjrzjhm(), k -> new ArrayList<>()).add(item); |
|
|
|
|
idCodes1.add(person.getIdCode()); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
String idCards = PatternUtil.takeIdCard(item.getCjqk()); |
|
|
|
|
if(!idCards.isEmpty()) { |
|
|
|
|
if (!idCards.isEmpty()) { |
|
|
|
|
person.setIdCode(idCards); |
|
|
|
|
String [] strs = idCards.split(","); |
|
|
|
|
String[] strs = idCards.split(","); |
|
|
|
|
for (String s : strs) { |
|
|
|
|
idCodes1.add(s); |
|
|
|
|
List<GBaseJJD> jjd = Optional.ofNullable(jjdMap.get(s)).orElse(new ArrayList<>()); |
|
|
|
|
jjd.add(item); |
|
|
|
|
jjdMap.put(person.getIdCode(), jjd); |
|
|
|
|
jjdMap.computeIfAbsent(item.getBjrzjhm(), k -> new ArrayList<>()).add(item); |
|
|
|
|
} |
|
|
|
|
} else if(item.getBjrlxdh() == null) { |
|
|
|
|
noneCount++; |
|
|
|
|
} else if (item.getBjrlxdh() == null) { |
|
|
|
|
continue; |
|
|
|
|
} else { |
|
|
|
|
mobiles1.add(item.getBjrlxdh()); |
|
|
|
|
List<GBaseJJD> jjd = Optional.ofNullable(jjdMap.get(item.getBjrlxdh())).orElse(new ArrayList<>()); |
|
|
|
|
jjd.add(item); |
|
|
|
|
jjdMMap.put(item.getBjrlxdh(), jjd); |
|
|
|
|
jjdMap.computeIfAbsent(item.getBjrzjhm(), k -> new ArrayList<>()).add(item); |
|
|
|
|
} |
|
|
|
|
personals.add(person); |
|
|
|
|
} |
|
|
|
|
@ -111,142 +124,146 @@ public class GBaseJJDServiceImpl implements GBaseJJDService {
|
|
|
|
|
List<GBaseSYRKXX> sFms = new ArrayList<>(); |
|
|
|
|
// 手机号查到的人
|
|
|
|
|
List<GBaseSYRKXX> lXfs = new ArrayList<>(); |
|
|
|
|
for (List<String> idCode : idCodes) { |
|
|
|
|
List<GBaseSYRKXX> list = gBaseSYRKXXRepository.list(new LambdaQueryWrapper<GBaseSYRKXX>() |
|
|
|
|
.in(GBaseSYRKXX::getGmsfhm, idCode)); |
|
|
|
|
sFms.addAll(list); |
|
|
|
|
count++; |
|
|
|
|
log.info("身份证进度 | {}", count); |
|
|
|
|
} |
|
|
|
|
log.info("开始根据手机号实用人口信息补全 =》 {}", mobiles.size()); |
|
|
|
|
for (List<String> mobile : mobiles) { |
|
|
|
|
List<GBaseSYRKXX> list = gBaseSYRKXXRepository.list(new LambdaQueryWrapper<GBaseSYRKXX>() |
|
|
|
|
.in(GBaseSYRKXX::getLxdh, mobile)); |
|
|
|
|
lXfs.addAll(list); |
|
|
|
|
count++; |
|
|
|
|
log.info("手机号进度 | {}", count); |
|
|
|
|
} |
|
|
|
|
Map<String, GBaseSYRKXX> idCodeMap = sFms.stream().collect(Collectors.toMap(GBaseSYRKXX::getGmsfhm, Function.identity(), (oldValue, newValue) -> newValue)); |
|
|
|
|
CompletableFuture.allOf( |
|
|
|
|
CompletableFutureUtil.runSyncObject(() -> sFms.addAll(getByIdCode(idCodes))), |
|
|
|
|
CompletableFutureUtil.runSyncObject(() -> lXfs.addAll(getByMobiles(mobiles))) |
|
|
|
|
).join(); |
|
|
|
|
Map<String, GBaseSYRKXX> idCodeMap = sFms.stream().collect(Collectors.toMap(GBaseSYRKXX::getGmsfhm, Function.identity(), (oldValue, newValue) -> newValue)); |
|
|
|
|
Map<String, List<GBaseSYRKXX>> mobileMap = lXfs.stream().collect(Collectors.groupingBy(GBaseSYRKXX::getLxdh)); |
|
|
|
|
// 开始补全
|
|
|
|
|
LocalDate today = LocalDate.now(); |
|
|
|
|
GBaseSYRKXX info = null; |
|
|
|
|
List<GBaseSYRKXX> xxxInfo; |
|
|
|
|
|
|
|
|
|
for (RiskPersonal personal : personals) { |
|
|
|
|
if(personal.getIdCode() != null) { |
|
|
|
|
if (personal.getIdCode() != null) { |
|
|
|
|
// 多张身份证存入异常信息
|
|
|
|
|
String [] strs = personal.getIdCode().split(","); |
|
|
|
|
personal.setIdCode(null); |
|
|
|
|
xxxInfo = new ArrayList<>(); |
|
|
|
|
for (String str : strs) { |
|
|
|
|
info = idCodeMap.get(str); |
|
|
|
|
if(info != null) { |
|
|
|
|
xxxInfo.add(info); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(strs.length ==1 && !xxxInfo.isEmpty()) { |
|
|
|
|
xxxInfo = Arrays.stream(personal.getIdCode().split(",")) |
|
|
|
|
.map(idCodeMap::get) |
|
|
|
|
.filter(Objects::nonNull) |
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
if (!xxxInfo.isEmpty()) { |
|
|
|
|
info = xxxInfo.getFirst(); |
|
|
|
|
} else { |
|
|
|
|
info = compare(xxxInfo, personal.getName()); |
|
|
|
|
} |
|
|
|
|
if(info == null) { |
|
|
|
|
if (info == null) { |
|
|
|
|
personal.setErrorMsg(personal.getIdCode()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(personal.getMobileNumber() != null && info == null) { |
|
|
|
|
if (personal.getMobileNumber() != null && info == null) { |
|
|
|
|
xxxInfo = mobileMap.get(personal.getMobileNumber()); |
|
|
|
|
if(xxxInfo == null || xxxInfo.isEmpty()) { |
|
|
|
|
infoCount ++; |
|
|
|
|
if (xxxInfo == null || xxxInfo.isEmpty()) { |
|
|
|
|
} else { |
|
|
|
|
info = compare(xxxInfo, personal.getName()); |
|
|
|
|
} |
|
|
|
|
if(info == null && xxxInfo != null) { |
|
|
|
|
if (info == null && xxxInfo != null) { |
|
|
|
|
StringBuilder tmp = new StringBuilder(); |
|
|
|
|
for (GBaseSYRKXX gBaseSYRKXX : xxxInfo) { |
|
|
|
|
if(gBaseSYRKXX.getGmsfhm()!= null) { |
|
|
|
|
if (gBaseSYRKXX.getGmsfhm() != null) { |
|
|
|
|
tmp.append(gBaseSYRKXX.getGmsfhm()).append("\n"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
personal.setErrorMsg(tmp.substring(0, tmp.length()-1)); |
|
|
|
|
personal.setErrorMsg(tmp.substring(0, tmp.length() - 1)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(info != null) { |
|
|
|
|
personal.setName(info.getXm()); |
|
|
|
|
personal.setIdCode(info.getGmsfhm()); |
|
|
|
|
personal.setMobileNumber(info.getLxdh()); |
|
|
|
|
personal.setGender(info.getXbdm()); |
|
|
|
|
personal.setAge(Optional.ofNullable(IdCodeUtil.idCard2Age(personal.getIdCode(), LocalDate.now())).orElse(-1)); |
|
|
|
|
if(personal.getAge() == null ){ |
|
|
|
|
try { |
|
|
|
|
LocalDate localDate = info.getCsrq().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); |
|
|
|
|
int age = localDate.until(today).getYears(); |
|
|
|
|
personal.setAge(age); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("发现一例没有出生日期"); |
|
|
|
|
personal.setAge(-1); |
|
|
|
|
if (info != null) { |
|
|
|
|
personal = refreshPersonal(personal, info, today); |
|
|
|
|
if (info.getSspcsdm() != null) { |
|
|
|
|
PointOrg org = orgCodeMap.get(info.getSspcsdm()); |
|
|
|
|
org = findOrg(org, orgIdMap); |
|
|
|
|
if (org != null) { |
|
|
|
|
SupExternalDepart depart = pointExternalDepart.get(org.getDm()); |
|
|
|
|
if (depart != null) { |
|
|
|
|
personal.setControlDepartId(depart.getInternalId()); |
|
|
|
|
personal.setControlDepartName(depart.getInternalName()); |
|
|
|
|
personal.setControlDepartType(DepartType.HUMAN.getType()); |
|
|
|
|
personal.setControlTime(LocalDateTime.now()); |
|
|
|
|
personal.setCreateTime(personal.getControlTime()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ok++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
for (RiskPersonal personal : personals) { |
|
|
|
|
List<GBaseJJD> jjds = jjdMap.get(personal.getIdCode()); |
|
|
|
|
if(jjds == null) { |
|
|
|
|
jjds = jjdMMap.get(Optional.ofNullable(personal.getMobileNumber()).orElse("")); |
|
|
|
|
if (personal.getControlDepartType() != null && personal.getControlDepartType() >= DepartType.HUMAN.getType()) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
if(jjds == null) { |
|
|
|
|
List<GBaseJJD> jjds = Optional.ofNullable(jjdMap.get(personal.getIdCode())).orElse(jjdMMap.get(Optional.ofNullable(personal.getMobileNumber()).orElse(""))); |
|
|
|
|
if (jjds == null || jjds.isEmpty()) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
GBaseJJD tmp = null; |
|
|
|
|
GBaseJJD tmp = jjds.getFirst(); |
|
|
|
|
jjds.remove(0); |
|
|
|
|
for (GBaseJJD jjd : jjds) { |
|
|
|
|
if(tmp == null) { |
|
|
|
|
tmp = jjd; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
LocalDateTime time = jjd.getBjsj().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime(); |
|
|
|
|
if(time.isAfter(jjd.getBjsj().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime())) { |
|
|
|
|
if (time.isAfter(jjd.getBjsj().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime())) { |
|
|
|
|
tmp = jjd; |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.info("报警时间处理异常"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(tmp == null) { |
|
|
|
|
if (tmp == null || tmp.getGxdwdm() == null) { |
|
|
|
|
personal.setControlDepartId(null); |
|
|
|
|
personal.setControlDepartName(null); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
personal.setControlDepartId(tmp.getGxdwdm()); |
|
|
|
|
personal.setControlDepartName(tmp.getGxdwmc()); |
|
|
|
|
PointOrg org = orgCodeMap.get(info.getSspcsdm()); |
|
|
|
|
org = findOrg(org, orgIdMap); |
|
|
|
|
SupExternalDepart depart = Optional.ofNullable(org).map(PointOrg::getDm).map(item -> jqExternalDepart.get(item)).orElse(null); |
|
|
|
|
if (depart == null) { |
|
|
|
|
personal.setControlDepartId(null); |
|
|
|
|
personal.setControlDepartName(null); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
personal.setControlDepartId(depart.getInternalId()); |
|
|
|
|
personal.setControlDepartName(depart.getInternalName()); |
|
|
|
|
personal.setControlDepartType(DepartType.OTHER.getType()); |
|
|
|
|
// 如果有报警时间,暂时填报警时间 处理标签回正
|
|
|
|
|
try { |
|
|
|
|
LocalDateTime time = tmp.getBjsj().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime(); |
|
|
|
|
personal.setCreateTime(time); |
|
|
|
|
personal.setControlTime(time); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
personal.setCreateTime(LocalDateTime.now()); |
|
|
|
|
log.info("报警时间处理异常"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
riskPersonalService.formatAndSave(personals, Default.BIG_TAG_JJD); |
|
|
|
|
log.info("未提取信息人数: {}\n异常信息人数: {}\nok人数: {}", noneCount, infoCount, ok); |
|
|
|
|
log.info("人数: {}", personals.size()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 多身份证对比名称 |
|
|
|
|
* |
|
|
|
|
* @param infos 信息 |
|
|
|
|
* @param name 名称 |
|
|
|
|
* @param name 名称 |
|
|
|
|
* @return 正确信息 |
|
|
|
|
*/ |
|
|
|
|
GBaseSYRKXX compare(List<GBaseSYRKXX> infos, String name) { |
|
|
|
|
GBaseSYRKXX info = null; |
|
|
|
|
for (GBaseSYRKXX gBaseSYRKXX : infos) { |
|
|
|
|
if(gBaseSYRKXX.getXm().equals(name)) { |
|
|
|
|
info=gBaseSYRKXX; |
|
|
|
|
if (gBaseSYRKXX.getXm().equals(name)) { |
|
|
|
|
info = gBaseSYRKXX; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return info; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PointOrg findOrg(PointOrg org, Map<String, PointOrg> orgIdMap) { |
|
|
|
|
if (org == null) { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
if (org.getPcs() == null || !org.getPcs().equals("1")) { |
|
|
|
|
return findOrg(orgIdMap.get(org.getPid()), orgIdMap); |
|
|
|
|
} |
|
|
|
|
return org; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RiskPersonal createPerson(GBaseJJD item) { |
|
|
|
|
RiskPersonal person = new RiskPersonal(); |
|
|
|
|
person.setName(item.getBjrxm()); |
|
|
|
|
@ -255,16 +272,74 @@ public class GBaseJJDServiceImpl implements GBaseJJDService {
|
|
|
|
|
person.setControlDepartName(item.getGxdwmc()); |
|
|
|
|
person.setGender(item.getBjrxb()); |
|
|
|
|
person.setIdCode(item.getBjrzjhm()); |
|
|
|
|
person.setControlDepartType(DepartType.OTHER.getType()); |
|
|
|
|
// 如果有报警时间,暂时填报警时间 处理标签回正
|
|
|
|
|
try { |
|
|
|
|
LocalDateTime time = item.getBjsj().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime(); |
|
|
|
|
person.setCreateTime(time); |
|
|
|
|
person.setControlTime(time); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
person.setCreateTime(LocalDateTime.now()); |
|
|
|
|
log.info("报警时间处理异常"); |
|
|
|
|
} |
|
|
|
|
// 这里暂时将小标签放到预览属性 处理标签回正
|
|
|
|
|
person.setTags(item.getJqxzmc()); |
|
|
|
|
return person; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RiskPersonal refreshPersonal(RiskPersonal personal, GBaseSYRKXX info, LocalDate today) { |
|
|
|
|
personal.setName(info.getXm()); |
|
|
|
|
personal.setIdCode(info.getGmsfhm()); |
|
|
|
|
personal.setMobileNumber(info.getLxdh()); |
|
|
|
|
personal.setGender(IdCodeUtil.idCard2Gender(personal.getIdCode())); |
|
|
|
|
personal.setAge(Optional.ofNullable(IdCodeUtil.idCard2Age(personal.getIdCode(), LocalDate.now())).orElse(-1)); |
|
|
|
|
if (personal.getAge() == null) { |
|
|
|
|
try { |
|
|
|
|
LocalDate localDate = info.getCsrq().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); |
|
|
|
|
int age = localDate.until(today).getYears(); |
|
|
|
|
personal.setAge(age); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("发现一例没有出生日期"); |
|
|
|
|
personal.setAge(-1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (personal.getGender() == null) { |
|
|
|
|
personal.setGender(info.getXbdm()); |
|
|
|
|
} |
|
|
|
|
return personal; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过身份证号查询实有人口 |
|
|
|
|
* |
|
|
|
|
* @param idCodes 身份证 |
|
|
|
|
* @return 实有人口信息 |
|
|
|
|
*/ |
|
|
|
|
List<GBaseSYRKXX> getByIdCode(List<List<String>> idCodes) { |
|
|
|
|
List<GBaseSYRKXX> tmp = new ArrayList<>(); |
|
|
|
|
for (int i = 0, len = idCodes.size(); i < len; i++) { |
|
|
|
|
tmp.addAll(gBaseSYRKXXRepository.list(new LambdaQueryWrapper<GBaseSYRKXX>() |
|
|
|
|
.select(GBaseSYRKXX::getGmsfhm, GBaseSYRKXX::getXm, GBaseSYRKXX::getLxdh, GBaseSYRKXX::getSspcsdm, GBaseSYRKXX::getCsrq) |
|
|
|
|
.in(GBaseSYRKXX::getGmsfhm, idCodes.get(i)))); |
|
|
|
|
log.info("证件查询进度:{}", i); |
|
|
|
|
} |
|
|
|
|
return tmp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过手机号查询实有人口信息 |
|
|
|
|
* |
|
|
|
|
* @param mobiles 手机号 |
|
|
|
|
* @return 查到的实有人口数据 |
|
|
|
|
*/ |
|
|
|
|
List<GBaseSYRKXX> getByMobiles(List<List<String>> mobiles) { |
|
|
|
|
List<GBaseSYRKXX> tmp = new ArrayList<>(); |
|
|
|
|
for (int i = 0, len = mobiles.size(); i < len; i++) { |
|
|
|
|
tmp.addAll(gBaseSYRKXXRepository.list(new LambdaQueryWrapper<GBaseSYRKXX>() |
|
|
|
|
.select(GBaseSYRKXX::getGmsfhm, GBaseSYRKXX::getXm, GBaseSYRKXX::getLxdh, GBaseSYRKXX::getSspcsdm, GBaseSYRKXX::getCsrq) |
|
|
|
|
.in(GBaseSYRKXX::getLxdh, mobiles.get(i)))); |
|
|
|
|
log.info("手机号查询进度:{}", i); |
|
|
|
|
} |
|
|
|
|
return tmp; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|