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
34eb197c
Commit
34eb197c
authored
Jul 26, 2021
by
yangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改中科虹霸虹膜接收接口
parent
4d8752f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
12 deletions
+83
-12
src/main/java/com/founder/config/FilterConfig.java
+1
-1
src/main/java/com/founder/controller/HmCjController.java
+8
-2
src/main/java/com/founder/controller/SwCjController.java
+1
-9
src/main/java/com/founder/model/TbStHm.java
+73
-0
No files found.
src/main/java/com/founder/config/FilterConfig.java
View file @
34eb197c
...
...
@@ -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
"
);
...
...
src/main/java/com/founder/controller/HmCjController.java
View file @
34eb197c
...
...
@@ -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
;
...
...
src/main/java/com/founder/controller/SwCjController.java
View file @
34eb197c
...
...
@@ -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
);
...
...
src/main/java/com/founder/model/TbStHm.java
View file @
34eb197c
...
...
@@ -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
;
}
}
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