|
|
|
|
@ -48,6 +48,16 @@ public interface GBaseCSCZRKMapper extends BaseMapper<GBaseCSCZRK> {
|
|
|
|
|
+ "</script>") |
|
|
|
|
List<GBaseCSCZRK> selectFamilyDiePeople(List<String> part); |
|
|
|
|
|
|
|
|
|
@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 (" |
|
|
|
|
+ "( a.mqgmsfzhm IS NULL AND a.fqgmsfzhm IS NULL ) " |
|
|
|
|
+ "OR ( a.mqgmsfzhm IS NULL AND a.fqgmsfzhm != c.gmsfhm ) " |
|
|
|
|
+ "OR ( a.fqgmsfzhm IS NULL AND a.mqgmsfzhm != c.gmsfhm ) " |
|
|
|
|
+ "OR (a.fqgmsfzhm IS NOT NULL AND a.mqgmsfzhm IS NOT NULL AND a.fqgmsfzhm != c.gmsfhm AND a.mqgmsfzhm != c.gmsfhm) " |
|
|
|
|
+ ")") |
|
|
|
|
List<GBaseCSCZRK> selectFamilyPeople(); |
|
|
|
|
|
|
|
|
|
// 父亲是否健在
|
|
|
|
|
@Select("<script>" |
|
|
|
|
+ "select distinct gmsfhm from dwd_ry_kxgxzyk_csczrk where fqgmsfzhm in " |
|
|
|
|
|