Commit 066bc351 by yangliang

修改不同地市调用不同的指纹系统接口

parent ea9daa96
...@@ -136,7 +136,7 @@ public class RyfkController { ...@@ -136,7 +136,7 @@ public class RyfkController {
continue; continue;
} }
if (rwbh!=null&&!rwbh.equals("")){ if (rwbh!=null&&!rwbh.equals("")){
tbZwbzxx = this.getZwbzxx(rwbh); tbZwbzxx = this.getZwbzxx(rwbh,user);
if(tbZwbzxx!=null&&tbZwbzxx.getRwbh()!=null&&!"".equals(tbZwbzxx.getRwbh())){ if(tbZwbzxx!=null&&tbZwbzxx.getRwbh()!=null&&!"".equals(tbZwbzxx.getRwbh())){
bzcs ++; bzcs ++;
lzwbzxx.add(tbZwbzxx); lzwbzxx.add(tbZwbzxx);
...@@ -217,7 +217,17 @@ public class RyfkController { ...@@ -217,7 +217,17 @@ public class RyfkController {
"&ysxt_asjxgrybh="+rybh+ "&ysxt_asjxgrybh="+rybh+
"&zzhwbdrwlxdm=1"+ "&zzhwbdrwlxdm=1"+
"&sfzw_pdbz=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; String urlstr = url+"?"+data;
System.out.println("=====查询比中链接参数==" + urlstr); System.out.println("=====查询比中链接参数==" + urlstr);
imgstrs = hu.getJsonString(urlstr); imgstrs = hu.getJsonString(urlstr);
...@@ -265,12 +275,22 @@ public class RyfkController { ...@@ -265,12 +275,22 @@ public class RyfkController {
} }
//获取指纹任务查询 根据任务编号查询指纹信息 //获取指纹任务查询 根据任务编号查询指纹信息
public TbZwbzxx getZwbzxx(String rwbh) { public TbZwbzxx getZwbzxx(String rwbh,User user) {
CallDygabxxfw fw = new CallDygabxxfw(); CallDygabxxfw fw = new CallDygabxxfw();
HttpClientUtil hu = new HttpClientUtil(); HttpClientUtil hu = new HttpClientUtil();
String imgstrs = null; String imgstrs = null;
String unitcode = user.getUnitcode();
try { 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("zwbzurl") + "?rwbh=B2020071015572778099822";
//String url = p.getValue("zwccurl") + "?rwbh=B2020071015572778099822"; //String url = p.getValue("zwccurl") + "?rwbh=B2020071015572778099822";
imgstrs = hu.getJsonString(url); imgstrs = hu.getJsonString(url);
......
...@@ -2229,13 +2229,19 @@ public class TbXwRycjController { ...@@ -2229,13 +2229,19 @@ public class TbXwRycjController {
String imgstrs = null; String imgstrs = null;
try { try {
long startTime=System.currentTimeMillis();//获取开始时间 long startTime=System.currentTimeMillis();//获取开始时间
if(zwbh!=null&&zwbh.indexOf("4302")==0){ if(zwbh!=null&&zwbh.indexOf("4601")==0){
imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNPalmByRybh?rybh="+zwbh);//株洲 //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); 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{ }else{
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNRollByRybh?rybh="+zwbh); //imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNPalmByRybh?rybh="+zwbh);
imgstrs = hu.getJsonString("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="+zwbh);//湖南省厅 //imgstrs = hu.getJsonString("http://10.142.16.171:8082/data/getPSNPalmByRybh?rybh="+zwbh);//湖南省厅
//imgstrs = hu.getJsonString("http://10.185.207.31:8082/data/getPSNPalmByRybh?rybh="+zwbh); imgstrs = hu.getJsonString("http://74.10.26.181:8082/data/getPSNPalmByRybh?rybh="+zwbh);
} }
long endTime=System.currentTimeMillis();//获取结束时间 long endTime=System.currentTimeMillis();//获取结束时间
System.out.println("接口调用掌纹返回时长: "+(endTime-startTime)+"ms"); System.out.println("接口调用掌纹返回时长: "+(endTime-startTime)+"ms");
...@@ -2278,13 +2284,19 @@ public class TbXwRycjController { ...@@ -2278,13 +2284,19 @@ public class TbXwRycjController {
String imgstrs = null; String imgstrs = null;
try { try {
long startTime=System.currentTimeMillis();//获取开始时间 long startTime=System.currentTimeMillis();//获取开始时间
if(zwbh!=null&&zwbh.indexOf("4302")==0){ if(zwbh!=null&&zwbh.indexOf("4601")==0){
imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+zwbh);//株洲 //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); 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{ }else{
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNRollByRybh?rybh="+zwbh); //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.142.16.171:8082/data/getPSNRollByRybh?rybh="+zwbh);//湖南省厅
//imgstrs = hu.getJsonString("http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="+zwbh); imgstrs = hu.getJsonString("http://74.10.26.181:8082/data/getPSNRollByRybh?rybh="+zwbh);
} }
long endTime=System.currentTimeMillis();//获取结束时间 long endTime=System.currentTimeMillis();//获取结束时间
System.out.println("接口调用滚动指纹返回时长: "+(endTime-startTime)+"ms"); System.out.println("接口调用滚动指纹返回时长: "+(endTime-startTime)+"ms");
...@@ -2344,13 +2356,23 @@ public class TbXwRycjController { ...@@ -2344,13 +2356,23 @@ public class TbXwRycjController {
String imgstrs = null; String imgstrs = null;
try { try {
long startTime=System.currentTimeMillis();//获取开始时间 long startTime=System.currentTimeMillis();//获取开始时间
if(zwbh!=null&&zwbh.indexOf("4302")==0){ if(zwbh!=null&&zwbh.indexOf("4601")==0){
imgstrs = hu.getJsonString("http://65.65.66.27:8081/data/getPSNPlainByRybh?rybh="+zwbh);//株洲 //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); 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{ }else{
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNPlainByRybh?rybh="+zwbh); //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.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://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();//获取结束时间 long endTime=System.currentTimeMillis();//获取结束时间
System.out.println("接口调用平面指纹返回时长: "+(endTime-startTime)+"ms"); System.out.println("接口调用平面指纹返回时长: "+(endTime-startTime)+"ms");
......
...@@ -181,14 +181,18 @@ public class XsjsbzController { ...@@ -181,14 +181,18 @@ public class XsjsbzController {
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNRollByRybh?rybh="+zwbh); //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.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://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
String zwbh = personList.get(0).getBarcode();
//String imgStr = getZwImagedata("http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw); String imgStr = "";
//System.out.println("株洲捺印指纹图片="+imgStr); if(zwbh!=null&&zwbh.indexOf("4601")==0){
//if(imgStr==null||"".equals(imgStr)){ imgStr = getZwImagedata("http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
// imgStr = getZwImagedata("http://10.185.207.31:8082/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw); }else if(zwbh!=null&&zwbh.indexOf("4602")==0){
// System.out.println("省厅捺印指纹图片="+imgStr); imgStr = getZwImagedata("http://74.41.47.102:8082/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
//} }else if(zwbh!=null&&zwbh.indexOf("469003")==0){
//personList.get(0).setRybzzwtpBase64(imgStr); 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)); modelAndView.addObject("person",personList.get(0));
} }
...@@ -311,20 +315,42 @@ public class XsjsbzController { ...@@ -311,20 +315,42 @@ public class XsjsbzController {
} }
if(bdypersonList.size()>0){ if(bdypersonList.size()>0){
if(bdynyzw!=null&&!"".equals(bdynyzw)){ if(bdynyzw!=null&&!"".equals(bdynyzw)){
String imgStr = getZwImagedata("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+bdypersonList.get(0).getBarcode(),bdynyzw); String zwbh = bdypersonList.get(0).getBarcode();
if(imgStr==null||"".equals(imgStr)){ String imgStr = "";
imgStr = getZwImagedata("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="+bdypersonList.get(0).getBarcode(),bdynyzw); 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); bdypersonList.get(0).setRybzzwtpBase64(imgStr);
} }
modelAndView.addObject("bdyperson",bdypersonList.get(0)); modelAndView.addObject("bdyperson",bdypersonList.get(0));
} }
if(bdmbpersonList.size()>0){ if(bdmbpersonList.size()>0){
if(bdmbnyzw!=null&&!"".equals(bdmbnyzw)){ if(bdmbnyzw!=null&&!"".equals(bdmbnyzw)){
String imgStr = getZwImagedata("http://65.65.66.27:8081/data/getPSNRollByRybh?rybh="+bdmbpersonList.get(0).getBarcode(),bdmbnyzw); String zwbh = bdmbpersonList.get(0).getBarcode();
if(imgStr==null||"".equals(imgStr)){ String imgStr = "";
imgStr = getZwImagedata("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="+bdmbpersonList.get(0).getBarcode(),bdmbnyzw); 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); bdmbpersonList.get(0).setRybzzwtpBase64(imgStr);
} }
modelAndView.addObject("bdmbperson",bdmbpersonList.get(0)); modelAndView.addObject("bdmbperson",bdmbpersonList.get(0));
......
...@@ -43,7 +43,7 @@ public class Qgckzp { ...@@ -43,7 +43,7 @@ public class Qgckzp {
} }
private String getConn(){ 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(); // Properties properties = new Properties();
// java.io.InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("jdbc.properties"); // java.io.InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("jdbc.properties");
// try { // try {
......
...@@ -5,7 +5,15 @@ spring.profiles.active=dev ...@@ -5,7 +5,15 @@ spring.profiles.active=dev
#server.servlet.session.cookie.name=mycookies #server.servlet.session.cookie.name=mycookies
zwrwurl=http://172.18.117.11:8081/szxc/query/person 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 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 zwccurl=http://172.18.117.11:8081/szxc/result/ttHit
qganurl=http://zhyy.xzxt.nm/getGabZyInfoByJyaqMatj.action qganurl=http://zhyy.xzxt.nm/getGabZyInfoByJyaqMatj.action
#qgzturl=http://localhost:7001/getZtryDetailByZjhm.action?zjhm= #qgzturl=http://localhost:7001/getZtryDetailByZjhm.action?zjhm=
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