@Select("SELECT a.gmsfhm, a.hlxmc FROM dwd_ry_kxgxzyk_csczrk a inner join csga_wdpcdb.wdpc_person b on a.gmsfhm = b.id_code WHERE a.hlxmc is not null")
@Select("SELECT a.gmsfhm, a.hlxmc FROM dwd_ry_kxgxzyk_csczrk a inner join csga_wdpcdb.wdpc_person b on a.gmsfhm = b.id_code WHERE a.hlxmc is not null")
List<GBaseCSCZRK>selectDomicileType();
List<GBaseCSCZRK>selectDomicileType();
// 父母婚姻变故
@Select("<script>"
+"select distinct gmsfhm from (SELECT DISTINCT a.gmsfhm FROM csga_dwd.dwd_ry_kxgxzyk_csczrk a join csga_wdpcdb.wdpc_grjd_lhxx b "
+"on (a.fqgmsfzhm = b.male_id_code or a.mqgmsfzhm = b.female_id_code)) a "
@ -78,13 +78,6 @@ public interface GBaseJJDMapper extends BaseMapper<GBaseJJD> {
@Select(" select jjdbh, bjdh,bjrxm ,bjrzjhm, bjnr, cjqk, bjsj from dwd_asj_zhtx_jjd where (bjnr like '%家暴%' or cjqk like '%家暴%' or jqxzmc like '%家庭暴力%' or cjqk like '%家庭暴力%' or bjnr like '%家庭暴力%') and SUBSTR(jqxzdm, 1, 2) != '99' and bjsj >= #{start}")
@Select(" select jjdbh, bjdh,bjrxm ,bjrzjhm, bjnr, cjqk, bjsj from dwd_asj_zhtx_jjd where (bjnr like '%家暴%' or cjqk like '%家暴%' or jqxzmc like '%家庭暴力%' or cjqk like '%家庭暴力%' or bjnr like '%家庭暴力%') and SUBSTR(jqxzdm, 1, 2) != '99' and bjsj >= #{start}")
@Select(" select jjdbh, bjrzjhm, bjnr,cjqk ,bjsj from dwd_asj_zhtx_jjd "
+"where (jqxzmc like '%纠纷%' or jqxzmc like '%矛盾%') "
+"AND (bjnr like '%孩子%' OR bjnr like '%儿子%' OR bjnr like '%女儿%' OR bjnr like '%子女%' OR cjqk like '%孩子%' OR cjqk like '%儿子%' OR cjqk like '%女儿%' OR cjqk like '%子女%') "
+"AND bjrzjhm is not null and bjsj > '2019-12-06 00:00:00' and substr(jqxzdm, 1, 2) != '99';")
List<GBaseJJD>selectFiliation(List<String>idNos);
// 与子女关系
// 与子女关系
@Select(" select a.jjdbh, a.bjrzjhm, a.bjnr,a.cjqk ,a.bjsj from dwd_asj_zhtx_jjd a inner join csga_wdpcdb.wdpc_person b on a.bjrzjhm = b.id_code "
@Select(" select a.jjdbh, a.bjrzjhm, a.bjnr,a.cjqk ,a.bjsj from dwd_asj_zhtx_jjd a inner join csga_wdpcdb.wdpc_person b on a.bjrzjhm = b.id_code "
+"where (a.jqxzmc like '%纠纷%' or a.jqxzmc like '%矛盾%') "
+"where (a.jqxzmc like '%纠纷%' or a.jqxzmc like '%矛盾%') "
+"select id_code, sentence_organization_name, correct_end_time, correct_begin_time, action_place, crime_describe from wdpc_grjd_sqjzry where id_code in "
@Select("select a.id_code, a.sentence_organization_name, a.correct_end_time, a.correct_begin_time, a.action_place, a.crime_describe from wdpc_grjd_sqjzry a inner join negative.risk_personal b on a.id_code = b.id_code;")
@Select("select a.id_code, a.sentence_organization_name, a.correct_end_time, a.correct_begin_time, a.action_place, a.crime_describe from wdpc_grjd_sqjzry a inner join negative.risk_personal b on a.id_code = b.id_code;")
@Select("select a.id_code, count(a.id_code) count_num, a.detail from wdpc_grjd_xfsj_cs_detail a inner join negative.risk_personal b on a.id_code = b.id_code "
@Select("select a.id_code, count(a.id_code) count_num, a.detail from wdpc_grjd_xfsj_cs_detail a inner join negative.risk_personal b on a.id_code = b.id_code "
+"where (a.detail like '%退%' or a.detail like '%迁%' or a.detail like '%军%') "
+"where (a.detail like '%退%' or a.detail like '%迁%' or a.detail like '%军%') "
+"and (a.detail not like '%投诉%' and a.detail not like '%举报%' and a.detail not like '%不公%' and a.detail not like '%交房%');")
+"and (a.detail not like '%投诉%' and a.detail not like '%举报%' and a.detail not like '%不公%' and a.detail not like '%交房%');")
List<WdpcXfsjCsDetail>selectPetitionContent5();
List<WdpcXfsjCsDetail>selectPetitionContent5();
@Select("<script>"
+"select id_code, count(id_code) count_num, detail from wdpc_grjd_xfsj_cs_detail "
+"where (detail like '%投诉%' or detail like '%举报%') "
+"and (detail not like '%退%' and detail not like '%迁%' and detail not like '%军%' and detail not like '%不公%' and detail not like '%交房%') "
@Select("select a.id_code, count(a.id_code) count_num, a.detail from wdpc_grjd_xfsj_cs_detail a inner join negative.risk_personal b on a.id_code = b.id_code "
@Select("select a.id_code, count(a.id_code) count_num, a.detail from wdpc_grjd_xfsj_cs_detail a inner join negative.risk_personal b on a.id_code = b.id_code "
+"where (a.detail like '%投诉%' or a.detail like '%举报%') "
+"where (a.detail like '%投诉%' or a.detail like '%举报%') "
+"and (a.detail not like '%退%' and a.detail not like '%迁%' and a.detail not like '%军%' and a.detail not like '%不公%' and a.detail not like '%交房%');")
+"and (a.detail not like '%退%' and a.detail not like '%迁%' and a.detail not like '%军%' and a.detail not like '%不公%' and a.detail not like '%交房%');")
List<WdpcXfsjCsDetail>selectPetitionContent3();
List<WdpcXfsjCsDetail>selectPetitionContent3();
@Select("<script>"
+"select id_code, count(id_code) count_num, detail from wdpc_grjd_xfsj_cs_detail "
+"where (detail like '%不公%' or detail like '%交房%') "
+"and (detail not like '%退%' and detail not like '%迁%' and detail not like '%军%' and detail not like '%投诉%' and detail not like '%举报%') "
@Select("select a.id_code, count(a.id_code) count_num, a.detail from wdpc_grjd_xfsj_cs_detail a inner join negative.risk_personal b on a.id_code = b.id_code "
@Select("select a.id_code, count(a.id_code) count_num, a.detail from wdpc_grjd_xfsj_cs_detail a inner join negative.risk_personal b on a.id_code = b.id_code "
+"where (a.detail like '%不公%' or a.detail like '%交房%') "
+"where (a.detail like '%不公%' or a.detail like '%交房%') "
+"and (a.detail not like '%退%' and a.detail not like '%迁%' and a.detail not like '%军%' and a.detail not like '%投诉%' and a.detail not like '%举报%');")
+"and (a.detail not like '%退%' and a.detail not like '%迁%' and a.detail not like '%军%' and a.detail not like '%投诉%' and a.detail not like '%举报%');")
List<WdpcXfsjCsDetail>selectPetitionContent2();
List<WdpcXfsjCsDetail>selectPetitionContent2();
@Select("<script>"
+"select distinct id_code from wdpc_grjd_xfsj_cs_detail "
@Select("select a.id_code, a.crime_name, a.sentence_time, a.prison_begin, a.prison_end, a.prison_organization from wdpc_grjd_xmsfry a inner join negative.risk_personal b on a.id_code = b.id_code;")
@Select("select a.id_code, a.crime_name, a.sentence_time, a.prison_begin, a.prison_end, a.prison_organization from wdpc_grjd_xmsfry a inner join negative.risk_personal b on a.id_code = b.id_code;")