Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
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
杨亮
hnxtbaboot
Commits
066bc351
Commit
066bc351
authored
Oct 09, 2020
by
yangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改不同地市调用不同的指纹系统接口
parent
ea9daa96
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
112 additions
and
36 deletions
+112
-36
src/main/java/com/founder/controller/RyfkController.java
+24
-4
src/main/java/com/founder/controller/TbXwRycjController.java
+39
-17
src/main/java/com/founder/controller/XsjsbzController.java
+40
-14
src/main/java/com/founder/utils/Qgckzp.java
+1
-1
src/main/resources/application.properties
+8
-0
No files found.
src/main/java/com/founder/controller/RyfkController.java
View file @
066bc351
...
...
@@ -136,7 +136,7 @@ public class RyfkController {
continue
;
}
if
(
rwbh
!=
null
&&!
rwbh
.
equals
(
""
)){
tbZwbzxx
=
this
.
getZwbzxx
(
rwbh
);
tbZwbzxx
=
this
.
getZwbzxx
(
rwbh
,
user
);
if
(
tbZwbzxx
!=
null
&&
tbZwbzxx
.
getRwbh
()!=
null
&&!
""
.
equals
(
tbZwbzxx
.
getRwbh
())){
bzcs
++;
lzwbzxx
.
add
(
tbZwbzxx
);
...
...
@@ -217,7 +217,17 @@ public class RyfkController {
"&ysxt_asjxgrybh="
+
rybh
+
"&zzhwbdrwlxdm=1"
+
"&sfzw_pdbz=1"
;
String
url
=
p
.
getValue
(
"zwrwurl"
);
String
unitcode
=
user
.
getUnitcode
();
String
url
=
""
;
if
(
unitcode
!=
null
&&
unitcode
.
indexOf
(
"4601"
)==
0
){
url
=
p
.
getValue
(
"zwrwurl4601"
);
}
else
if
(
unitcode
!=
null
&&
unitcode
.
indexOf
(
"4602"
)==
0
){
url
=
p
.
getValue
(
"zwrwurl4602"
);
}
else
if
(
unitcode
!=
null
&&
unitcode
.
indexOf
(
"439003"
)==
0
){
url
=
p
.
getValue
(
"zwrwurl469003"
);
}
else
{
url
=
p
.
getValue
(
"zwrwurl4600"
);
}
String
urlstr
=
url
+
"?"
+
data
;
System
.
out
.
println
(
"=====查询比中链接参数=="
+
urlstr
);
imgstrs
=
hu
.
getJsonString
(
urlstr
);
...
...
@@ -265,12 +275,22 @@ public class RyfkController {
}
//获取指纹任务查询 根据任务编号查询指纹信息
public
TbZwbzxx
getZwbzxx
(
String
rwbh
)
{
public
TbZwbzxx
getZwbzxx
(
String
rwbh
,
User
user
)
{
CallDygabxxfw
fw
=
new
CallDygabxxfw
();
HttpClientUtil
hu
=
new
HttpClientUtil
();
String
imgstrs
=
null
;
String
unitcode
=
user
.
getUnitcode
();
try
{
String
url
=
p
.
getValue
(
"zwbzurl"
)
+
"?rwbh="
+
rwbh
;
String
url
=
""
;
if
(
unitcode
!=
null
&&
unitcode
.
indexOf
(
"4601"
)==
0
){
url
=
p
.
getValue
(
"zwbzurl4601"
)+
"?rwbh="
+
rwbh
;
}
else
if
(
unitcode
!=
null
&&
unitcode
.
indexOf
(
"4602"
)==
0
){
url
=
p
.
getValue
(
"zwbzurl4602"
)+
"?rwbh="
+
rwbh
;
}
else
if
(
unitcode
!=
null
&&
unitcode
.
indexOf
(
"439003"
)==
0
){
url
=
p
.
getValue
(
"zwbzurl469003"
)+
"?rwbh="
+
rwbh
;
}
else
{
url
=
p
.
getValue
(
"zwbzurl4600"
)+
"?rwbh="
+
rwbh
;
}
//String url = p.getValue("zwbzurl") + "?rwbh=B2020071015572778099822";
//String url = p.getValue("zwccurl") + "?rwbh=B2020071015572778099822";
imgstrs
=
hu
.
getJsonString
(
url
);
...
...
src/main/java/com/founder/controller/TbXwRycjController.java
View file @
066bc351
...
...
@@ -2229,13 +2229,19 @@ public class TbXwRycjController {
String
imgstrs
=
null
;
try
{
long
startTime
=
System
.
currentTimeMillis
();
//获取开始时间
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4302"
)==
0
){
imgstrs
=
hu
.
getJsonString
(
"http://65.65.66.27:8081/data/getPSNPalmByRybh?rybh="
+
zwbh
);
//株洲
//imgstrs = hu.getJsonString("http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="+zwbh);
}
else
{
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNRollByRybh?rybh="+zwbh);
imgstrs
=
hu
.
getJsonString
(
"http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="
+
zwbh
);
//湖南省厅
//imgstrs = hu.getJsonString("http://10.185.207.31:8082/data/getPSNPalmByRybh?rybh="+zwbh);
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4601"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNPalmByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://10.185.207.31:8082/data/getPSNPalmByRybh?rybh="
+
zwbh
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4602"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNPalmByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://74.41.47.102:8082/data/getPSNPalmByRybh?rybh="
+
zwbh
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"469003"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNPalmByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://74.55.64.132:8082/data/getPSNPalmByRybh?rybh="
+
zwbh
);
}
else
{
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNPalmByRybh?rybh="+zwbh);
//imgstrs = hu.getJsonString("http://10.142.16.171:8082/data/getPSNPalmByRybh?rybh="+zwbh);//湖南省厅
imgstrs
=
hu
.
getJsonString
(
"http://74.10.26.181:8082/data/getPSNPalmByRybh?rybh="
+
zwbh
);
}
long
endTime
=
System
.
currentTimeMillis
();
//获取结束时间
System
.
out
.
println
(
"接口调用掌纹返回时长: "
+(
endTime
-
startTime
)+
"ms"
);
...
...
@@ -2278,13 +2284,19 @@ public class TbXwRycjController {
String
imgstrs
=
null
;
try
{
long
startTime
=
System
.
currentTimeMillis
();
//获取开始时间
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4302"
)==
0
){
imgstrs
=
hu
.
getJsonString
(
"http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="
+
zwbh
);
//株洲
//imgstrs = hu.getJsonString("http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="+zwbh);
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4601"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="
+
zwbh
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4602"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://74.41.47.102:8082/data/getPSNRollByRybh?rybh="
+
zwbh
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"469003"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://74.55.64.132:8082/data/getPSNRollByRybh?rybh="
+
zwbh
);
}
else
{
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNRollByRybh?rybh="+zwbh);
imgstrs
=
hu
.
getJsonString
(
"http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="
+
zwbh
);
//湖南省厅
//imgstrs = hu.getJsonString("http://10.185.207.3
1:8082/data/getPSNRollByRybh?rybh="+zwbh);
//
imgstrs = hu.getJsonString("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="+zwbh);//湖南省厅
imgstrs
=
hu
.
getJsonString
(
"http://74.10.26.18
1:8082/data/getPSNRollByRybh?rybh="
+
zwbh
);
}
long
endTime
=
System
.
currentTimeMillis
();
//获取结束时间
System
.
out
.
println
(
"接口调用滚动指纹返回时长: "
+(
endTime
-
startTime
)+
"ms"
);
...
...
@@ -2344,13 +2356,23 @@ public class TbXwRycjController {
String
imgstrs
=
null
;
try
{
long
startTime
=
System
.
currentTimeMillis
();
//获取开始时间
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4302"
)==
0
){
imgstrs
=
hu
.
getJsonString
(
"http://65.65.66.27:8081/data/getPSNPlainByRybh?rybh="
+
zwbh
);
//株洲
//imgstrs = hu.getJsonString("http://10.185.207.31:8082/data/getPSNPlainByRybh?rybh="+zwbh);
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4601"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNPlainByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://10.185.207.31:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
System
.
out
.
println
(
"接口调用地址: http://10.185.207.31:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4602"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNPlainByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://74.41.47.102:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
System
.
out
.
println
(
"接口调用地址: http://74.41.47.102:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"469003"
)==
0
){
//imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNPlainByRybh?rybh="+zwbh);//株洲
imgstrs
=
hu
.
getJsonString
(
"http://74.55.64.132:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
System
.
out
.
println
(
"接口调用地址: http://74.55.64.132:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
}
else
{
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNPlainByRybh?rybh="+zwbh);
imgstrs
=
hu
.
getJsonString
(
"http://10.142.16.171:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
//湖南省厅
//imgstrs = hu.getJsonString("http://10.185.207.31:8082/data/getPSNPlainByRybh?rybh="+zwbh);
//imgstrs = hu.getJsonString("http://10.142.16.171:8082/data/getPSNPlainByRybh?rybh="+zwbh);//湖南省厅
imgstrs
=
hu
.
getJsonString
(
"http://74.10.26.181:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
System
.
out
.
println
(
"接口调用地址: http://74.10.26.181:8082/data/getPSNPlainByRybh?rybh="
+
zwbh
);
}
long
endTime
=
System
.
currentTimeMillis
();
//获取结束时间
System
.
out
.
println
(
"接口调用平面指纹返回时长: "
+(
endTime
-
startTime
)+
"ms"
);
...
...
src/main/java/com/founder/controller/XsjsbzController.java
View file @
066bc351
...
...
@@ -181,14 +181,18 @@ public class XsjsbzController {
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNRollByRybh?rybh="+zwbh);
//imgstrs = hu.getJsonString("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh=" + zwbh);
//String imgStr = getZwImagedata("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
//String imgStr = getZwImagedata("http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
//System.out.println("株洲捺印指纹图片="+imgStr);
//if(imgStr==null||"".equals(imgStr)){
// imgStr = getZwImagedata("http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
// System.out.println("省厅捺印指纹图片="+imgStr);
//}
//personList.get(0).setRybzzwtpBase64(imgStr);
String
zwbh
=
personList
.
get
(
0
).
getBarcode
();
String
imgStr
=
""
;
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4601"
)==
0
){
imgStr
=
getZwImagedata
(
"http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="
+
personList
.
get
(
0
).
getBarcode
(),
nyzw
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4602"
)==
0
){
imgStr
=
getZwImagedata
(
"http://74.41.47.102:8082/data/getPSNRollByRybh?rybh="
+
personList
.
get
(
0
).
getBarcode
(),
nyzw
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"469003"
)==
0
){
imgStr
=
getZwImagedata
(
"http://74.55.64.132:8082/data/getPSNRollByRybh?rybh="
+
personList
.
get
(
0
).
getBarcode
(),
nyzw
);
}
else
{
imgStr
=
getZwImagedata
(
"http://74.10.26.181:8082/data/getPSNRollByRybh?rybh="
+
personList
.
get
(
0
).
getBarcode
(),
nyzw
);
}
personList
.
get
(
0
).
setRybzzwtpBase64
(
imgStr
);
}
modelAndView
.
addObject
(
"person"
,
personList
.
get
(
0
));
}
...
...
@@ -311,20 +315,42 @@ public class XsjsbzController {
}
if
(
bdypersonList
.
size
()>
0
){
if
(
bdynyzw
!=
null
&&!
""
.
equals
(
bdynyzw
)){
String
imgStr
=
getZwImagedata
(
"http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="
+
bdypersonList
.
get
(
0
).
getBarcode
(),
bdynyzw
);
if
(
imgStr
==
null
||
""
.
equals
(
imgStr
)){
imgStr
=
getZwImagedata
(
"http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="
+
bdypersonList
.
get
(
0
).
getBarcode
(),
bdynyzw
);
String
zwbh
=
bdypersonList
.
get
(
0
).
getBarcode
();
String
imgStr
=
""
;
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4601"
)==
0
){
imgStr
=
getZwImagedata
(
"http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="
+
bdypersonList
.
get
(
0
).
getBarcode
(),
bdynyzw
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4602"
)==
0
){
imgStr
=
getZwImagedata
(
"http://74.41.47.102:8082/data/getPSNRollByRybh?rybh="
+
bdypersonList
.
get
(
0
).
getBarcode
(),
bdynyzw
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"469003"
)==
0
){
imgStr
=
getZwImagedata
(
"http://74.55.64.132:8082/data/getPSNRollByRybh?rybh="
+
bdypersonList
.
get
(
0
).
getBarcode
(),
bdynyzw
);
}
else
{
imgStr
=
getZwImagedata
(
"http://74.10.26.181:8082/data/getPSNRollByRybh?rybh="
+
bdypersonList
.
get
(
0
).
getBarcode
(),
bdynyzw
);
}
//String imgStr = getZwImagedata("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+bdypersonList.get(0).getBarcode(),bdynyzw);
//if(imgStr==null||"".equals(imgStr)){
// imgStr = getZwImagedata("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="+bdypersonList.get(0).getBarcode(),bdynyzw);
//}
bdypersonList
.
get
(
0
).
setRybzzwtpBase64
(
imgStr
);
}
modelAndView
.
addObject
(
"bdyperson"
,
bdypersonList
.
get
(
0
));
}
if
(
bdmbpersonList
.
size
()>
0
){
if
(
bdmbnyzw
!=
null
&&!
""
.
equals
(
bdmbnyzw
)){
String
imgStr
=
getZwImagedata
(
"http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="
+
bdmbpersonList
.
get
(
0
).
getBarcode
(),
bdmbnyzw
);
if
(
imgStr
==
null
||
""
.
equals
(
imgStr
)){
imgStr
=
getZwImagedata
(
"http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="
+
bdmbpersonList
.
get
(
0
).
getBarcode
(),
bdmbnyzw
);
String
zwbh
=
bdmbpersonList
.
get
(
0
).
getBarcode
();
String
imgStr
=
""
;
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4601"
)==
0
){
imgStr
=
getZwImagedata
(
"http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="
+
bdmbpersonList
.
get
(
0
).
getBarcode
(),
bdmbnyzw
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"4602"
)==
0
){
imgStr
=
getZwImagedata
(
"http://74.41.47.102:8082/data/getPSNRollByRybh?rybh="
+
bdmbpersonList
.
get
(
0
).
getBarcode
(),
bdmbnyzw
);
}
else
if
(
zwbh
!=
null
&&
zwbh
.
indexOf
(
"469003"
)==
0
){
imgStr
=
getZwImagedata
(
"http://74.55.64.132:8082/data/getPSNRollByRybh?rybh="
+
bdmbpersonList
.
get
(
0
).
getBarcode
(),
bdmbnyzw
);
}
else
{
imgStr
=
getZwImagedata
(
"http://74.10.26.181:8082/data/getPSNRollByRybh?rybh="
+
bdmbpersonList
.
get
(
0
).
getBarcode
(),
bdmbnyzw
);
}
//String imgStr = getZwImagedata("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+bdmbpersonList.get(0).getBarcode(),bdmbnyzw);
//if(imgStr==null||"".equals(imgStr)){
// imgStr = getZwImagedata("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="+bdmbpersonList.get(0).getBarcode(),bdmbnyzw);
//}
bdmbpersonList
.
get
(
0
).
setRybzzwtpBase64
(
imgStr
);
}
modelAndView
.
addObject
(
"bdmbperson"
,
bdmbpersonList
.
get
(
0
));
...
...
src/main/java/com/founder/utils/Qgckzp.java
View file @
066bc351
...
...
@@ -43,7 +43,7 @@ public class Qgckzp {
}
private
String
getConn
(){
String
url
=
"http://
10.100.17.115
:8080/NmgEsbQueryService/QueryLocalPersonForOther?conditions=sfzh="
;
String
url
=
"http://
26.3.16.58
:8080/NmgEsbQueryService/QueryLocalPersonForOther?conditions=sfzh="
;
// Properties properties = new Properties();
// java.io.InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("jdbc.properties");
// try {
...
...
src/main/resources/application.properties
View file @
066bc351
...
...
@@ -5,7 +5,15 @@ spring.profiles.active=dev
#server.servlet.session.cookie.name=mycookies
zwrwurl
=
http://172.18.117.11:8081/szxc/query/person
zwrwurl4601
=
http://172.18.117.11:8081/szxc/query/person
zwrwurl4602
=
http://172.18.117.11:8081/szxc/query/person
zwrwurl469003
=
http://172.18.117.11:8081/szxc/query/person
zwrwurl4600
=
http://172.18.117.11:8081/szxc/query/person
zwbzurl
=
http://172.18.117.11:8081/szxc/result/ltHit
zwbzurl4600
=
http://172.18.117.11:8081/szxc/result/ltHit
zwbzurl4601
=
http://172.18.117.11:8081/szxc/result/ltHit
zwbzurl469003
=
http://172.18.117.11:8081/szxc/result/ltHit
zwbzurl4602
=
http://172.18.117.11:8081/szxc/result/ltHit
zwccurl
=
http://172.18.117.11:8081/szxc/result/ttHit
qganurl
=
http://zhyy.xzxt.nm/getGabZyInfoByJyaqMatj.action
#qgzturl=http://localhost:7001/getZtryDetailByZjhm.action?zjhm=
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