Commit 6adc914a by yangyang

重点人员、批量案件、人员处理(海南)

parent 47202569
package com.founder.commonutils.asjEntity;
import java.util.List;
/**
* 常住重点人员实体类
*/
......@@ -11,6 +13,10 @@ public class CzzdryEntity {
private String zjhm;
//性别
private String xb;
//民族
private String mz;
//户籍地
private String hjd;
//人员标签
private String rybq;
//案件标签
......@@ -96,12 +102,30 @@ public class CzzdryEntity {
this.y = y;
}
public String getMz() {
return mz;
}
public void setMz(String mz) {
this.mz = mz;
}
public String getHjd() {
return hjd;
}
public void setHjd(String hjd) {
this.hjd = hjd;
}
@Override
public String toString() {
return "CzzdryEntity{" +
"xm='" + xm + '\'' +
", zjhm='" + zjhm + '\'' +
", xb='" + xb + '\'' +
", mz='" + mz + '\'' +
", hjd='" + hjd + '\'' +
", rybq='" + rybq + '\'' +
", ajbq='" + ajbq + '\'' +
", xjdz='" + xjdz + '\'' +
......
package com.founder.commonutils.asjEntity;
import java.util.List;
public class CzzdryParamsEntity {
private String qsjd;
......@@ -9,7 +11,8 @@ public class CzzdryParamsEntity {
private String xm;
private String zjhm;
private String rybq;
//人员证件号集合
private List<String> zjhmList;
public String getQsjd() {
return qsjd;
}
......@@ -65,6 +68,14 @@ public class CzzdryParamsEntity {
public void setRybq(String rybq) {
this.rybq = rybq;
}
public List<String> getZjhmList() {
return zjhmList;
}
public void setZjhmList(List<String> zjhmList) {
this.zjhmList = zjhmList;
}
}
......@@ -8,6 +8,7 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@ApiModel
public class Receiving implements Serializable {
......@@ -205,6 +206,7 @@ public class Receiving implements Serializable {
private String xzqhdm;
private Integer begin;
private Integer end;
private List<String> asjbhList;
//区域代码
private String fjdm;
......@@ -861,6 +863,14 @@ public class Receiving implements Serializable {
this.ajzt = ajzt;
}
public List<String> getAsjbhList() {
return asjbhList;
}
public void setAsjbhList(List<String> asjbhList) {
this.asjbhList = asjbhList;
}
public void setPagePara(Integer rows){
if(rows != null){
this.begin = (this.page - 1) * rows;
......
......@@ -252,7 +252,7 @@
,(select name from SYS_DICTITEM where groupid='CODE_AJXZ' AND code = T.zatz_Jyqk) AS zatzJyqkMc
,(select name from SYS_DICTITEM where groupid='CODE_AJXLB' AND code = ASJBZ.ajxlb) AS ajxlbMc
FROM tb_st_asj T left join tb_st_asj_asjbz asjbz on T.asjbh = asjbz.asjbh
WHERE 1=1
WHERE T.XXSC_PDBZ=0
<include refid="queryWhereByReceiving"/>
) t1
<where>
......@@ -268,7 +268,7 @@
SELECT
count(*)
FROM tb_st_asj T left join tb_st_asj_asjbz asjbz on T.asjbh = asjbz.asjbh
WHERE 1=1
WHERE T.XXSC_PDBZ=0
<include refid="queryWhereByReceiving"/>
</select>
......@@ -334,6 +334,12 @@
AND T.ASJFSDD_DQJD <![CDATA[>=]]>#{startLng,jdbcType=VARCHAR} AND T.ASJFSDD_DQJD <![CDATA[<=]]>#{endLng,jdbcType=VARCHAR}
AND T.ASJFSDD_DQWD <![CDATA[>=]]>#{startLat,jdbcType=VARCHAR} AND T.ASJFSDD_DQWD <![CDATA[<=]]>#{endLat,jdbcType=VARCHAR}
</if>
<if test="asjbhList != null and asjbhList.size()>0">
AND T.asjbh in
<foreach collection="asjbhList" index="index" item="asjbhitems" open="(" separator="," close=")">
#{asjbhitems}
</foreach>
</if>
</sql>
<!--同类案件-->
<select id="selectTlAsjxx" parameterType="com.founder.commonutils.publicEntity.Receiving" resultType="com.founder.commonutils.asjEntity.TbStAsj">
......@@ -557,11 +563,13 @@
</select>
<!-- 获取坐标点 -->
<select id="getCzzdryInfo" resultType="com.founder.commonutils.asjEntity.CzzdryEntity" parameterType="com.founder.commonutils.asjEntity.CzzdryEntity">
<select id="getCzzdryInfo" resultType="com.founder.commonutils.asjEntity.CzzdryEntity" parameterType="com.founder.commonutils.asjEntity.CzzdryParamsEntity">
SELECT
BZ.XM xm,
BZ.ZJHM zjhm,
DIC.NAME xb,
(select name from SYS_DICTITEM DIC where BZ.XBDM = DIC.CODE AND DIC.GROUPID = 'CODE_XB') as xb,
(select name from SYS_DICTITEM DIC where BZ.MZDM = DIC.CODE AND DIC.GROUPID = 'CODE_MZ') as mz,
(select name from SYS_DICTITEM DIC where BZ.XZQHDM = DIC.CODE AND DIC.GROUPID = 'CODE_XZQH') as hjd,
BZ.CODE_TXT rybq,
BZ.AJLB_CODE_TXT ajbq,
BZ.SYRK_DZMC hjdz,
......@@ -569,10 +577,9 @@
BZ.SYRK_ZXWD y
FROM
TB_ST_RYBZ BZ
LEFT JOIN SYS_DICTITEM DIC ON BZ.XBDM = DIC.CODE AND DIC.GROUPID = 'CODE_XB'
WHERE
WHERE XXSC_PDBZ = 0
<if test="qsjd != null and qsjd != '' and jsjd != null and jsjd != '' and qswd != null and qswd != ''and jswd != null and jswd != ''">
SYRK_ZXJD BETWEEN #{qsjd} AND #{jsjd}
AND SYRK_ZXJD BETWEEN #{qsjd} AND #{jsjd}
AND SYRK_ZXWD BETWEEN #{qswd} AND #{jswd}
</if>
<if test="xm != null and xm != ''">
......@@ -584,6 +591,12 @@
<if test="rybq != null and rybq != ''">
and BZ.CODE_TXT like '%'|| #{rybq} ||'%'
</if>
<if test="zjhmList != null and zjhmList.size()>0">
AND BZ.ZJHM in
<foreach collection="zjhmList" index="index" item="zjhmitems" open="(" separator="," close=")">
#{zjhmitems}
</foreach>
</if>
</select>
<!--查询案件类别-->
......
......@@ -47,7 +47,7 @@
,(select name from SYS_DICTITEM where groupid='CODE_AJXZ' AND code = T.zatz_Jyqk) AS zatzJyqkMc
,(select name from SYS_DICTITEM where groupid='CODE_AJXLB' AND code = ASJBZ.ajxlb) AS ajxlbMc
FROM tb_st_asj T left join tb_st_asj_asjbz asjbz on T.asjbh = asjbz.asjbh
WHERE 1=1
WHERE T.XXSC_PDBZ=0
<include refid="queryWhereByReceiving"/>
) t1
<where>
......@@ -63,7 +63,7 @@
SELECT
count(*)
FROM tb_st_asj T left join tb_st_asj_asjbz asjbz on T.asjbh = asjbz.asjbh
WHERE 1=1
WHERE T.XXSC_PDBZ=0
<include refid="queryWhereByReceiving"/>
</select>
......@@ -158,5 +158,11 @@
<if test="ajzt == '0'">
and T.ZCJDDM not in('0600','0700','0800')
</if>
<if test="asjbhList != null and asjbhList.size()>0">
AND T.asjbh in
<foreach collection="asjbhList" index="index" item="asjbhitems" open="(" separator="," close=")">
#{asjbhitems}
</foreach>
</if>
</sql>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment