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
1ad32c7d
Commit
1ad32c7d
authored
Jun 13, 2023
by
yangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改眼神虹膜采集设备编号获取异常的问题
parent
760f7918
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
+25
-12
src/main/java/com/founder/controller/HmCjController.java
+19
-11
src/main/resources/static/hmcj/js/yskj.js
+1
-1
src/main/resources/templates/hmcj/yskj.html
+5
-0
No files found.
src/main/java/com/founder/controller/HmCjController.java
View file @
1ad32c7d
...
@@ -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_9
264999
91110108774061560600000"
);
hmxxs
.
get
(
0
).
setSbbh
(
"ECI102_9
376653
91110108774061560600000"
);
res
.
put
(
"sbbh"
,
"ECI102_9
264999
91110108774061560600000"
);
res
.
put
(
"sbbh"
,
"ECI102_9
376653
91110108774061560600000"
);
}
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_9
264999
91110108774061560600000"
);
hmxxs
.
get
(
0
).
setSbbh
(
"ECI102_9
376653
91110108774061560600000"
);
res
.
put
(
"sbbh"
,
"ECI102_9
264999
91110108774061560600000"
);
res
.
put
(
"sbbh"
,
"ECI102_9
376653
91110108774061560600000"
);
}
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
;
...
...
src/main/resources/static/hmcj/js/yskj.js
View file @
1ad32c7d
...
@@ -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
;
...
...
src/main/resources/templates/hmcj/yskj.html
View file @
1ad32c7d
...
@@ -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"
>
...
...
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