Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
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
曹鹏
bigdatainterservice
Commits
78479482
Commit
78479482
authored
Apr 17, 2019
by
liuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增人员画像功能,对人员的虚拟信息查询(挖掘RELATION表)
parent
c05196ad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
21 deletions
+119
-21
src/main/java/com/founder/interservice/querymodel/RelationFilter.java
+3
-0
src/main/java/com/founder/interservice/ryhx/controller/RyhxController.java
+101
-4
src/main/resources/mybatis/mapper/xzxt/RelationMapper.xml
+3
-0
src/main/webapp/WEB-INF/jsp/ryhx/ryhx.jsp
+12
-17
No files found.
src/main/java/com/founder/interservice/querymodel/RelationFilter.java
View file @
78479482
...
...
@@ -28,4 +28,7 @@ public class RelationFilter {
private
String
kssj
;
private
String
jssj
;
private
Date
djsj
;
private
String
value
;
private
String
name
;
private
String
type
;
}
src/main/java/com/founder/interservice/ryhx/controller/RyhxController.java
View file @
78479482
...
...
@@ -3,6 +3,8 @@ package com.founder.interservice.ryhx.controller;
import
com.founder.interservice.model.AutoTbStRy
;
import
com.founder.interservice.model.Relation
;
import
com.founder.interservice.model.SysDictitem
;
import
com.founder.interservice.querymodel.RelationFilter
;
import
com.founder.interservice.service.DataService
;
import
com.founder.interservice.service.SysDictService
;
import
com.founder.interservice.util.Qgckzp
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -12,11 +14,20 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.servlet.ModelAndView
;
import
java.util.ArrayList
;
import
java.util.List
;
@Controller
@CrossOrigin
public
class
RyhxController
{
@Autowired
private
SysDictService
sysDictService
;
@Autowired
private
DataService
dataService
;
List
<
RelationFilter
>
relationInList
=
new
ArrayList
<
RelationFilter
>();
RelationFilter
relationFilter
=
new
RelationFilter
();
String
flag
=
"0"
;
int
z
=
0
;
@RequestMapping
(
value
=
"/toRyhxJsp"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
ModelAndView
toRyhxJsp
(
String
zjhm
){
...
...
@@ -84,11 +95,97 @@ public class RyhxController {
/*虚拟信息查询
根据身份证编号查询RELATION表查询该用户的相关虚拟信息:QQ、微信、银行卡号等等*/
@RequestMapping
(
value
=
"/getXnxx"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
Relation
getXnxx
(
String
zjhm
){
Relation
relation
=
new
Relation
();
return
relation
;
public
ModelAndView
getXnxx
(
String
zjhm
){
relationInList
=
getXnxxList
(
zjhm
);
ModelAndView
modelAndView
=
new
ModelAndView
(
"ryhx/ryhx"
);
modelAndView
.
addObject
(
"relationInList"
,
relationInList
);
modelAndView
.
addObject
(
"relationFilter"
,
relationFilter
);
return
modelAndView
;
}
public
List
<
RelationFilter
>
getXnxxList
(
String
zjhm
){
int
k
=
0
;
int
m
=
0
;
z
=
z
+
1
;
RelationFilter
relaFilter
=
new
RelationFilter
();
List
<
Relation
>
relationList
=
new
ArrayList
<
Relation
>();
String
oftvalue
=
""
;
String
oftname
=
""
;
String
ottvalue
=
""
;
String
ottname
=
""
;
String
firvalue
=
""
;
try
{
if
(
flag
==
"0"
)
{
relationFilter
.
setName
(
"身份证号码"
);
relationFilter
.
setValue
(
zjhm
);
}
if
(
zjhm
!=
null
&&
!
""
.
equals
(
zjhm
)){
relationFilter
.
setObjectfromvalue
(
zjhm
);
relationList
=
dataService
.
queryRelationsList
(
relationFilter
);
if
(
relationList
!=
null
&&
relationList
.
size
()
>
0
&&
flag
!=
"1"
)
{
flag
=
"1"
;
for
(
int
i
=
0
;
i
<
relationList
.
size
();
i
++)
{
//此时Objectfromvalue为身份证号码,则用ottvalue(Objecttovalue)作为查询条件继续查询
ottname
=
relationList
.
get
(
i
).
getObjecttotypename
();
ottvalue
=
relationList
.
get
(
i
).
getObjecttovalue
();
k
=
k
+
1
;
m
=
relationList
.
size
();
relaFilter
.
setObjecttovalue
(
ottvalue
);
relaFilter
.
setObjecttotypename
(
ottname
);
relationInList
.
add
(
relaFilter
);
System
.
out
.
print
(
"relationInList111====="
+
relationInList
);
}
if
(
relationInList
.
size
()
>
0
)
{
for
(
int
n
=
0
;
n
<
relationInList
.
size
();
n
++)
{
System
.
out
.
print
(
"relationInList111的size====="
+
relationInList
.
size
());
//for(int j = 0; j < relationList.size(); j++) {
if
(
k
==
m
)
{
firvalue
=
relationInList
.
get
(
n
).
getObjecttovalue
();
if
(
z
<
6
)
{
getXnxxList
(
firvalue
);
}
}
}
// }
}
}
else
{
relationFilter
.
setObjectfromvalue
(
null
);
relationFilter
.
setObjecttovalue
(
zjhm
);
relationList
=
dataService
.
queryRelationsList
(
relationFilter
);
if
(
relationList
!=
null
&&
relationList
.
size
()
>
0
&&
flag
!=
"2"
)
{
flag
=
"2"
;
for
(
int
i
=
0
;
i
<
relationList
.
size
();
i
++)
{
//此时Objecttovalue为身份证号码,则用oftvalue(Objectfromvalue)为条件进行查询
oftname
=
relationList
.
get
(
i
).
getObjectfromtypename
();
oftvalue
=
relationList
.
get
(
i
).
getObjectfromvalue
();
k
=
k
+
1
;
m
=
relationList
.
size
();
relaFilter
.
setObjectfromvalue
(
oftvalue
);
relaFilter
.
setObjectfromtypename
(
oftname
);
relationInList
.
add
(
relaFilter
);
System
.
out
.
print
(
"relationInList222====="
+
relationInList
);
}
if
(
relationInList
.
size
()
>
0
)
{
for
(
int
n
=
0
;
n
<
relationInList
.
size
();
n
++)
{
System
.
out
.
print
(
"relationInList222的size====="
+
relationInList
.
size
());
//for(int j = 0; j < relationList.size(); j++) {
if
(
k
==
m
)
{
firvalue
=
relationInList
.
get
(
n
).
getObjectfromvalue
();
if
(
z
<
6
)
{
getXnxxList
(
firvalue
);
}
}
}
// }
}
}
}
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
System
.
out
.
print
(
"relationInList888====="
+
relationInList
);
return
relationInList
;
}
}
src/main/resources/mybatis/mapper/xzxt/RelationMapper.xml
View file @
78479482
...
...
@@ -14,6 +14,9 @@
<if
test=
"objecttotype != null and objecttotype != ''"
>
and r.objecttotype = #{objecttotype}
</if>
<if
test=
"objecttovalue != null and objecttovalue != ''"
>
and r.objecttovalue = #{objecttovalue}
</if>
<if
test=
"kssj != null and kssj != ''"
>
and to_date(r.timestamp,'yyyy-MM-dd HH24:mi:ss')
<![CDATA[>=]]>
to_date(#{kssj},'yyyy-MM-dd HH24:mi:ss')
</if>
...
...
src/main/webapp/WEB-INF/jsp/ryhx/ryhx.jsp
View file @
78479482
...
...
@@ -26,8 +26,8 @@
<!--title start-->
<!--菜单-->
<ul
class=
"hx-menu"
>
<li
class=
"current"
onclick=
"toggle(this)"
><img
src=
"/images/mebu1.png"
class=
"mebu-bg"
/><img
src=
"/images/mebu3.png"
class=
"mebu-bg-long"
/>
基本信息
</li>
<li
onclick=
"toggle(this)"
><img
src=
"/images/mebu1.png"
class=
"mebu-bg"
/><img
src=
"/images/mebu3.png"
class=
"mebu-bg-long"
/>
虚拟信息
</li>
<li
onclick=
"toggle(this)"
><img
src=
"/images/mebu1.png"
class=
"mebu-bg"
/><img
src=
"/images/mebu3.png"
class=
"mebu-bg-long"
/>
基本信息
</li>
<li
class=
"current"
onclick=
"toggle(this)"
><img
src=
"/images/mebu1.png"
class=
"mebu-bg"
/><img
src=
"/images/mebu3.png"
class=
"mebu-bg-long"
/>
虚拟信息
</li>
<li
onclick=
"toggle(this)"
><img
src=
"/images/mebu1.png"
class=
"mebu-bg"
/><img
src=
"/images/mebu3.png"
class=
"mebu-bg-long"
/>
轨迹信息
</li>
<li
onclick=
"toggle(this)"
><img
src=
"/images/mebu1.png"
class=
"mebu-bg"
/><img
src=
"/images/mebu3.png"
class=
"mebu-bg-long"
/>
背景信息
</li>
<li
onclick=
"toggle(this)"
><img
src=
"/images/mebu1.png"
class=
"mebu-bg"
/><img
src=
"/images/mebu3.png"
class=
"mebu-bg-long"
/>
涉案信息
</li>
...
...
@@ -74,33 +74,28 @@
</div>
<div
id=
"content2"
class=
"content"
style=
"display:none;"
>
<div
class=
"new1 tabs-o animated pulse"
style=
"margin-left: -298px;margin-top: -266px;"
>
<span
class=
"tbs-title"
>
Q
Q
</span>
<span
class=
"tbs-title"
>
${relationFilter.name}
</span>
<div
class=
"tbs-cont"
>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
<div
class=
"fl ajbh"
>
747836970
</div>
<div
class=
"fl ajbh"
>
${relationFilter.value}
</div>
</div>
</div>
<div
class=
"new2 tabs-o animated pulse"
style=
"margin-left: -317px;margin-top: -132px;"
>
<span
class=
"tbs-title"
>
微信
</span>
<div
class=
"tbs-cont"
>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
<div
class=
"fl ajbh"
>
747836970
</div>
</div>
</div>
<div
class=
"new3 tabs-o animated pulse"
style=
"margin-left: 106px;"
>
<span
class=
"tbs-title"
>
手机号码
</span>
<c:forEach
var=
"xnxx"
items=
"${relationInList}"
>
<div
class=
"new1 tabs-o animated pulse"
style=
"margin-left: -298px;margin-top: -266px;"
>
<span
class=
"tbs-title"
>
${xnxx.objectfromtypename}
</span>
<div
class=
"tbs-cont"
>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
<div
class=
"fl ajbh"
>
13747836970
</div>
<div
class=
"fl ajbh"
>
${xnxx.objectfromvalue}
</div>
</div>
</div>
<div
class=
"new4 tabs-o animated pulse"
style=
"margin-left: 128
px;"
>
<span
class=
"tbs-title"
>
银行卡
</span>
<div
class=
"new1 tabs-o animated pulse"
style=
"margin-left: -298px;margin-top: -266
px;"
>
<span
class=
"tbs-title"
>
${xnxx.objecttotypename}
</span>
<div
class=
"tbs-cont"
>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
<div
class=
"fl ajbh"
>
工商银行:6217220502000666413
</div>
<div
class=
"fl ajbh"
>
${xnxx.objecttovalue}
</div>
</div>
</div>
</c:forEach>
</div>
<div
id=
"content3"
class=
"content"
style=
"display:none;"
>
<div
class=
"new1 tabs-o animated pulse"
style=
"margin-left: -298px;"
>
...
...
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