Commit 34eb197c by yangliang

修改中科虹霸虹膜接收接口

parent 4d8752f5
......@@ -20,7 +20,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
excludePathPatterns("/","/toLogin","/hncsLogin","/hnzzLogin","/hnxtLogin","/hnhyLogin","/hnsyLogin","/hnyueyLogin","/hnzjjLogin","/hncdLogin","/hnyiyLogin","/hnczLogin","/hnyzLogin","/hnhhLogin","/hnldLogin","/hnxxLogin","/hainanLogin","/neimengLogin","/getSjcntDetail","/noLogin","/saveSwSjXx","/saveSwbhXx",
"/saveHmSjXx","/getSwSjXx","/getYthcjryxxByZjhm","/getYthcjUser","/getZfbaUser","/getZwbzJbxxCnt","/getCcbzJbxxCnt","/toswcj",
"/doLogin","/toHome","/static*//**","/refreshCodeCache","/qxdoLogin","/queryNameByCode","/queryTypeCode","/queryZTreeDataByName","/toFjxz","/toCzsmxz","/download/**","/toObjectKJ","/catchimg","/iframe1","/iframe2","/xj","/report","/SavePersonInfo4Nmtc","/getZjxxbdjg","/singleLoginAct",
"/getYhkDetail","/getSwDetail","/getRyzjzpimages","/getRyzpimages","/getPmimages","/getGdimages","/saveHbhmxx"
"/getYhkDetail","/getSwDetail","/getRyzjzpimages","/getRyzpimages","/getPmimages","/getGdimages","/irisking/collect/result"
);
......
......@@ -443,7 +443,7 @@ public class HmCjController {
* @param tbStHm
* @return
*/
@RequestMapping("/saveHbhmxx")
@RequestMapping("/irisking/collect/result")
@ResponseBody
private Map<String, String> saveHbhmxx(TbStHm tbStHm,HttpServletRequest request) {
Map<String, String> map = new HashMap<>();
......@@ -1233,6 +1233,7 @@ public class HmCjController {
}else{
urlstr = "http://"+hmurlstr+":9080/Api/iris/queryrybh";
}
System.out.println("=======虹膜查询接口地址:"+urlstr);
//String urlstr = "http://39.104.54.227:9080/Api/iris/queryrybh";
User user = (User) request.getSession().getAttribute("User");
Map<String, Object> res = new HashMap<>();
......@@ -1268,11 +1269,16 @@ public class HmCjController {
tbStHm.setHmsjLeft(jsa.getString("zyhmtp"));
tbStHm.setHmqsqkLeft(jsa.getString("zyqsqkdm"));
Map<String, String> rst = saveHmSjXxHb(tbStHm,request);
//System.out.println("code======="+rst.get("code"));
System.out.println("虹膜查询结果code======="+rst.get("code"));
if("1".equals(rst.get("code"))){
bool = false;
}
}else{
if(jsonResult!=null) {
System.out.println("=======虹膜查询错误返回:" + jsonResult.toJSONString());
}else{
System.out.println("=======虹膜查询错误返回值为NULL" );
}
bool = false;
}
return bool;
......
......@@ -157,9 +157,6 @@ public class SwCjController {
paths = filePath + "/"+ rybhstr+ "_" + filejia.getName() + "0.wav";
}
File filejia1 = new File(paths);
if (!filejia1.exists()) {
filejia0.mkdir();
}
try {
filejia1.createNewFile();
boolean flg = GenerateImage(getBytesByFile(tbStSw.getSwsjStr()),paths);
......@@ -373,6 +370,7 @@ public class SwCjController {
@RequestMapping("/getSwSjXx")
@ResponseBody
private Map<String, String> getSwSjXx(HttpServletRequest request) {
System.out.println("声纹信息采集数据接收,人员编号:"+request.getParameter("id"));
MultipartFile voice = null;
// 检测是否为上传请求
String contentType = request.getContentType();
......@@ -456,9 +454,6 @@ public class SwCjController {
paths = filePath + "/"+ rybhstr + "_" + voice.getName() + "0.wav";
}
File filejia1 = new File(paths);
if (!filejia1.exists()) {
filejia1.mkdir();
}
try {
filejia1.createNewFile();
boolean flg = GenerateImage(voice.getBytes(),paths);
......@@ -688,9 +683,6 @@ public class SwCjController {
}
tbStSw.setWjlj(paths);
File filejia1 = new File(paths);
if (!filejia1.exists()) {
filejia0.mkdir();
}
try {
filejia1.createNewFile();
boolean flg = GenerateImage(tbStSw.getYpsj(),paths);
......
......@@ -59,6 +59,15 @@ public class TbStHm implements Serializable {
private String sbcsdm;
private String xxzldf;
private String sbbh;
private String personCode;
private String cjjg;
private String xxms;
private String cjbh;
private String zyhmtp;
private String yyhmtp;
private String zyycjdm;
private String token;
public String getXxzldf() {
return xxzldf;
......@@ -227,4 +236,68 @@ public class TbStHm implements Serializable {
public void setSbbh(String sbbh) {
this.sbbh = sbbh;
}
public String getPersonCode() {
return personCode;
}
public void setPersonCode(String personCode) {
this.personCode = personCode;
}
public String getCjjg() {
return cjjg;
}
public void setCjjg(String cjjg) {
this.cjjg = cjjg;
}
public String getXxms() {
return xxms;
}
public void setXxms(String xxms) {
this.xxms = xxms;
}
public String getCjbh() {
return cjbh;
}
public void setCjbh(String cjbh) {
this.cjbh = cjbh;
}
public String getZyhmtp() {
return zyhmtp;
}
public void setZyhmtp(String zyhmtp) {
this.zyhmtp = zyhmtp;
}
public String getYyhmtp() {
return yyhmtp;
}
public void setYyhmtp(String yyhmtp) {
this.yyhmtp = yyhmtp;
}
public String getZyycjdm() {
return zyycjdm;
}
public void setZyycjdm(String zyycjdm) {
this.zyycjdm = zyycjdm;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
}
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