Commit 284612ff by Leslie1w

指纹比对接口

parent c91190b0
......@@ -26,7 +26,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
"/doLogin","/toHome","/static*//**","/refreshCodeCache","/qxdoLogin","/queryNameByCode","/queryTypeCode","/queryZTreeDataByName","/toFjxz","/toCzsmxz","/download/**","/toObjectKJ","/catchimg","/iframe1","/iframe2","/xj","/loginIdCard","/report","/SavePersonInfo4Nmtc","/getZjxxbdjg","/singleLoginAct",
"/getYhkDetail","/getSwDetail","/getRyzjzpimages","/getRyzpimages","/getPmimages","/getGdimages","/irisking/collect/result","/getYthcjryxxByRybh","/checkClientVp","/insertZwbhAndZwfkxxByRybh","/pkiLogin/","/toPkiHome"
,"/dzwz","/queryDzwzList","/toDzwzDetail","/toHyxxLtjl","/toQzxx","/getQzcyDetail","/getQzltjlDetail","/getHyDetail","/queryHyxxLtjlList","/updateUser"
,"/getQzDetail","/getXsjsbdxq","/perTest","/swDownload","/getZzRxbd","/getZzRxbd2"
,"/getQzDetail","/getXsjsbdxq","/getZwbdxq","/perTest","/swDownload","/getZzRxbd","/getZzRxbd2"
);
......
......@@ -305,6 +305,102 @@ public class XsjsbzController {
return modelAndView;
}
/**
* 根据指纹比中的指纹编号查询详情信息
* @return
*/
@RequestMapping("/getZwbdxq")
@ResponseBody
public Map<String,Object> getZwbdxq(HttpServletRequest request, String nyzwbh, String xczwbh){
Map<String,Object> modelAndView = new HashMap<>();
List<TbXsjszyZwZwbzPerson> personList = new ArrayList<TbXsjszyZwZwbzPerson>();
List<TbXsjszyZwZwbzCase> caseList = new ArrayList<TbXsjszyZwZwbzCase>();
List<TbXsjszyZwZwbzJbxx> bzxxList = new ArrayList<TbXsjszyZwZwbzJbxx>();
BASE64Encoder encoder = new BASE64Encoder();
if(nyzwbh!=null&&!"".equals(nyzwbh)&&xczwbh!=null&&!"".equals(xczwbh)){
if(nyzwbh.indexOf(STAMPS_FINGERPRINT_R)==0){
nyzwbh = nyzwbh.substring(1);
}
bzxxList = xsjsbdService.getXsjsbdxqJbxx(nyzwbh,xczwbh);
}
if(nyzwbh!=null&&!"".equals(nyzwbh)){
if(nyzwbh.indexOf(STAMPS_FINGERPRINT_R)==0){
nyzwbh = nyzwbh.substring(1);
}
personList = xsjsbdService.getXsjsbdxqPerson(nyzwbh);
if(personList!=null&&personList.size()>0){
for(int i=0;i<personList.size();i++){
if(personList.get(i).getEdzzp()!=null&&personList.get(i).getEdzzp().length>0){
personList.get(i).setEdzzpBase64(encoder.encode(personList.get(i).getEdzzp()));
}
if(personList.get(i).getZmzp()!=null&&personList.get(i).getZmzp().length>0){
personList.get(i).setZmzpBase64(encoder.encode(personList.get(i).getZmzp()));
}
if(personList.get(i).getZcmzp()!=null&&personList.get(i).getZcmzp().length>0){
personList.get(i).setZcmzpBase64(encoder.encode(personList.get(i).getZcmzp()));
}
if(personList.get(i).getYcmzp()!=null&&personList.get(i).getYcmzp().length>0){
personList.get(i).setYcmzpBase64(encoder.encode(personList.get(i).getYcmzp()));
}
}
}
}
if(xczwbh!=null&&!"".equals(xczwbh)){
caseList = xsjsbdService.getXsjsbdxqCase(xczwbh);
}
//捺印指纹指位
String nyzw = "";
//现场指纹序号
String zwxh = "";
if(bzxxList!=null&&bzxxList.size()>0){
String type = bzxxList.get(0).getLa_type();
if(STAMPS_FINGERPRINT_LA.equals(type)){
nyzw = bzxxList.get(0).getDestseqno();
zwxh = bzxxList.get(0).getSrcseqno();
}else if(STAMPS_FINGERPRINT_AL.equals(type)){
zwxh = bzxxList.get(0).getDestseqno();
nyzw = bzxxList.get(0).getSrcseqno();
}
modelAndView.put("bzxx",bzxxList.get(0));
}
if(personList!=null&&personList.size()>0){
if(nyzw!=null&&!"".equals(nyzw)){
String imgStr ="";
if (personList.get(0).getBarcode()!= null && personList.get(0).getBarcode().indexOf(UNIT_CS) == 0) {
log.info("长沙捺印指纹url:{}",csZwUrl+"/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode());
imgStr = getZwImagedata(csZwUrl+"/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
}else if (personList.get(0).getBarcode()!= null && personList.get(0).getBarcode().indexOf(UNIT_ZZ) == 0) {
log.info("株洲捺印指纹url:{}",zzZwUrl+"/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode());
imgStr = getZwImagedata(zzZwUrl+"/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
}else {
//湖南省厅
String zwbhtmp = personList.get(0).getBarcode();
if(zwbhtmp!=null&&zwbhtmp.length()==22){
zwbhtmp = "R" + zwbhtmp;
}
log.info("省厅捺印指纹url:{}",stZwUrl+"/data/getPSNRollByRybh?rybh="+zwbhtmp);
imgStr = getZwImagedata(stZwUrl+"/data/getPSNRollByRybh?rybh="+zwbhtmp,nyzw);
}
personList.get(0).setRybzzwtpBase64(imgStr);
}
modelAndView.put("person",personList.get(0));
}
if(caseList!=null&&caseList.size()>0){
if(zwxh!=null&&!"".equals(zwxh)) {
List<TbXsjszyZwZwbzCase> caseZwList = xsjsbdService.getXsjsbdxqCaseZw(caseList.get(0).getBarcode(),zwxh);
if(caseZwList!=null&&caseZwList.size()>0&&caseZwList.get(0).getAjbzzwtp()!=null&&caseZwList.get(0).getAjbzzwtp().length>0){
caseList.get(0).setAjbzzwtpBase64(encoder.encode(caseZwList.get(0).getAjbzzwtp()));
}
}
modelAndView.put("casexx",caseList.get(0));
}
return modelAndView;
}
/**
* /调用指纹获取压缩图接口获取指纹图片
* @param url
......
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