diff --git a/src/main/java/com/biutag/supervisiondata/mapper/dwd/GBaseCSCZRKMapper.java b/src/main/java/com/biutag/supervisiondata/mapper/dwd/GBaseCSCZRKMapper.java index 34ae364..14b912f 100644 --- a/src/main/java/com/biutag/supervisiondata/mapper/dwd/GBaseCSCZRKMapper.java +++ b/src/main/java/com/biutag/supervisiondata/mapper/dwd/GBaseCSCZRKMapper.java @@ -60,28 +60,28 @@ public interface GBaseCSCZRKMapper extends BaseMapper { @Select("select distinct a.gmsfhm, c.gmsfhm family_id from dwd_ry_kxgxzyk_csczrk a inner join csga_wdpcdb.wdpc_person b on a.gmsfhm = b.id_code " + "inner join dwd_ry_kxgxzyk_csczrk c ON a.hh = c.hh " - + "where a.gmsfhm != c.gmsfhm and (" + + "where a.gmsfhm != c.gmsfhm and " + "( a.mqgmsfzhm IS NULL AND a.fqgmsfzhm IS NULL ) " + "LIMIT #{limit} OFFSET #{offset}") List selectFamilyPeople1(int offset, int limit); @Select("select distinct a.gmsfhm, c.gmsfhm family_id from dwd_ry_kxgxzyk_csczrk a inner join csga_wdpcdb.wdpc_person b on a.gmsfhm = b.id_code " + "inner join dwd_ry_kxgxzyk_csczrk c ON a.hh = c.hh " - + "where a.gmsfhm != c.gmsfhm and (" + + "where a.gmsfhm != c.gmsfhm and " + "( a.mqgmsfzhm IS NULL AND a.fqgmsfzhm != c.gmsfhm ) " + "LIMIT #{limit} OFFSET #{offset}") List selectFamilyPeople2(int offset, int limit); @Select("select distinct a.gmsfhm, c.gmsfhm family_id from dwd_ry_kxgxzyk_csczrk a inner join csga_wdpcdb.wdpc_person b on a.gmsfhm = b.id_code " + "inner join dwd_ry_kxgxzyk_csczrk c ON a.hh = c.hh " - + "where a.gmsfhm != c.gmsfhm and (" + + "where a.gmsfhm != c.gmsfhm and " + "( a.fqgmsfzhm IS NULL AND a.mqgmsfzhm != c.gmsfhm ) " + "LIMIT #{limit} OFFSET #{offset}") List selectFamilyPeople3(int offset, int limit); @Select("select distinct a.gmsfhm, c.gmsfhm family_id from dwd_ry_kxgxzyk_csczrk a inner join csga_wdpcdb.wdpc_person b on a.gmsfhm = b.id_code " + "inner join dwd_ry_kxgxzyk_csczrk c ON a.hh = c.hh " - + "where a.gmsfhm != c.gmsfhm and (" + + "where a.gmsfhm != c.gmsfhm and " + "(a.fqgmsfzhm IS NOT NULL AND a.mqgmsfzhm IS NOT NULL AND a.fqgmsfzhm != c.gmsfhm AND a.mqgmsfzhm != c.gmsfhm) " + "LIMIT #{limit} OFFSET #{offset}") List selectFamilyPeople4(int offset, int limit);