Commit 7e820dbe by yangyang

通信信息研判是否为案件相关号码判断(标准)

parent f0e33ca9
......@@ -401,4 +401,17 @@ public class ZtypController {
return MapRestResult.error("上传失败!"+e);
}
}
@OperLog(message = "判断该手机号是否可以查询信息",operation = OperationType.QUERY)
@PostMapping("/txxx/judgePhone")
@ApiOperation(value = "判断该手机号是否可以查询信息", notes = "判断该手机号是否可以查询信息")
public R judgePhone(String phoneNum){
try {
Integer count = ztypService.judgePhone(phoneNum);
return R.ok().data("count",count);
} catch (Exception e) {
e.printStackTrace();
return R.error(e.getMessage());
}
}
}
......@@ -72,4 +72,7 @@ public interface ZtypMapper{
List<AjThKshfxPojo> getkshConnectIpList(String thbh);
List<AjThKshfxPojo> getkshCashAccountList(String thbh);
int getXsbkOrCbBshByPhoneNum(@Value("phoneNum") String phoneNum);
}
......@@ -57,7 +57,8 @@
<include refid="fwbsh-queryParam"/>
order by djsj desc
</select>
<select id="selectSfzPageByFwbsh" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TbStZtypFwbsh">
<select id="selectSfzPageByFwbsh"
resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TbStZtypFwbsh">
select
<include refid="fwbsh-queryColumn"/>
from tb_st_ztyp_fwbsh
......@@ -897,7 +898,8 @@
FROM tb_yw_xshb_xsglxyr t
where xxsc_pdbz='0' and xsbh = #{xsbh , jdbcType=VARCHAR }
</select>
<insert id="addLaShse" parameterType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TbXwLaShse" useGeneratedKeys="false">
<insert id="addLaShse" parameterType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TbXwLaShse"
useGeneratedKeys="false">
INSERT
INTO tb_xw_la_shse (
GLXX_XXZJBH
......@@ -1220,7 +1222,8 @@
)
</insert>
<insert id="addZbfzxyrShse" parameterType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TbXwZbfzxyrShse" useGeneratedKeys="false">
<insert id="addZbfzxyrShse" parameterType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TbXwZbfzxyrShse"
useGeneratedKeys="false">
INSERT
INTO tb_xw_zbfzxyr_shse (
ZHFZXYR_MSGRCC_JYQK
......@@ -1606,7 +1609,8 @@
)
</insert>
<!-- 根据手机号获取案件信息 -->
<select id="getAsjxxList" parameterType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TxxxParam" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TbStAsj3">
<select id="getAsjxxList" parameterType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TxxxParam"
resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.TbStAsj3">
SELECT
A.ASJBH,
A.AJMC,
......@@ -1641,7 +1645,8 @@
AND B.XXSC_PDBZ = '0'
AND A.XXSC_PDBZ = '0'
</select>
<select id="getGroupXyrListByThbh" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjThKshfxPojo">
<select id="getGroupXyrListByThbh"
resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjThKshfxPojo">
SELECT ZJHM as id,
concat('嫌疑人身份证号:',ZJHM) as name,
'person' as Type,
......@@ -1650,7 +1655,8 @@
FROM tb_yw_shse_thglxyr
where THBH = #{ thbh , jdbcType=VARCHAR }
</select>
<select id="getKshConnectPhoneList" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjThKshfxPojo">
<select id="getKshConnectPhoneList"
resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjThKshfxPojo">
select thxyr.ZJHM as parentId,
'person' as parentType,
callInfo.DFHM as id,
......@@ -1663,7 +1669,8 @@
where thxyr.THBH = #{ thbh,jdbcType= VARCHAR }
group by thxyr.ZJHM, callInfo.DFHM
</select>
<select id="getkshConnectIpList" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjThKshfxPojo">
<select id="getkshConnectIpList"
resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjThKshfxPojo">
select thxyr.ZJHM as parentId,
'person' as parentType,
netConn.TGR_IP as id,
......@@ -1694,7 +1701,8 @@
'asjbh' as type
from tb_yw_shse_thglxyr thxyr
join tb_xw_zbfzxyr zbxyr on thxyr.ZJHM = zbxyr.ZHFZXYR_CYZJ_ZJHM
join tb_st_asj asj on zbxyr.ASJBH = asj.ASJBH and asj.LARQ between DATE_FORMAT('2015-1-1','%Y-%m-%d %H:%i:%S') and now()
join tb_st_asj asj on zbxyr.ASJBH = asj.ASJBH and asj.LARQ between DATE_FORMAT('2015-1-1','%Y-%m-%d %H:%i:%S')
and now()
where zbxyr.XXSC_PDBZ = '0' and asj.XXSC_PDBZ = '0'
and thxyr.ZJHM in
<foreach collection="fzXyrList" separator="," close=")" open="(" item="item" index="index">
......@@ -1702,7 +1710,8 @@
</foreach>
group by thxyr.ZJHM, asj.ASJBH, asj.AJLBDM
</select>
<select id="getkshCashAccountList" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjThKshfxPojo">
<select id="getkshCashAccountList"
resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjThKshfxPojo">
select thxyr.ZJHM as parentId,
'person' as parentType,
bankTrans.SKR_YHKH as id,
......@@ -1713,4 +1722,11 @@
where thxyr.THBH = #{ thbh,jdbcType= VARCHAR }
group by thxyr.ZJHM, bankTrans.SKR_YHKH;
</select>
<!-- 判断该手机号在串并信息表中是否存在 -->
<select id="getXsbkOrCbBshByPhoneNum" parameterType="string" resultType="int">
SELECT
( SELECT count( 1 ) FROM tb_yw_xsbk_bkxx WHERE XXSC_PDBZ = '0' AND BKDX_HM = #{phoneNum}
) + (
SELECT count( 1 ) FROM tb_yw_xsz_cbaj WHERE XXSC_PDBZ = '0' AND CBXGFWBZH = #{phoneNum})total
</select>
</mapper>
......@@ -70,4 +70,6 @@ public interface ZtypService{
Map<String, Object> getAsjxxByPhoneNum(TxxxParam txxxParam) throws Exception;
MapRestResult getThfxAccompliceBythId(String thbh, String fxwd, String commonRelationshipNum);
Integer judgePhone(String phoneNum);
}
......@@ -1677,4 +1677,11 @@ public class ZtypServiceImpl implements ZtypService {
}
return dateStr;
}
@Override
public Integer judgePhone(String phoneNum) {
//判断该手机号是否是串并案件中的手机号
int count = ztypMapper.getXsbkOrCbBshByPhoneNum(phoneNum);
return count;
}
}
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