Browse Source

修复118模型3

master
sjh 1 year ago
parent
commit
65f0602b08
  1. 8
      src/main/java/com/biutag/supervisiondata/mapper/dwd/GBaseCSCZRKMapper.java

8
src/main/java/com/biutag/supervisiondata/mapper/dwd/GBaseCSCZRKMapper.java

@ -60,28 +60,28 @@ public interface GBaseCSCZRKMapper extends BaseMapper<GBaseCSCZRK> {
@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<GBaseCSCZRK> 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<GBaseCSCZRK> 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<GBaseCSCZRK> 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<GBaseCSCZRK> selectFamilyPeople4(int offset, int limit);

Loading…
Cancel
Save