|
|
|
@ -8,9 +8,7 @@ import com.biutag.supervisiondata.pojo.entity.ads.GBaseSYRKXX; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseJJD; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseJJD; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseTbDZdrylb; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseTbDZdrylb; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseZDRY; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseZDRY; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.mine.RiskPersonal; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.mine.*; |
|
|
|
import com.biutag.supervisiondata.pojo.entity.mine.SupDepart; |
|
|
|
|
|
|
|
import com.biutag.supervisiondata.pojo.entity.mine.SupExternalDepart; |
|
|
|
|
|
|
|
import com.biutag.supervisiondata.pojo.enums.DepartType; |
|
|
|
import com.biutag.supervisiondata.pojo.enums.DepartType; |
|
|
|
import com.biutag.supervisiondata.repository.*; |
|
|
|
import com.biutag.supervisiondata.repository.*; |
|
|
|
import com.biutag.supervisiondata.service.PersonalService; |
|
|
|
import com.biutag.supervisiondata.service.PersonalService; |
|
|
|
@ -197,7 +195,7 @@ public class PersonalServiceImpl implements PersonalService { |
|
|
|
} |
|
|
|
} |
|
|
|
mobiles.append(s).append(","); |
|
|
|
mobiles.append(s).append(","); |
|
|
|
} |
|
|
|
} |
|
|
|
personal.setMobileNumber(mobiles.substring(0, mobiles.length()-1)); |
|
|
|
personal.setMobileNumber(mobiles.length() == 0 ? "" : mobiles.substring(0, mobiles.length() - 1)); |
|
|
|
} |
|
|
|
} |
|
|
|
personals.add(personal); |
|
|
|
personals.add(personal); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -205,9 +203,9 @@ public class PersonalServiceImpl implements PersonalService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void pullContradictionInfo() { |
|
|
|
public void pullContradictionInfo(LocalDateTime start) { |
|
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
|
List<Contradiction> list = gBaseSYRKXXRepository.getBaseMapper().selectContradiction(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
|
|
|
List<Contradiction> list = gBaseSYRKXXRepository.getBaseMapper().selectContradiction(start.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
|
|
|
List<String> idCode = list.stream().map(Contradiction::getGmsfhm).distinct().toList(); |
|
|
|
List<String> idCode = list.stream().map(Contradiction::getGmsfhm).distinct().toList(); |
|
|
|
// 切割
|
|
|
|
// 切割
|
|
|
|
List<List<String>> idCodes = IntStream.range(0, (idCode.size() + 9999) / 10000) |
|
|
|
List<List<String>> idCodes = IntStream.range(0, (idCode.size() + 9999) / 10000) |
|
|
|
@ -230,6 +228,35 @@ public class PersonalServiceImpl implements PersonalService { |
|
|
|
riskPersonalService.saveDistinct(personals); |
|
|
|
riskPersonalService.saveDistinct(personals); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final DataPetition12337Repository petition12337Repository; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final DataPetitionComplaintRepository complaintRepository; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final DataCaseVerifRepository dataCaseVerifRepository; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void pullPetition(LocalDateTime start) { |
|
|
|
|
|
|
|
List<DataPetition12337> pList1 = petition12337Repository.list(new LambdaQueryWrapper<DataPetition12337>() |
|
|
|
|
|
|
|
.select(DataPetition12337::getName, DataPetition12337::getIdCode, DataPetition12337::getPhone, DataPetition12337::getThirdDepartId, DataPetition12337::getThirdDepartName) |
|
|
|
|
|
|
|
.ge(DataPetition12337::getDiscoverTime, start)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<DataPetitionComplaint> pList2 = complaintRepository.list(new LambdaQueryWrapper<DataPetitionComplaint>() |
|
|
|
|
|
|
|
.select(DataPetitionComplaint::getResponderName, DataPetitionComplaint::getResponderPhone, DataPetitionComplaint::getResponderName, DataPetitionComplaint::getThirdDepartId, DataPetitionComplaint::getThirdDepartName) |
|
|
|
|
|
|
|
.ge(DataPetitionComplaint::getDiscoveryTime, start)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<DataCaseVerif> pList3 = dataCaseVerifRepository.list(new LambdaQueryWrapper<DataCaseVerif>() |
|
|
|
|
|
|
|
.select(DataCaseVerif::getResponderName, DataCaseVerif::getResponderPhone, DataCaseVerif::getThirdDepartId, DataCaseVerif::getThirdDepartName) |
|
|
|
|
|
|
|
.ge(DataCaseVerif::getDiscoveryTime, start)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<String> ids = new ArrayList<>(); |
|
|
|
|
|
|
|
List<String> mobiles = new ArrayList<>(); |
|
|
|
|
|
|
|
ids.addAll(pList1.stream().map(DataPetition12337::getIdCode).toList()); |
|
|
|
|
|
|
|
ids.addAll(pList2.stream().map(DataPetitionComplaint::getResponderIdCode).toList()); |
|
|
|
|
|
|
|
mobiles.addAll(pList3.stream().map(DataCaseVerif::getResponderPhone).toList()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private final SupExternalDepartRepository supExternalDepartRepository; |
|
|
|
private final SupExternalDepartRepository supExternalDepartRepository; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
|