Commit 1ad32c7d by yangliang

修改眼神虹膜采集设备编号获取异常的问题

parent 760f7918
...@@ -314,7 +314,9 @@ public class HmCjController { ...@@ -314,7 +314,9 @@ public class HmCjController {
temp.setHmsj(null); temp.setHmsj(null);
temp.setHmqsqk(tbStHm.getHmqsqkLeft()); temp.setHmqsqk(tbStHm.getHmqsqkLeft());
temp.setSbxh(tbStHm.getSbxh()); temp.setSbxh(tbStHm.getSbxh());
temp.setSbbh(tbStHm.getSbbh());
temp.setSbcsdm(tbStHm.getSbcsdm());
temp.setClient_id(tbStHm.getClient_id());
temp.setLrr(user.getTrueName()); temp.setLrr(user.getTrueName());
temp.setLrrPolicemanid(policemanid); temp.setLrrPolicemanid(policemanid);
list.add(temp); list.add(temp);
...@@ -329,7 +331,9 @@ public class HmCjController { ...@@ -329,7 +331,9 @@ public class HmCjController {
temp.setHmsj(left); temp.setHmsj(left);
temp.setHmqsqk("0"); temp.setHmqsqk("0");
temp.setSbxh(tbStHm.getSbxh()); temp.setSbxh(tbStHm.getSbxh());
temp.setSbbh(tbStHm.getSbbh());
temp.setSbcsdm(tbStHm.getSbcsdm());
temp.setClient_id(tbStHm.getClient_id());
temp.setLrr(user.getTrueName()); temp.setLrr(user.getTrueName());
temp.setLrrPolicemanid(policemanid); temp.setLrrPolicemanid(policemanid);
list.add(temp); list.add(temp);
...@@ -348,7 +352,9 @@ public class HmCjController { ...@@ -348,7 +352,9 @@ public class HmCjController {
temp.setHmsj(null); temp.setHmsj(null);
temp.setHmqsqk(tbStHm.getHmqsqkRight()); temp.setHmqsqk(tbStHm.getHmqsqkRight());
temp.setSbxh(tbStHm.getSbxh()); temp.setSbxh(tbStHm.getSbxh());
temp.setSbbh(tbStHm.getSbbh());
temp.setSbcsdm(tbStHm.getSbcsdm());
temp.setClient_id(tbStHm.getClient_id());
temp.setLrr(user.getTrueName()); temp.setLrr(user.getTrueName());
temp.setLrrPolicemanid(policemanid); temp.setLrrPolicemanid(policemanid);
list.add(temp); list.add(temp);
...@@ -363,7 +369,9 @@ public class HmCjController { ...@@ -363,7 +369,9 @@ public class HmCjController {
temp.setHmsj(right); temp.setHmsj(right);
temp.setHmqsqk("0"); temp.setHmqsqk("0");
temp.setSbxh(tbStHm.getSbxh()); temp.setSbxh(tbStHm.getSbxh());
temp.setSbbh(tbStHm.getSbbh());
temp.setSbcsdm(tbStHm.getSbcsdm());
temp.setClient_id(tbStHm.getClient_id());
temp.setLrr(user.getTrueName()); temp.setLrr(user.getTrueName());
temp.setLrrPolicemanid(policemanid); temp.setLrrPolicemanid(policemanid);
list.add(temp); list.add(temp);
...@@ -569,8 +577,8 @@ public class HmCjController { ...@@ -569,8 +577,8 @@ public class HmCjController {
} }
res.put("hmcjsbxhdm","05"); res.put("hmcjsbxhdm","05");
if(hmxxs.get(0).getSbbh()==null||"".equals(hmxxs.get(0).getSbbh())){ if(hmxxs.get(0).getSbbh()==null||"".equals(hmxxs.get(0).getSbbh())){
hmxxs.get(0).setSbbh("ECI102_926499991110108774061560600000"); hmxxs.get(0).setSbbh("ECI102_937665391110108774061560600000");
res.put("sbbh","ECI102_926499991110108774061560600000"); res.put("sbbh","ECI102_937665391110108774061560600000");
}else{ }else{
res.put("sbbh",hmxxs.get(0).getSbbh()); res.put("sbbh",hmxxs.get(0).getSbbh());
} }
...@@ -635,7 +643,7 @@ public class HmCjController { ...@@ -635,7 +643,7 @@ public class HmCjController {
res.put("cjbz",""); res.put("cjbz","");
//JSONObject jsonResult= FileUtils.requestByPost(urlstr+"/api/xingzhuan/v1/regIris",res);//虹霸 //JSONObject jsonResult= FileUtils.requestByPost(urlstr+"/api/xingzhuan/v1/regIris",res);//虹霸
//JSONObject jsonResult = FileUtils.requestByPost("http://74.10.26.178/iris/regIris",res);//眼神科技(海南) //JSONObject jsonResult = FileUtils.requestByPost("http://74.10.26.178/iris/regIris",res);//眼神科技(海南)
System.out.println("眼神虹膜数据推送接口地址:"+urlstr); System.out.println("眼神虹膜数据推送接口地址:"+urlstr+" 推送RYBH:"+xyrC.getRybh()+" 设备编号:"+res.get("sbbh"));
//眼神科技(湖南) //眼神科技(湖南)
JSONObject jsonResult = FileUtils.requestByPost(urlstr,res); JSONObject jsonResult = FileUtils.requestByPost(urlstr,res);
String msg = ""; String msg = "";
...@@ -714,8 +722,8 @@ public class HmCjController { ...@@ -714,8 +722,8 @@ public class HmCjController {
} }
res.put("sbxh","05"); res.put("sbxh","05");
if(hmxxs.get(0).getSbbh()==null||"".equals(hmxxs.get(0).getSbbh())){ if(hmxxs.get(0).getSbbh()==null||"".equals(hmxxs.get(0).getSbbh())){
hmxxs.get(0).setSbbh("ECI102_926499991110108774061560600000"); hmxxs.get(0).setSbbh("ECI102_937665391110108774061560600000");
res.put("sbbh","ECI102_926499991110108774061560600000"); res.put("sbbh","ECI102_937665391110108774061560600000");
}else{ }else{
res.put("sbbh",hmxxs.get(0).getSbbh()); res.put("sbbh",hmxxs.get(0).getSbbh());
} }
...@@ -754,7 +762,7 @@ public class HmCjController { ...@@ -754,7 +762,7 @@ public class HmCjController {
res.put("bcjr_zjhm",sfzh); res.put("bcjr_zjhm",sfzh);
res.put("bcjr_xm",xyrC.getXm()); res.put("bcjr_xm",xyrC.getXm());
res.put("bcjr_xb",xyrC.getXbdm()); res.put("bcjr_xb",xyrC.getXbdm());
if(sfzh!=null&&sfzh.length()> SUBSTR_FOURTEEN){ if(sfzh!=null&&sfzh.length()> 14){
res.put("bcjr_csrq",sfzh.substring(6,10)+"-"+sfzh.substring(10,12)+"-"+sfzh.substring(12,14)); res.put("bcjr_csrq",sfzh.substring(6,10)+"-"+sfzh.substring(10,12)+"-"+sfzh.substring(12,14));
}else{ }else{
res.put("bcjr_csrq",""); res.put("bcjr_csrq","");
...@@ -769,7 +777,7 @@ public class HmCjController { ...@@ -769,7 +777,7 @@ public class HmCjController {
res.put("bcjr_sjhm1",xyrC.getLxdm()); res.put("bcjr_sjhm1",xyrC.getLxdm());
res.put("bcjr_sjhm2",xyrC.getLxdm2()); res.put("bcjr_sjhm2",xyrC.getLxdm2());
res.put("zjzp",xyrC.getEdzzpStr64()); res.put("zjzp",xyrC.getEdzzpStr64());
log.info("万里红虹膜数据推送接口地址:"+urlstr); log.info("万里红虹膜数据推送接口地址:"+urlstr+" 推送RYBH:"+xyrC.getRybh()+" 设备编号:"+res.get("sbbh"));
JSONObject jsonResult= FileUtils.requestByPost(urlstr,res); JSONObject jsonResult= FileUtils.requestByPost(urlstr,res);
log.info(jsonResult.toJSONString()); log.info(jsonResult.toJSONString());
boolean bool = true; boolean bool = true;
......
...@@ -214,7 +214,7 @@ function EyeFlagChange(selObj) ...@@ -214,7 +214,7 @@ function EyeFlagChange(selObj)
function ysbaocun(){ function ysbaocun(){
$("#hmqsqkRight").val($("#rightSelect option:selected").val()); $("#hmqsqkRight").val($("#rightSelect option:selected").val());
$("#hmqsqkLeft").val($("#leftSelect option:selected").val()); $("#hmqsqkLeft").val($("#leftSelect option:selected").val());
$("#sbxh").val($("#device_type option:selected").val()); //$("#sbxh").val($("#device_type option:selected").val());
if(($("#hmsjLeft").val() == '' || $("#hmsjLeft").val() == null) && ("#hmqsqkLeft").val()=='0'){ if(($("#hmsjLeft").val() == '' || $("#hmsjLeft").val() == null) && ("#hmqsqkLeft").val()=='0'){
layer.alert('请选择左眼缺失情况!'); layer.alert('请选择左眼缺失情况!');
return; return;
......
...@@ -133,6 +133,11 @@ ...@@ -133,6 +133,11 @@
<button type="button" class="btn_style" id="baocun" onclick="ysbaocun()">保存</button> <button type="button" class="btn_style" id="baocun" onclick="ysbaocun()">保存</button>
</td> </td>
</tr> </tr>
<tr>
<td colspan="3" style="text-align: center">
<button type="button" class="btn_style" id="tuisong" onclick="yshmts()">虹膜推送</button>
</td>
</tr>
</table> </table>
</td> </td>
<td class="display_panel"> <td class="display_panel">
......
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