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
c79cece0
Commit
c79cece0
authored
Apr 22, 2019
by
liuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增人员画像功能,对人员的基本信息查询(查询全国人员常口的人员基本信息)
parent
f214e49c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
116 additions
and
69 deletions
+116
-69
src/main/java/com/founder/interservice/mapper/xzxt/RelationMapper.java
+2
-0
src/main/java/com/founder/interservice/ryhx/controller/RyhxController.java
+51
-42
src/main/java/com/founder/interservice/service/DataService.java
+2
-0
src/main/java/com/founder/interservice/service/impl/DataServiceImpl.java
+5
-0
src/main/resources/mybatis/mapper/xzxt/RelationMapper.xml
+30
-0
src/main/resources/static/css/base-ryhx.css
+8
-6
src/main/webapp/WEB-INF/jsp/ryhx/ryhx.jsp
+18
-21
No files found.
src/main/java/com/founder/interservice/mapper/xzxt/RelationMapper.java
View file @
c79cece0
...
@@ -30,6 +30,8 @@ public interface RelationMapper {
...
@@ -30,6 +30,8 @@ public interface RelationMapper {
*/
*/
public
List
<
Relation
>
getRelations
(
RelationFilter
relationFilter
)
throws
Exception
;
public
List
<
Relation
>
getRelations
(
RelationFilter
relationFilter
)
throws
Exception
;
public
List
<
Relation
>
getRelation
(
Relation
relation
)
throws
Exception
;
/**
/**
* 查询IMSI集合
* 查询IMSI集合
* @param relationFilter
* @param relationFilter
...
...
src/main/java/com/founder/interservice/ryhx/controller/RyhxController.java
View file @
c79cece0
...
@@ -3,7 +3,6 @@ package com.founder.interservice.ryhx.controller;
...
@@ -3,7 +3,6 @@ package com.founder.interservice.ryhx.controller;
import
com.founder.interservice.model.AutoTbStRy
;
import
com.founder.interservice.model.AutoTbStRy
;
import
com.founder.interservice.model.Relation
;
import
com.founder.interservice.model.Relation
;
import
com.founder.interservice.model.SysDictitem
;
import
com.founder.interservice.model.SysDictitem
;
import
com.founder.interservice.querymodel.RelationFilter
;
import
com.founder.interservice.service.DataService
;
import
com.founder.interservice.service.DataService
;
import
com.founder.interservice.service.SysDictService
;
import
com.founder.interservice.service.SysDictService
;
import
com.founder.interservice.util.Qgckzp
;
import
com.founder.interservice.util.Qgckzp
;
...
@@ -24,9 +23,9 @@ public class RyhxController {
...
@@ -24,9 +23,9 @@ public class RyhxController {
private
SysDictService
sysDictService
;
private
SysDictService
sysDictService
;
@Autowired
@Autowired
private
DataService
dataService
;
private
DataService
dataService
;
List
<
Relation
Filter
>
relationInList
=
new
ArrayList
<
RelationFilter
>();
List
<
Relation
>
relationInList
=
new
ArrayList
<
Relation
>();
RelationFilter
relationFilter
=
new
RelationFilter
();
List
<
Relation
>
relationLaList
=
new
ArrayList
<
Relation
>
();
String
flag
=
"0"
;
Relation
relation
=
new
Relation
()
;
int
z
=
0
;
int
z
=
0
;
@RequestMapping
(
value
=
"/toRyhxJsp"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/toRyhxJsp"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
...
@@ -37,6 +36,12 @@ public class RyhxController {
...
@@ -37,6 +36,12 @@ public class RyhxController {
try
{
try
{
Qgckzp
getryxx
=
new
Qgckzp
();
Qgckzp
getryxx
=
new
Qgckzp
();
ryxx
=
getryxx
.
getQgckAllxxXml
(
zjhm
);
ryxx
=
getryxx
.
getQgckAllxxXml
(
zjhm
);
System
.
out
.
print
(
"ryxx========人员常口"
+
ryxx
);
/*ryxx.setXbdm("0");
ryxx.setZylbdm("834");
ryxx.setJgdm("150627730000");
ryxx.setJyzkdm("10");
ryxx.setXldm("11");*/
if
(
ryxx
!=
null
){
if
(
ryxx
!=
null
){
//性别
//性别
String
xbdm
=
ryxx
.
getXbdm
();
String
xbdm
=
ryxx
.
getXbdm
();
...
@@ -99,15 +104,15 @@ public class RyhxController {
...
@@ -99,15 +104,15 @@ public class RyhxController {
relationInList
=
getXnxxList
(
zjhm
);
relationInList
=
getXnxxList
(
zjhm
);
ModelAndView
modelAndView
=
new
ModelAndView
(
"ryhx/ryhx"
);
ModelAndView
modelAndView
=
new
ModelAndView
(
"ryhx/ryhx"
);
modelAndView
.
addObject
(
"relationInList"
,
relationInList
);
modelAndView
.
addObject
(
"relationInList"
,
relationInList
);
modelAndView
.
addObject
(
"relationFilter"
,
relation
Filter
);
modelAndView
.
addObject
(
"relationFilter"
,
relation
);
return
modelAndView
;
return
modelAndView
;
}
}
public
List
<
Relation
Filter
>
getXnxxList
(
String
zjhm
){
public
List
<
Relation
>
getXnxxList
(
String
zjhm
){
int
k
=
0
;
int
k
=
0
;
int
m
=
0
;
int
m
=
0
;
z
=
z
+
1
;
z
=
z
+
1
;
Relation
Filter
relaFilter
=
new
RelationFilter
();
Relation
relaFilter
=
new
Relation
();
List
<
Relation
>
relationList
=
new
ArrayList
<
Relation
>();
List
<
Relation
>
relationList
=
new
ArrayList
<
Relation
>();
String
oftvalue
=
""
;
String
oftvalue
=
""
;
String
oftname
=
""
;
String
oftname
=
""
;
...
@@ -115,68 +120,72 @@ public class RyhxController {
...
@@ -115,68 +120,72 @@ public class RyhxController {
String
ottname
=
""
;
String
ottname
=
""
;
String
firvalue
=
""
;
String
firvalue
=
""
;
try
{
try
{
if
(
flag
==
"0"
)
{
relationFilter
.
setName
(
"身份证号码"
);
relationFilter
.
setValue
(
zjhm
);
}
if
(
zjhm
!=
null
&&
!
""
.
equals
(
zjhm
)){
if
(
zjhm
!=
null
&&
!
""
.
equals
(
zjhm
)){
relationFilter
.
setObjectfromvalue
(
zjhm
);
relation
.
setObjectfromvalue
(
zjhm
);
relationList
=
dataService
.
queryRelationsList
(
relationFilter
);
relationList
=
dataService
.
queryRelationList
(
relation
);
if
(
relationList
!=
null
&&
relationList
.
size
()
>
0
&&
flag
!=
"1"
)
{
if
(
relationList
!=
null
&&
relationList
.
size
()
>
0
)
{
flag
=
"1"
;
for
(
int
i
=
0
;
i
<
relationList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
relationList
.
size
();
i
++)
{
//此时Objectfromvalue为身份证号码,则用ottvalue(Objecttovalue)作为查询条件继续查询
//此时Objectfromvalue为身份证号码,则用ottvalue(Objecttovalue)作为查询条件继续查询
ottname
=
relationList
.
get
(
i
).
getObjecttotypename
();
ottname
=
relationList
.
get
(
i
).
getObjecttotypename
();
ottvalue
=
relationList
.
get
(
i
).
getObjecttovalue
();
ottvalue
=
relationList
.
get
(
i
).
getObjecttovalue
();
k
=
k
+
1
;
k
=
k
+
1
;
m
=
relationList
.
size
();
relaFilter
.
setObjecttovalue
(
ottvalue
);
relaFilter
.
setObjecttovalue
(
ottvalue
);
relaFilter
.
setObjecttotypename
(
ottname
);
relaFilter
.
setObjecttotypename
(
ottname
);
relationInList
.
add
(
relaFilter
);
relationInList
.
add
(
relaFilter
);
System
.
out
.
print
(
"relationInList111====="
+
relationInList
);
}
}
m
=
relationList
.
size
();
if
(
relationInList
.
size
()
>
0
)
{
if
(
relationInList
.
size
()
>
0
)
{
for
(
int
n
=
0
;
n
<
relationInList
.
size
();
n
++)
{
for
(
int
n
=
0
;
n
<
relationInList
.
size
();
n
++)
{
System
.
out
.
print
(
"relationInList111的size====="
+
relationInList
.
size
());
if
(
k
==
m
)
{
//for(int j = 0; j < relationList.size(); j++) {
for
(
Relation
rela
:
relationInList
)
{
if
(
k
==
m
)
{
if
(!
relationLaList
.
contains
(
rela
)){
firvalue
=
relationInList
.
get
(
n
).
getObjecttovalue
();
relationLaList
.
add
(
rela
);
if
(
z
<
6
)
{
}
getXnxxList
(
firvalue
);
firvalue
=
relationLaList
.
get
(
n
).
getObjecttovalue
();
if
(
z
<
6
)
{
getXnxxList
(
firvalue
);
}
}
}
}
}
/* }*/
}
}
// }
}
}
}
else
{
}
else
{
relationFilter
.
setObjectfromvalue
(
null
);
relation
.
setObjectfromvalue
(
null
);
relationFilter
.
setObjecttovalue
(
zjhm
);
relation
.
setObjecttovalue
(
zjhm
);
relationList
=
dataService
.
queryRelationsList
(
relationFilter
);
relationList
=
dataService
.
queryRelationList
(
relation
);
if
(
relationList
!=
null
&&
relationList
.
size
()
>
0
&&
flag
!=
"2"
)
{
if
(
relationList
!=
null
&&
relationList
.
size
()
>
0
)
{
flag
=
"2"
;
for
(
int
i
=
0
;
i
<
relationList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
relationList
.
size
();
i
++)
{
//此时Objecttovalue为身份证号码,则用oftvalue(Objectfromvalue)为条件进行查询
//此时Objecttovalue为身份证号码,则用oftvalue(Objectfromvalue)为条件进行查询
oftname
=
relationList
.
get
(
i
).
getObjectfromtypename
();
oftname
=
relationList
.
get
(
i
).
getObjectfromtypename
();
oftvalue
=
relationList
.
get
(
i
).
getObjectfromvalue
();
oftvalue
=
relationList
.
get
(
i
).
getObjectfromvalue
();
k
=
k
+
1
;
k
=
k
+
1
;
m
=
relationList
.
size
();
relaFilter
.
setObjectfromvalue
(
oftvalue
);
relaFilter
.
setObjectfromvalue
(
oftvalue
);
relaFilter
.
setObjectfromtypename
(
oftname
);
relaFilter
.
setObjectfromtypename
(
oftname
);
relationInList
.
add
(
relaFilter
);
if
(!
relationInList
.
contains
(
ottvalue
)){
System
.
out
.
print
(
"relationInList222====="
+
relationInList
);
relationInList
.
add
(
relaFilter
);
}
}
}
m
=
relationList
.
size
();
if
(
relationInList
.
size
()
>
0
)
{
if
(
relationInList
.
size
()
>
0
)
{
for
(
int
n
=
0
;
n
<
relationInList
.
size
();
n
++)
{
for
(
int
n
=
0
;
n
<
relationInList
.
size
();
n
++)
{
System
.
out
.
print
(
"relationInList222的size====="
+
relationInList
.
size
());
/* if(!relationInList.contains(relationList.get(n).getObjecttovalue())) {
//for(int j = 0; j < relationList.size(); j++) {
relationLaList.add(relationList.get(n));
if
(
k
==
m
)
{
System.out.print("relationInList去重33=====" + relationInList);
firvalue
=
relationInList
.
get
(
n
).
getObjectfromvalue
();
System.out.print("relationLaList去重33=====" + relationLaList);*/
if
(
z
<
6
)
{
if
(
k
==
m
)
{
getXnxxList
(
firvalue
);
for
(
Relation
rela
:
relationInList
)
{
if
(!
relationLaList
.
contains
(
rela
))
{
relationLaList
.
add
(
rela
);
}
firvalue
=
relationLaList
.
get
(
n
).
getObjectfromvalue
();
if
(
z
<
6
)
{
getXnxxList
(
firvalue
);
}
}
}
}
}
/*}*/
}
}
// }
}
}
}
}
}
}
...
@@ -184,7 +193,7 @@ public class RyhxController {
...
@@ -184,7 +193,7 @@ public class RyhxController {
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
System
.
out
.
print
(
"relation
InList888====="
+
relationIn
List
);
System
.
out
.
print
(
"relation
LaList=====nnnnnnnnn"
+
relationLa
List
);
return
relationInList
;
return
relationInList
;
}
}
...
...
src/main/java/com/founder/interservice/service/DataService.java
View file @
c79cece0
...
@@ -35,4 +35,6 @@ public interface DataService {
...
@@ -35,4 +35,6 @@ public interface DataService {
public
List
<
String
>
getRelationImsiList
(
RelationFilter
relationFilter
)
throws
InterServiceException
;
public
List
<
String
>
getRelationImsiList
(
RelationFilter
relationFilter
)
throws
InterServiceException
;
public
int
selectRelatNum
(
RelationFilter
relationFilter
)
throws
Exception
;
public
int
selectRelatNum
(
RelationFilter
relationFilter
)
throws
Exception
;
public
List
<
Relation
>
queryRelationList
(
Relation
relation
)
throws
Exception
;
}
}
src/main/java/com/founder/interservice/service/impl/DataServiceImpl.java
View file @
c79cece0
...
@@ -97,6 +97,11 @@ public class DataServiceImpl implements DataService {
...
@@ -97,6 +97,11 @@ public class DataServiceImpl implements DataService {
List
<
Relation
>
relations
=
relationMapper
.
getRelations
(
relationFilter
);
List
<
Relation
>
relations
=
relationMapper
.
getRelations
(
relationFilter
);
return
relations
;
return
relations
;
}
}
@Override
public
List
<
Relation
>
queryRelationList
(
Relation
relation
)
throws
Exception
{
List
<
Relation
>
relations
=
relationMapper
.
getRelation
(
relation
);
return
relations
;
}
public
List
<
String
>
getRelationImsiList
(
RelationFilter
relationFilter
)
throws
InterServiceException
{
public
List
<
String
>
getRelationImsiList
(
RelationFilter
relationFilter
)
throws
InterServiceException
{
List
<
String
>
imsis
=
null
;
List
<
String
>
imsis
=
null
;
...
...
src/main/resources/mybatis/mapper/xzxt/RelationMapper.xml
View file @
c79cece0
...
@@ -60,4 +60,34 @@
...
@@ -60,4 +60,34 @@
</if>
</if>
</where>
</where>
</select>
</select>
<select
id =
"getRelation"
parameterType=
"com.founder.interservice.model.Relation"
resultType=
"com.founder.interservice.model.Relation"
>
select
r.xxzjbh as xxzjbh,
r.objectfromtype,
r.objectfromtypename,
r.objectfromvalue,
r.objecttotypename,
r.objecttotype,
r.objecttovalue,
r.timestamp,
r.first_timestamp
from relation r
<where>
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
and r.xxzjbh = #{xxzjbh}
</if>
<if
test=
"objectfromtype != null and objectfromtype != ''"
>
and r.objectfromtype = #{objectfromtype}
</if>
<if
test=
"objectfromvalue != null and objectfromvalue != ''"
>
and r.objectfromvalue = #{objectfromvalue}
</if>
<if
test=
"objecttotype != null and objecttotype != ''"
>
and r.objecttotype = #{objecttotype}
</if>
<if
test=
"objecttovalue != null and objecttovalue != ''"
>
and r.objecttovalue = #{objecttovalue}
</if>
</where>
</select>
</mapper>
</mapper>
src/main/resources/static/css/base-ryhx.css
View file @
c79cece0
...
@@ -277,12 +277,14 @@ body .layui-layer-tips .layui-layer-content{/* color:#000; */}
...
@@ -277,12 +277,14 @@ body .layui-layer-tips .layui-layer-content{/* color:#000; */}
.layui-layer-tips
.layui-layer-content
{
background
:
rgb
(
10
,
135
,
165
)
!important
;
color
:
#fff
;}
.layui-layer-tips
.layui-layer-content
{
background
:
rgb
(
10
,
135
,
165
)
!important
;
color
:
#fff
;}
body
.layui-layer-tips
i
.layui-layer-TipsB
,
.layui-layer-tips
i
.layui-layer-TipsT
{
border-top-color
:
transparent
;
!important;
border-top-style
:
solid
;
border-right-color
:
transparent
!important
;
border-right-style
:
inherit
;
line-height
:
0
;
border-color
:
transparent
transparent
rgb
(
10
,
135
,
165
)
transparent
;
border-style
:
dashed
dashed
solid
dashed
;}
body
.layui-layer-tips
i
.layui-layer-TipsB
,
.layui-layer-tips
i
.layui-layer-TipsT
{
border-top-color
:
transparent
;
!important;
border-top-style
:
solid
;
border-right-color
:
transparent
!important
;
border-right-style
:
inherit
;
line-height
:
0
;
border-color
:
transparent
transparent
rgb
(
10
,
135
,
165
)
transparent
;
border-style
:
dashed
dashed
solid
dashed
;}
body
.layui-layer-tips
i
.layui-layer-TipsB
{
top
:
-16px
;}
body
.layui-layer-tips
i
.layui-layer-TipsB
{
top
:
-16px
;}
#content2
.new1
:nth-child
(
1
)
{
margin-left
:
-296px
;
margin-top
:
-202px
;}
#content2
.new1
:nth-child
(
1
)
{
margin-left
:
-305px
;
margin-top
:
-234px
;}
#content2
.new1
:nth-child
(
2
)
{
margin-left
:
-319px
;
margin-top
:
-80px
;}
#content2
.new1
:nth-child
(
2
)
{
margin-left
:
-323px
;
margin-top
:
-116px
;}
#content2
.new1
:nth-child
(
3
)
{
margin-left
:
69px
;
margin-top
:
-202px
;}
#content2
.new1
:nth-child
(
3
)
{
margin-left
:
76px
;
margin-top
:
-234px
;}
#content2
.new1
:nth-child
(
4
)
{
margin-left
:
90px
;
margin-top
:
-69px
;}
#content2
.new1
:nth-child
(
4
)
{
margin-left
:
98px
;
margin-top
:
-116px
;}
#content2
.new1
:nth-child
(
5
)
{
margin-left
:
-347px
;
margin-top
:
49px
;}
#content2
.new1
:nth-child
(
5
)
{
margin-left
:
-347px
;
margin-top
:
-1px
;}
#content2
.new1
:nth-child
(
6
)
{
margin-left
:
67px
;
margin-top
:
68px
;}
#content2
.new1
:nth-child
(
6
)
{
margin-left
:
115px
;
margin-top
:
-1px
;}
#content2
.new1
:nth-child
(
7
)
{
margin-left
:
-370px
;
margin-top
:
118px
;}
#content2
.new1
:nth-child
(
8
)
{
margin-left
:
131px
;
margin-top
:
118px
;}
/**/
/**/
/* @media screen and (max-width: 1600px){
/* @media screen and (max-width: 1600px){
body{font-size: 10px;}
body{font-size: 10px;}
...
...
src/main/webapp/WEB-INF/jsp/ryhx/ryhx.jsp
View file @
c79cece0
...
@@ -73,28 +73,25 @@
...
@@ -73,28 +73,25 @@
<div
class=
"new8 animated pulse w69"
><span
class=
"others5"
>
${ryxx.zylbdm}
</span></div>
<div
class=
"new8 animated pulse w69"
><span
class=
"others5"
>
${ryxx.zylbdm}
</span></div>
</div>
</div>
<div
id=
"content2"
class=
"content"
style=
"display:none;"
>
<div
id=
"content2"
class=
"content"
style=
"display:none;"
>
<div
class=
"new1 tabs-o animated pulse"
>
<span
class=
"tbs-title"
>
${relationFilter.name}
</span>
<div
class=
"tbs-cont"
>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
<div
class=
"fl ajbh"
>
${relationFilter.value}
</div>
</div>
</div>
<c:forEach
var=
"xnxx"
items=
"${relationInList}"
>
<c:forEach
var=
"xnxx"
items=
"${relationInList}"
>
<div
class=
"new1 tabs-o animated pulse"
>
<c:if
test=
"${not empty xnxx.objectfromtypename}"
>
<span
class=
"tbs-title"
>
${xnxx.objectfromtypename}
</span>
<div
class=
"new1 tabs-o animated pulse"
>
<div
class=
"tbs-cont"
>
<span
class=
"tbs-title"
>
${xnxx.objectfromtypename}
</span>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
<div
class=
"tbs-cont"
>
<div
class=
"fl ajbh"
>
${xnxx.objectfromvalue}
</div>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
</div>
<div
class=
"fl ajbh"
>
${xnxx.objectfromvalue}
</div>
</div>
</div>
<div
class=
"new1 tabs-o animated pulse"
style=
"margin-left: -298px;margin-top: -266px;"
>
</div>
<span
class=
"tbs-title"
>
${xnxx.objecttotypename}
</span>
</c:if>
<div
class=
"tbs-cont"
>
<c:if
test=
"${not empty xnxx.objecttotypename}"
>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
<div
class=
"new1 tabs-o animated pulse"
>
<div
class=
"fl ajbh"
>
${xnxx.objecttovalue}
</div>
<span
class=
"tbs-title"
>
${xnxx.objecttotypename}
</span>
</div>
<div
class=
"tbs-cont"
>
</div>
<div
class=
"fl count"
onclick=
"tips(this)"
>
3
</div>
<div
class=
"fl ajbh"
>
${xnxx.objecttovalue}
</div>
</div>
</div>
</c:if>
</c:forEach>
</c:forEach>
</div>
</div>
<div
id=
"content3"
class=
"content"
style=
"display:none;"
>
<div
id=
"content3"
class=
"content"
style=
"display:none;"
>
...
...
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