@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();
// 父母婚姻变故
@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 "
@ -36,6 +40,11 @@ public interface GBaseCSCZRKMapper extends BaseMapper<GBaseCSCZRK> {
@ -85,6 +85,13 @@ public interface GBaseJJDMapper extends BaseMapper<GBaseJJD> {
+"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 "
+"where (a.jqxzmc like '%纠纷%' or a.jqxzmc like '%矛盾%') "
+"AND (a.bjnr like '%孩子%' OR a.bjnr like '%儿子%' OR a.bjnr like '%女儿%' OR a.bjnr like '%子女%' OR a.cjqk like '%孩子%' OR a.cjqk like '%儿子%' OR a.cjqk like '%女儿%' OR a.cjqk like '%子女%') "
+"AND a.bjrzjhm is not null and a.bjsj > '2019-12-06 00:00:00' and substr(a.jqxzdm, 1, 2) != '99';")
@ -19,4 +19,7 @@ public interface WdpcSqjzryMapper extends BaseMapper<WdpcSqjzry> {
+"</foreach>"
+"</script>")
List<WdpcSqjzry>selectByIdNos(List<String>idNos);
@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 "
+"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 '%交房%');")
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 '%举报%') "
@ -36,6 +41,11 @@ public interface WdpcXfsjCsDetailMapper extends BaseMapper<WdpcXfsjCsDetail> {
@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 '%举报%') "
+"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();
@Select("<script>"
+"select id_code, count(id_code) count_num, detail from wdpc_grjd_xfsj_cs_detail "
+"where (detail like '%不公%' or detail like '%交房%') "
@ -48,6 +58,11 @@ public interface WdpcXfsjCsDetailMapper extends BaseMapper<WdpcXfsjCsDetail> {
@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 '%交房%') "
+"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();
@Select("<script>"
+"select distinct id_code from wdpc_grjd_xfsj_cs_detail "
+"where satisfaction_code = '1' "
@ -58,4 +73,9 @@ public interface WdpcXfsjCsDetailMapper extends BaseMapper<WdpcXfsjCsDetail> {
@ -19,4 +19,7 @@ public interface WdpcXmsfryMapper extends BaseMapper<WdpcXmsfry> {
+"</foreach>"
+"</script>")
List<WdpcXmsfry>selectByIdNos(List<String>idNos);
@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;")