Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
map-parent
Commits
7e820dbe
Commit
7e820dbe
authored
Aug 02, 2022
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通信信息研判是否为案件相关号码判断(标准)
parent
f0e33ca9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
13 deletions
+54
-13
service/publicapi/src/main/java/com/founder/publicapi/controller/ZtypService/ZtypController.java
+13
-0
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/ZtypMapper.java
+3
-0
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/ZtypMapper.xml
+29
-13
service/publicapi/src/main/java/com/founder/publicapi/service/ZtypService.java
+2
-0
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/ZtypServiceImpl.java
+7
-0
No files found.
service/publicapi/src/main/java/com/founder/publicapi/controller/ZtypService/ZtypController.java
View file @
7e820dbe
...
...
@@ -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
());
}
}
}
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/ZtypMapper.java
View file @
7e820dbe
...
...
@@ -72,4 +72,7 @@ public interface ZtypMapper{
List
<
AjThKshfxPojo
>
getkshConnectIpList
(
String
thbh
);
List
<
AjThKshfxPojo
>
getkshCashAccountList
(
String
thbh
);
int
getXsbkOrCbBshByPhoneNum
(
@Value
(
"phoneNum"
)
String
phoneNum
);
}
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/ZtypMapper.xml
View file @
7e820dbe
...
...
@@ -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
...
...
@@ -285,7 +286,7 @@
</choose>
</if>
<if
test=
"fwbsh.fwbshHm != null and fwbsh.fwbshHm != ''"
>
and instr(FWBSH_HM,
#{fwbsh.fwbshHm,jdbcType=VARCHAR}) > 0
and instr(FWBSH_HM, #{fwbsh.fwbshHm,jdbcType=VARCHAR}) > 0
</if>
<if
test=
"fwbsh.xxdjryGmsfhm != null and fwbsh.xxdjryGmsfhm != ''"
>
and XXDJRY_GMSFHM = #{fwbsh.xxdjryGmsfhm,jdbcType=VARCHAR}
...
...
@@ -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
...
...
@@ -1433,19 +1436,19 @@
,NULL
</if>
<if
test=
"zhfzxyrSg!=null and zhfzxyrSg!=''"
>
,cast(#{ zhfzxyrSg , jdbcType=VARCHAR } as
decimal (10, 2))
,cast(#{ zhfzxyrSg , jdbcType=VARCHAR } as decimal (10, 2))
</if>
<if
test=
"zhfzxyrSg==null or zhfzxyrSg==''"
>
,NULL
</if>
<if
test=
"zhfzxyrTz!=null and zhfzxyrTz!=''"
>
,cast(#{ zhfzxyrTz , jdbcType=VARCHAR } as
decimal (10, 2))
,cast(#{ zhfzxyrTz , jdbcType=VARCHAR } as decimal (10, 2))
</if>
<if
test=
"zhfzxyrTz==null or zhfzxyrTz==''"
>
,NULL
</if>
<if
test=
"zhfzxyrZc!=null and zhfzxyrZc!=''"
>
,cast(#{ zhfzxyrZc , jdbcType=VARCHAR } as
decimal (10, 2))
,cast(#{ zhfzxyrZc , jdbcType=VARCHAR } as decimal (10, 2))
</if>
<if
test=
"zhfzxyrZc==null or zhfzxyrZc==''"
>
,NULL
...
...
@@ -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>
service/publicapi/src/main/java/com/founder/publicapi/service/ZtypService.java
View file @
7e820dbe
...
...
@@ -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
);
}
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/ZtypServiceImpl.java
View file @
7e820dbe
...
...
@@ -1677,4 +1677,11 @@ public class ZtypServiceImpl implements ZtypService {
}
return
dateStr
;
}
@Override
public
Integer
judgePhone
(
String
phoneNum
)
{
//判断该手机号是否是串并案件中的手机号
int
count
=
ztypMapper
.
getXsbkOrCbBshByPhoneNum
(
phoneNum
);
return
count
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment