Browse Source

优化车主模型 提高速度

master
kami 1 year ago
parent
commit
fc409f0587
  1. 2
      src/main/java/com/biutag/supervisiondata/event/ApplicationEvent.java
  2. 4
      src/main/java/com/biutag/supervisiondata/mapper/dwd/GBaseZDRYMapper.java
  3. 7
      src/main/java/com/biutag/supervisiondata/service/impl/PointServiceImpl.java

2
src/main/java/com/biutag/supervisiondata/event/ApplicationEvent.java

@ -140,7 +140,7 @@ public class ApplicationEvent {
// gBaseJJDService.syncMarryDispute(initDomain(List.of(72)));
// gBaseJJDService.syncNeighborAndColleagueDispute(initDomain(List.of(73)));
// gBaseJJDService.syncBullying(initDomain(List.of(74)));
gBaseSHRWFRService.crimeName(initDomain(List.of(76)));
// gBaseSHRWFRService.crimeName(initDomain(List.of(76)));
// pointService.syncIsPetition(initDomain(List.of(40)));
// pointService.syncFatherEducation(initDomain(List.of(112)));
// pointService.syncMotherEducation(initDomain(List.of(113)));

4
src/main/java/com/biutag/supervisiondata/mapper/dwd/GBaseZDRYMapper.java

@ -86,7 +86,9 @@ public interface GBaseZDRYMapper extends BaseMapper<GBaseZDRY> {
"</script>")
List<String> syncCarUser(@Param("list")List<String> list);
@Select(" select distinct dwd_zjhm from dwd_wp_jtqbglpt_jdcjbxx where (length(dwd_zjhm) = 18 or length(dwd_zjhm) = 15) and dwd_zjlx = 'A' and ztdm is not null and ztdm not in ( 'B','K','E') ")
@Select(" select distinct a.dwd_zjhm from dwd_wp_jtqbglpt_jdcjbxx as a " +
" inner join csga_wdpcdb.wdpc_person as b on a.dwd_zjhm = b.id_code" +
" where (length(a.dwd_zjhm) = 18 or length(a.dwd_zjhm) = 15) and a.dwd_zjlx = 'A' and a.ztdm is not null and a.ztdm not in ( 'B','K','E') ")
List<String> syncCarUser2();
/**

7
src/main/java/com/biutag/supervisiondata/service/impl/PointServiceImpl.java

@ -116,12 +116,7 @@ public class PointServiceImpl implements PointService {
continue;
}
List<RiskPersonal> personals = entry.getValue().stream().filter(StreamUtil.distinctByKey(RiskPersonal::getTags)).toList();
StringBuilder sb = new StringBuilder();
// 全部增加
for (RiskPersonal personal : personals) {
sb.append(personal.getTags()).append(",");
}
if (sb.isEmpty()) {
if (personals.isEmpty()) {
continue;
}
toInsert.add(DataUtil.createClueData(task, ClueData.builder()

Loading…
Cancel
Save