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
b00229ef
Commit
b00229ef
authored
Nov 13, 2019
by
e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改人员采集调用功能
parent
eb7cb0da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
342 additions
and
36 deletions
+342
-36
src/main/java/com/founder/controller/HmCjController.java
+179
-0
src/main/java/com/founder/controller/TbXwRycjController.java
+46
-3
src/main/java/com/founder/model/TbStHm.java
+35
-0
src/main/java/com/founder/service/impl/TbRyRyzpServiceImpl.java
+3
-3
src/main/java/com/founder/util/TestTask.java
+6
-6
src/main/java/com/founder/utils/FileUtils.java
+4
-14
src/main/java/com/founder/utils/HttpUtil.java
+6
-3
src/main/resources/mapper/HmCjSqlMapper.xml
+5
-0
src/main/resources/templates/rygl/addryxx.html
+58
-7
src/main/resources/templates/rygl/addryxx_gk.html
+0
-0
src/main/resources/templates/rygl/addryxx_gk_bak.html
+0
-0
No files found.
src/main/java/com/founder/controller/HmCjController.java
View file @
b00229ef
...
...
@@ -2,16 +2,21 @@ package com.founder.controller;
import
com.alibaba.fastjson.JSONException
;
import
com.alibaba.fastjson.JSONObject
;
import
com.founder.model.AutoTbStRy
;
import
com.founder.model.Param
;
import
com.founder.model.TbStHm
;
import
com.founder.model.User
;
import
com.founder.module.redis.service.IDicItemService
;
import
com.founder.service.AutoTbXwRycjService
;
import
com.founder.service.IHmCjService
;
import
com.founder.service.IParamService
;
import
com.founder.utils.FileUtils
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.http.NameValuePair
;
import
org.apache.http.message.BasicNameValuePair
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
...
@@ -19,6 +24,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.servlet.ModelAndView
;
import
sun.misc.BASE64Decoder
;
import
sun.misc.BASE64Encoder
;
import
javax.servlet.ServletContext
;
import
javax.servlet.http.HttpServletRequest
;
...
...
@@ -45,6 +51,8 @@ public class HmCjController {
@Autowired
private
IParamService
paramService
;
@Autowired
private
AutoTbXwRycjService
rycjService
;
/**
* 保存虹膜采集数据
*
...
...
@@ -376,6 +384,177 @@ public class HmCjController {
return
map
;
}
@RequestMapping
(
"/sendHmxxToHongba"
)
@ResponseBody
public
boolean
sendHmxxToHongba
(
Model
model
,
String
asjxgrybh
,
HttpServletRequest
request
){
List
<
TbStHm
>
hmxxs
=
hmCjService
.
getHmxxInfoList
(
asjxgrybh
);
AutoTbStRy
xyrC
=
rycjService
.
getRyxxByRybh
(
asjxgrybh
);
User
user
=
(
User
)
request
.
getSession
().
getAttribute
(
"User"
);
Map
<
String
,
Object
>
res
=
new
HashMap
<>();
res
.
put
(
"client_id"
,
"neimengxingzhuan"
);
res
.
put
(
"client_secret"
,
"neimengxingzhuan"
);
res
.
put
(
"version"
,
"1.0"
);
res
.
put
(
"request_id"
,
hmxxs
.
get
(
0
).
getRequest_id
());
res
.
put
(
"ywfssj"
,
"20191031110528"
);
res
.
put
(
"user_id"
,
user
.
getIdentitycard
());
res
.
put
(
"user_dept"
,
user
.
getUnitcode
());
//res.put("user_deptname",dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT"));
res
.
put
(
"user_deptname"
,
"内蒙古公安厅"
);
res
.
put
(
"sbcsdm"
,
hmxxs
.
get
(
0
).
getSbcsdm
());
res
.
put
(
"hmcjsbxhdm"
,
"01"
);
res
.
put
(
"sbbh"
,
hmxxs
.
get
(
0
).
getSbxh
());
res
.
put
(
"cjcd"
,
"11"
);
res
.
put
(
"dzmc"
,
"内蒙古呼和浩特市"
);
res
.
put
(
"jd"
,
""
);
res
.
put
(
"wd"
,
""
);
res
.
put
(
"cjbh"
,
"HM"
+
xyrC
.
getRybh
().
substring
(
1
,
19
)+
"00"
+
xyrC
.
getRybh
().
substring
(
19
,
23
));
res
.
put
(
"cjr_xm"
,
user
.
getTrueName
());
res
.
put
(
"cjr_gmsfhm"
,
user
.
getIdentitycard
());
res
.
put
(
"zyycjdm"
,
"1"
);
for
(
int
i
=
0
;
i
<
hmxxs
.
size
();
i
++){
TbStHm
hm
=
hmxxs
.
get
(
i
);
if
(
"0"
.
equals
(
hm
.
getHmywdm
())){
res
.
put
(
"zyqsqkdm"
,
hm
.
getHmqsqk
());
res
.
put
(
"hmzp_zy"
,
new
BASE64Encoder
().
encode
(
hm
.
getHmsj
()).
replace
(
"\r\n"
,
""
));
res
.
put
(
"zy_xxzlpf"
,
"85"
);
}
else
if
(
"1"
.
equals
(
hm
.
getHmywdm
())){
res
.
put
(
"yyqsqkdm"
,
hm
.
getHmqsqk
());
res
.
put
(
"hmzp_yy"
,
new
BASE64Encoder
().
encode
(
hm
.
getHmsj
()).
replace
(
"\r\n"
,
""
));
res
.
put
(
"yy_xxzlpf"
,
"85"
);
}
}
res
.
put
(
"cjtphs"
,
"1.825"
);
res
.
put
(
"bcjr_rylb"
,
"026"
);
res
.
put
(
"zjbz"
,
"1"
);
res
.
put
(
"lrbz"
,
"2"
);
res
.
put
(
"qzcjbz"
,
"1"
);
res
.
put
(
"bcjr_zjlxdm"
,
"111"
);
res
.
put
(
"bcjr_zjhm"
,
xyrC
.
getGmsfhm
());
res
.
put
(
"bcjr_xm"
,
xyrC
.
getXm
());
res
.
put
(
"bcjr_xb"
,
xyrC
.
getXbdm
());
res
.
put
(
"bcjr_csrq"
,
xyrC
.
getGmsfhm
().
substring
(
6
,
14
));
res
.
put
(
"bcjr_mz"
,
xyrC
.
getMzdm
());
res
.
put
(
"bcjr_gj"
,
xyrC
.
getGjdm
());
res
.
put
(
"bcjr_zjqfjg"
,
""
);
res
.
put
(
"bcjr_zjyxqx"
,
""
);
res
.
put
(
"bcjr_hjdz"
,
xyrC
.
getHjdzXzqhdm
());
res
.
put
(
"bcjr_jzdz"
,
xyrC
.
getXzzXzqhdm
());
res
.
put
(
"bcjr_sjhm1"
,
xyrC
.
getLxdm
());
res
.
put
(
"bcjr_sjhm2"
,
xyrC
.
getLxdm2
());
res
.
put
(
"zjzp"
,
xyrC
.
getEdzzpStr64
());
JSONObject
jsonResult
=
FileUtils
.
requestByPost
(
"http://122.49.35.37:43980/api/xingzhuan/v1/regIris"
,
res
);
System
.
out
.
println
(
jsonResult
.
toJSONString
());
boolean
bool
=
true
;
return
bool
;
}
@RequestMapping
(
"/hmxxCy"
)
@ResponseBody
public
boolean
hmxxCy
(
Model
model
,
String
asjxgrybh
,
HttpServletRequest
request
){
List
<
TbStHm
>
hmxxs
=
hmCjService
.
getHmxxInfoList
(
asjxgrybh
);
AutoTbStRy
xyrC
=
rycjService
.
getRyxxByRybh
(
asjxgrybh
);
User
user
=
(
User
)
request
.
getSession
().
getAttribute
(
"User"
);
Map
<
String
,
Object
>
res
=
new
HashMap
<>();
res
.
put
(
"client_id"
,
"neimengxingzhuan"
);
res
.
put
(
"client_secret"
,
"neimengxingzhuan"
);
res
.
put
(
"version"
,
"1.0"
);
res
.
put
(
"request_id"
,
hmxxs
.
get
(
0
).
getRequest_id
());
res
.
put
(
"ywfssj"
,
"20191031110528"
);
res
.
put
(
"user_id"
,
user
.
getIdentitycard
());
res
.
put
(
"user_dept"
,
user
.
getUnitcode
());
//res.put("user_deptname",dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT"));
res
.
put
(
"user_deptname"
,
"内蒙古公安厅"
);
res
.
put
(
"sbcsdm"
,
hmxxs
.
get
(
0
).
getSbcsdm
());
res
.
put
(
"hmcjsbxhdm"
,
"01"
);
res
.
put
(
"sbbh"
,
hmxxs
.
get
(
0
).
getSbxh
());
res
.
put
(
"cjcd"
,
"11"
);
res
.
put
(
"dzmc"
,
"内蒙古呼和浩特市"
);
res
.
put
(
"jd"
,
""
);
res
.
put
(
"wd"
,
""
);
res
.
put
(
"qzcjbz"
,
"0"
);
res
.
put
(
"zyycjdm"
,
"1"
);
for
(
int
i
=
0
;
i
<
hmxxs
.
size
();
i
++){
TbStHm
hm
=
hmxxs
.
get
(
i
);
if
(
"0"
.
equals
(
hm
.
getHmywdm
())){
res
.
put
(
"zyqsqkdm"
,
hm
.
getHmqsqk
());
res
.
put
(
"hmzp_zy"
,
new
BASE64Encoder
().
encode
(
hm
.
getHmsj
()).
replace
(
"\r\n"
,
""
));
res
.
put
(
"zy_xxzlpf"
,
"85"
);
}
else
if
(
"1"
.
equals
(
hm
.
getHmywdm
())){
res
.
put
(
"yyqsqkdm"
,
hm
.
getHmqsqk
());
res
.
put
(
"hmzp_yy"
,
new
BASE64Encoder
().
encode
(
hm
.
getHmsj
()).
replace
(
"\r\n"
,
""
));
res
.
put
(
"yy_xxzlpf"
,
"85"
);
}
}
res
.
put
(
"cjtphs"
,
"1.825"
);
JSONObject
jsonResult
=
FileUtils
.
requestByPost
(
"http://122.49.35.37:43980/iris/irisInspection"
,
res
);
System
.
out
.
println
(
jsonResult
.
toJSONString
());
boolean
bool
=
true
;
return
bool
;
}
@RequestMapping
(
"/hmxxHy"
)
@ResponseBody
public
boolean
hmxxHy
(
Model
model
,
String
asjxgrybh
,
HttpServletRequest
request
){
List
<
TbStHm
>
hmxxs
=
hmCjService
.
getHmxxInfoList
(
asjxgrybh
);
AutoTbStRy
xyrC
=
rycjService
.
getRyxxByRybh
(
asjxgrybh
);
User
user
=
(
User
)
request
.
getSession
().
getAttribute
(
"User"
);
Map
<
String
,
Object
>
res
=
new
HashMap
<>();
res
.
put
(
"client_id"
,
"neimengxingzhuan"
);
res
.
put
(
"client_secret"
,
"neimengxingzhuan"
);
res
.
put
(
"version"
,
"1.0"
);
res
.
put
(
"request_id"
,
hmxxs
.
get
(
0
).
getRequest_id
());
res
.
put
(
"ywfssj"
,
"20191031110528"
);
res
.
put
(
"user_id"
,
user
.
getIdentitycard
());
res
.
put
(
"user_dept"
,
user
.
getUnitcode
());
//res.put("user_deptname",dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT"));
res
.
put
(
"user_deptname"
,
"内蒙古公安厅"
);
res
.
put
(
"sbcsdm"
,
hmxxs
.
get
(
0
).
getSbcsdm
());
res
.
put
(
"hmcjsbxhdm"
,
"01"
);
res
.
put
(
"sbbh"
,
hmxxs
.
get
(
0
).
getSbxh
());
res
.
put
(
"cjcd"
,
"11"
);
res
.
put
(
"dzmc"
,
"内蒙古呼和浩特市"
);
res
.
put
(
"jd"
,
""
);
res
.
put
(
"wd"
,
""
);
res
.
put
(
"qzcjbz"
,
"0"
);
res
.
put
(
"zyycjdm"
,
"1"
);
for
(
int
i
=
0
;
i
<
hmxxs
.
size
();
i
++){
TbStHm
hm
=
hmxxs
.
get
(
i
);
if
(
"0"
.
equals
(
hm
.
getHmywdm
())){
res
.
put
(
"zyqsqkdm"
,
hm
.
getHmqsqk
());
res
.
put
(
"hmzp_zy"
,
new
BASE64Encoder
().
encode
(
hm
.
getHmsj
()).
replace
(
"\r\n"
,
""
));
res
.
put
(
"zy_xxzlpf"
,
"85"
);
}
else
if
(
"1"
.
equals
(
hm
.
getHmywdm
())){
res
.
put
(
"yyqsqkdm"
,
hm
.
getHmqsqk
());
res
.
put
(
"hmzp_yy"
,
new
BASE64Encoder
().
encode
(
hm
.
getHmsj
()).
replace
(
"\r\n"
,
""
));
res
.
put
(
"yy_xxzlpf"
,
"85"
);
}
}
res
.
put
(
"cjtphs"
,
"1.825"
);
res
.
put
(
"bcjr_rylb"
,
"026"
);
res
.
put
(
"zjbz"
,
"1"
);
res
.
put
(
"lrbz"
,
"2"
);
res
.
put
(
"qzcjbz"
,
"1"
);
res
.
put
(
"bcjr_zjlxdm"
,
"111"
);
res
.
put
(
"bcjr_zjhm"
,
xyrC
.
getGmsfhm
());
res
.
put
(
"bcjr_xm"
,
xyrC
.
getXm
());
res
.
put
(
"bcjr_xb"
,
xyrC
.
getXbdm
());
res
.
put
(
"bcjr_csrq"
,
xyrC
.
getGmsfhm
().
substring
(
6
,
14
));
res
.
put
(
"bcjr_mz"
,
xyrC
.
getMzdm
());
res
.
put
(
"bcjr_gj"
,
xyrC
.
getGjdm
());
res
.
put
(
"bcjr_qfjg"
,
""
);
res
.
put
(
"bcjr_yxqx"
,
""
);
res
.
put
(
"bcjr_hjdz"
,
xyrC
.
getHjdzXzqhdm
());
res
.
put
(
"bcjr_jzdz"
,
xyrC
.
getXzzXzqhdm
());
res
.
put
(
"bcjr_sjhm1"
,
xyrC
.
getLxdm
());
res
.
put
(
"bcjr_sjhm2"
,
xyrC
.
getLxdm2
());
res
.
put
(
"zjzp"
,
xyrC
.
getEdzzpStr64
());
JSONObject
jsonResult
=
FileUtils
.
requestByPost
(
"http://122.49.35.37:43980/iris/irisCheck"
,
res
);
System
.
out
.
println
(
jsonResult
.
toJSONString
());
boolean
bool
=
true
;
return
bool
;
}
// 图片下载、并且存入数据库
public
void
insPic
(
String
R_EDZZP64
,
String
rybh
,
String
zpbw
,
HttpServletRequest
request
)
{
String
fileName
=
rybh
+
zpbw
+
".jpg"
;
...
...
src/main/java/com/founder/controller/TbXwRycjController.java
View file @
b00229ef
...
...
@@ -19,6 +19,11 @@ import org.apache.http.client.HttpClient;
import
org.apache.http.message.BasicNameValuePair
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.codehaus.xfire.client.Client
;
import
org.dom4j.Document
;
import
org.dom4j.DocumentException
;
import
org.dom4j.io.OutputFormat
;
import
org.dom4j.io.SAXReader
;
import
org.dom4j.io.XMLWriter
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -2934,6 +2939,24 @@ public class TbXwRycjController {
map
.
put
(
"message"
,
"请求成功!"
);
map
.
put
(
"retdata"
,
xml
.
toString
());
return
map
;
//response.setContentType("application/xml");
// SAXReader saxReader = new SAXReader();
//Document document = null;
//try {
// document = saxReader.read(new ByteArrayInputStream(xml.toString().getBytes("UTF-8")));
//} catch (DocumentException e) {
// e.printStackTrace();
//} catch (UnsupportedEncodingException e) {
// e.printStackTrace();
//}
//XMLWriter xmlWriter = new XMLWriter();
//try {
// xmlWriter.write(document);
// xmlWriter.close();
//} catch (IOException e) {
// e.printStackTrace();
//}
// return null;
}
//拼接人员基本信息的XML文件
...
...
@@ -3109,6 +3132,10 @@ public class TbXwRycjController {
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
PDBS
=
StringUtil
.
checknull
(
request
.
getParameter
(
"PDBS"
));
//判断标识
String
RYBH
=
StringUtil
.
checknull
(
request
.
getParameter
(
"RYBH"
));
//人员编号
if
(
RYBH
==
null
||
""
.
equals
(
RYBH
)){
log
.
info
(
"无人员编号!"
);
return
"-1"
;
}
xyrC
.
setJzrybh
(
RYBH
);
xyrC
.
setRybh
(
RYBH
);
xyrC
.
setXm
(
StringUtil
.
checknull
(
request
.
getParameter
(
"XM"
)));
// 姓名
...
...
@@ -3203,9 +3230,11 @@ public class TbXwRycjController {
}
@RequestMapping
(
value
=
"/singleLoginAct"
,
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
public
String
singleLoginAct
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
,
String
asjxgrybh
,
String
username
,
String
sfhlcjy
,
String
cjsb
){
public
String
singleLoginAct
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
,
String
asjxgrybh
,
String
rybh
,
String
username
,
String
sfhlcjy
,
String
cjxm
){
String
userId
=
request
.
getParameter
(
"userId"
);
String
rybh
=
""
;
if
(
asjxgrybh
==
null
||
""
.
equals
(
asjxgrybh
)){
asjxgrybh
=
rybh
;
}
String
returnStr
=
""
;
String
perurl
=
""
;
User
user
=
null
;
...
...
@@ -3249,6 +3278,20 @@ public class TbXwRycjController {
model
.
addAttribute
(
"saveflag"
,
"0"
);
}
else
{
AutoTbStRy
xyrC
=
rycjService
.
getRyxxByRybh
(
rybh
);
if
(
xyrC
==
null
||
xyrC
.
getRybh
()==
null
||
""
.
equals
(
xyrC
.
getRybh
())){
xyrC
=
new
AutoTbStRy
();
model
.
addAttribute
(
"username"
,
user
.
getUsername
());
model
.
addAttribute
(
"unitcode"
,
user
.
getUnitcode
());
model
.
addAttribute
(
"ryxx"
,
xyrC
);
model
.
addAttribute
(
"saveflag"
,
"0"
);
model
.
addAttribute
(
"perurl"
,
perurl
);
model
.
addAttribute
(
"cjsb"
,
cjxm
);
if
(
sfhlcjy
!=
null
&&!
"1"
.
equals
(
sfhlcjy
)){
return
"rygl/addryxx_gk.html"
;
}
else
{
return
"rygl/addryxx.html"
;
}
}
if
(
xyrC
.
getLrr
()!=
null
&&!
""
.
equals
(
xyrC
.
getLrr
())){
try
{
xyrC
.
setLrrXm
(
dicItemService
.
queryNameByCode
(
xyrC
.
getLrr
(),
"CODE_JY"
));
...
...
@@ -3394,7 +3437,7 @@ public class TbXwRycjController {
}
model
.
addAttribute
(
"username"
,
user
.
getUsername
());
model
.
addAttribute
(
"unitcode"
,
user
.
getUnitcode
());
model
.
addAttribute
(
"cjsb"
,
cj
sb
);
model
.
addAttribute
(
"cjsb"
,
cj
xm
);
model
.
addAttribute
(
"ryxx"
,
xyrC
);
model
.
addAttribute
(
"saveflag"
,
"0"
);
model
.
addAttribute
(
"perurl"
,
perurl
);
...
...
src/main/java/com/founder/model/TbStHm.java
View file @
b00229ef
...
...
@@ -54,7 +54,18 @@ public class TbStHm implements Serializable {
//设备型号
private
String
sbxh
;
private
String
client_id
;
private
String
request_id
;
private
String
sbcsdm
;
private
String
xxzldf
;
public
String
getXxzldf
()
{
return
xxzldf
;
}
public
void
setXxzldf
(
String
xxzldf
)
{
this
.
xxzldf
=
xxzldf
;
}
public
String
getXxzjbh
()
{
return
xxzjbh
;
...
...
@@ -183,4 +194,28 @@ public class TbStHm implements Serializable {
public
void
setSbxh
(
String
sbxh
)
{
this
.
sbxh
=
sbxh
;
}
public
String
getClient_id
()
{
return
client_id
;
}
public
void
setClient_id
(
String
client_id
)
{
this
.
client_id
=
client_id
;
}
public
String
getRequest_id
()
{
return
request_id
;
}
public
void
setRequest_id
(
String
request_id
)
{
this
.
request_id
=
request_id
;
}
public
String
getSbcsdm
()
{
return
sbcsdm
;
}
public
void
setSbcsdm
(
String
sbcsdm
)
{
this
.
sbcsdm
=
sbcsdm
;
}
}
src/main/java/com/founder/service/impl/TbRyRyzpServiceImpl.java
View file @
b00229ef
...
...
@@ -26,7 +26,7 @@ public class TbRyRyzpServiceImpl extends BaseService<AutoTbRyZp> implements ITbR
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"zpxxbh"
,
xxbh
);
List
<
AutoTbRyZp
>
autoParams
=
null
;
if
(
ssdw
!=
null
&&
"43"
.
equals
(
ssdw
.
substring
(
0
,
2
))){
if
(
ssdw
!=
null
&&
(
"43"
.
equals
(
ssdw
.
substring
(
0
,
2
))||
"64"
.
equals
(
ssdw
.
substring
(
0
,
2
)
))){
autoParams
=
mapper
.
getRyRyzpById
(
map
);
}
else
{
autoParams
=
mapper
.
getRyRyzpById_XZXT
(
map
);
...
...
@@ -43,7 +43,7 @@ public class TbRyRyzpServiceImpl extends BaseService<AutoTbRyZp> implements ITbR
map
.
put
(
"entity"
,
autoTbRyZp
);
boolean
bool
=
false
;
boolean
bool1
=
false
;
if
(
ssdw
!=
null
&&
"43"
.
equals
(
ssdw
.
substring
(
0
,
2
))){
if
(
ssdw
!=
null
&&
(
"43"
.
equals
(
ssdw
.
substring
(
0
,
2
))||
"64"
.
equals
(
ssdw
.
substring
(
0
,
2
)
))){
bool
=
mapper
.
updateRyRyzp
(
map
);
}
else
if
(
ssdw
!=
null
&&
"14"
.
equals
(
ssdw
.
substring
(
0
,
2
))){
bool
=
mapper
.
updateRyRyzp_XZXT
(
map
);
...
...
@@ -70,7 +70,7 @@ public class TbRyRyzpServiceImpl extends BaseService<AutoTbRyZp> implements ITbR
map
.
put
(
"entity"
,
autoTbRyZp
);
boolean
bool
=
false
;
boolean
bool1
=
false
;
if
(
ssdw
!=
null
&&
"43"
.
equals
(
ssdw
.
substring
(
0
,
2
))){
if
(
ssdw
!=
null
&&
(
"43"
.
equals
(
ssdw
.
substring
(
0
,
2
))||
"64"
.
equals
(
ssdw
.
substring
(
0
,
2
)
))){
bool
=
mapper
.
insertRyRyzp
(
map
);
}
else
if
(
ssdw
!=
null
&&
"14"
.
equals
(
ssdw
.
substring
(
0
,
2
))){
bool
=
mapper
.
insertRyRyzp_XZXT
(
map
);
...
...
src/main/java/com/founder/util/TestTask.java
View file @
b00229ef
...
...
@@ -69,12 +69,12 @@ public class TestTask {
String
zpBase64
=
GetImageStrs
(
filePath
+
"/"
+
rybhstr
+
zpbw
+
".jpg"
);
rst
=
zpBase64
;
}
if
(
"1"
.
equals
(
zpbw
)&&(
rst
==
null
||
""
.
equals
(
rst
))){
AutoTbStRy
ryxx
=
new
AutoTbStRy
();
Qgckzp
qgckzp
=
new
Qgckzp
();
ryxx
=
qgckzp
.
getQgckAllxxXml
(
zjhm
);
rst
=
ryxx
.
getEdzzpStr64
();
}
//
if("1".equals(zpbw)&&(rst==null||"".equals(rst))){
//
AutoTbStRy ryxx=new AutoTbStRy();
//
Qgckzp qgckzp = new Qgckzp();
//
ryxx=qgckzp.getQgckAllxxXml(zjhm);
//
rst = ryxx.getEdzzpStr64();
//
}
return
new
AsyncResult
<>(
rst
);
}
...
...
src/main/java/com/founder/utils/FileUtils.java
View file @
b00229ef
...
...
@@ -379,31 +379,21 @@ public class FileUtils {
JSONObject
jsonResult
=
null
;
HttpPost
httpPost
=
new
HttpPost
(
url
);
// 设置请求和传输超时时间
RequestConfig
requestConfig
=
RequestConfig
.
custom
()
.
setSocketTimeout
(
2000
).
setConnectTimeout
(
2000
).
build
();
RequestConfig
requestConfig
=
RequestConfig
.
custom
().
setSocketTimeout
(
2000
).
setConnectTimeout
(
2000
).
build
();
httpPost
.
setConfig
(
requestConfig
);
try
{
if
(
null
!=
pairs
)
{
//StringEntity entity = new UrlEncodedFormEntity(pairs, "utf-8");
//entity.setContentEncoding("UTF-8");
//entity.setContentType("application/json");
//httpPost.setEntity(entity);
httpPost
.
setEntity
(
new
UrlEncodedFormEntity
(
pairs
,
HTTP
.
UTF_8
));
}
CloseableHttpResponse
result
=
httpClient
.
execute
(
httpPost
);
//请求发送成功,并得到响应
if
(
result
.
getStatusLine
().
getStatusCode
()
==
HttpStatus
.
SC_OK
)
{
if
(
result
.
getStatusLine
().
getStatusCode
()
==
HttpStatus
.
SC_OK
)
{
//请求发送成功,并得到响应
try
{
//读取服务器返回过来的json字符串数据
String
str
=
EntityUtils
.
toString
(
result
.
getEntity
(),
"utf-8"
);
//把json字符串转换成json对象
jsonResult
=
JSONObject
.
parseObject
(
str
);
String
str
=
EntityUtils
.
toString
(
result
.
getEntity
(),
"utf-8"
);
//读取服务器返回过来的json字符串数据
jsonResult
=
JSONObject
.
parseObject
(
str
);
//把json字符串转换成json对象
}
catch
(
Exception
e
)
{
}
}
}
catch
(
IOException
e
)
{
}
finally
{
httpPost
.
releaseConnection
();
}
...
...
src/main/java/com/founder/utils/HttpUtil.java
View file @
b00229ef
...
...
@@ -19,6 +19,7 @@ import org.apache.http.HttpResponse;
import
org.apache.http.NameValuePair
;
import
org.apache.http.client.ClientProtocolException
;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.config.RequestConfig
;
import
org.apache.http.client.entity.UrlEncodedFormEntity
;
import
org.apache.http.client.methods.HttpGet
;
import
org.apache.http.client.methods.HttpPost
;
...
...
@@ -38,7 +39,9 @@ public class HttpUtil {
// Prepare a request object
HttpGet
httpget
=
new
HttpGet
(
uri
);
RequestConfig
requestConfig
=
RequestConfig
.
custom
().
setSocketTimeout
(
2000
).
setConnectTimeout
(
2000
).
build
();
// 设置请求和传输超时时间
httpget
.
setConfig
(
requestConfig
);
// Execute the request
HttpResponse
response
=
null
;
try
{
...
...
@@ -84,8 +87,8 @@ public class HttpUtil {
StringBuffer
sb
=
new
StringBuffer
();
try
{
HttpParams
params
=
httpclient
.
getParams
();
//new BasicHttpParams();
Integer
CONNECTION_TIMEOUT
=
15
*
1000
;
Integer
SO_TIMEOUT
=
15
*
1000
;
Integer
CONNECTION_TIMEOUT
=
3
*
1000
;
Integer
SO_TIMEOUT
=
3
*
1000
;
Long
CONN_MANAGER_TIMEOUT
=
500L
;
params
.
setIntParameter
(
CoreConnectionPNames
.
CONNECTION_TIMEOUT
,
CONNECTION_TIMEOUT
);
params
.
setIntParameter
(
CoreConnectionPNames
.
SO_TIMEOUT
,
SO_TIMEOUT
);
...
...
src/main/resources/mapper/HmCjSqlMapper.xml
View file @
b00229ef
...
...
@@ -61,6 +61,7 @@
XM,
GMSFHM,
HMYWDM,
XXZLDF,
HMSJ,
HMQSQKDM as HMQSQK,
GXSJ,
...
...
@@ -68,6 +69,9 @@
LRR,
LRR_POLICEMANID,
SBXH,
CLIENT_ID,
REQUEST_ID,
SBCSDM,
XXSC_PDBZ from TB_XW_YTHCJ_HM where (XXSC_PDBZ='0' or XXSC_PDBZ is null) and RYBH = #{rybh , jdbcType=VARCHAR }
</select>
</mapper>
\ No newline at end of file
src/main/resources/templates/rygl/addryxx.html
View file @
b00229ef
...
...
@@ -1359,6 +1359,54 @@
});
}
function
hmts
(){
//window.open("/testImages?zwbh="+$("#rybh").val()+"&xm="+$("#xm").val()+"&gmsfhm="+$("#zjhm").val());
$
.
ajax
({
type
:
"POST"
,
url
:
"/sendHmxxToHongba"
,
data
:
{
"asjxgrybh"
:
$
(
"#rybh"
).
val
()},
dataType
:
"json"
,
success
:
function
(
data
){
alert
(
data
);
},
error
:
function
(
e
){
console
.
log
(
"error="
+
JSON
.
stringify
(
e
));
}
});
}
function
hmcy
(){
//window.open("/testImages?zwbh="+$("#rybh").val()+"&xm="+$("#xm").val()+"&gmsfhm="+$("#zjhm").val());
$
.
ajax
({
type
:
"POST"
,
url
:
"/hmxxCy"
,
data
:
{
"asjxgrybh"
:
$
(
"#rybh"
).
val
()},
dataType
:
"json"
,
success
:
function
(
data
){
alert
(
data
);
},
error
:
function
(
e
){
console
.
log
(
"error="
+
JSON
.
stringify
(
e
));
}
});
}
function
hmhy
(){
//window.open("/testImages?zwbh="+$("#rybh").val()+"&xm="+$("#xm").val()+"&gmsfhm="+$("#zjhm").val());
$
.
ajax
({
type
:
"POST"
,
url
:
"/hmxxHy"
,
data
:
{
"asjxgrybh"
:
$
(
"#rybh"
).
val
()},
dataType
:
"json"
,
success
:
function
(
data
){
alert
(
data
);
},
error
:
function
(
e
){
console
.
log
(
"error="
+
JSON
.
stringify
(
e
));
}
});
}
function
tozjcj
(){
if
(
kg
==
1
)
{
var
zmzpStr64
=
$
(
"#zmzpStr64"
).
val
();
...
...
@@ -2107,14 +2155,17 @@
<li
id=
"zw"
><a
onclick=
"getStatus()"
href=
"#"
><i
class=
"fa fa-hand-paper-o"
></i>
捺印指纹信息采集
</a></li>
<li
id=
"hm"
><a
onclick=
"hmcj()"
href=
"#"
><i
class=
"fa fa-barcode"
></i>
虹膜信息采集
</a></li>
<li
id=
"zj"
><a
onclick=
"zjcj(0)"
href=
"#"
><i
class=
"fa fa-barcode"
></i>
足迹信息采集
</a></li>
<li
id=
"sw"
><a
onclick=
"swcj()"
href=
"#"
><i
class=
"fa fa-address-card-o"
></i>
声纹信息采集
</a></li>
<li
id=
"wp"
><a
onclick=
"sswpcj()"
href=
"#"
><i
class=
"fa fa-barcode"
></i>
随身物品信息采集
</a></li>
<li
id=
"sj"
><a
href=
"javascript:sjcj()"
><i
class=
"fa fa-print"
></i>
随身手机信息采集
</a></li>
<li
id=
"yhk"
><a
onclick=
"yhkcj()"
href=
"#"
><i
class=
"fa fa-barcode"
></i>
银行卡信息采集
</a></li>
<li
id=
"sw"
><a
onclick=
"swcj()"
href=
"#"
><i
class=
"fa fa-address-card-o"
></i>
声纹信息采集
</a></li>
<li
id=
"wp"
><a
onclick=
"sswpcj()"
href=
"#"
><i
class=
"fa fa-barcode"
></i>
随身物品信息采集
</a></li>
<li
id=
"sj"
><a
href=
"javascript:sjcj()"
><i
class=
"fa fa-print"
></i>
随身手机信息采集
</a></li>
<li
id=
"yhk"
><a
onclick=
"yhkcj()"
href=
"#"
><i
class=
"fa fa-barcode"
></i>
银行卡信息采集
</a></li>
<li><a
href=
"#"
><i
class=
"fa fa-barcode"
></i>
笔迹信息采集(建设中)
</a></li>
<li><a
href=
"#"
><i
class=
"fa fa-barcode"
></i>
社会信息导入(建设中)
</a></li>
<li><a
href=
"#"
><i
class=
"fa fa-barcode"
></i>
关系人信息采集(建设中)
</a></li>
<!-- <li><a href="javascript:prtzw()"><i class="fa fa-print"></i> 打印指纹卡</a></li>
<li><a
href=
"#"
><i
class=
"fa fa-barcode"
></i>
社会信息导入(建设中)
</a></li>
<li><a
href=
"#"
><i
class=
"fa fa-barcode"
></i>
关系人信息采集(建设中)
</a></li>
<!-- <li id="hmts"><a onclick="hmts()" href="#"><i class="fa fa-barcode"></i> 虹膜推送</a></li>
<li id="hmcy"><a onclick="hmcy()" href="#"><i class="fa fa-barcode"></i> 虹膜查验</a></li>
<li id="hmhy"><a onclick="hmhy()" href="#"><i class="fa fa-barcode"></i> 虹膜核验</a></li>
<li><a href="javascript:prtzw()"><i class="fa fa-print"></i> 打印指纹卡</a></li>
<li name="qxsbflag"><a onclick="showScan()"><i class="fa fa-barcode"></i> 指纹卡扫描</a></li>
<li><a href="javascript:saveBiCj()"><i class="fa fa-address-card-o"></i> 采集笔迹</a></li>
<li><a href="javascript:window.open('http://10.188.45.120:8080/FARS')"><i class="fa fa-address-card-o"></i> 人像比对</a></li>
...
...
src/main/resources/templates/rygl/addryxx_gk.html
View file @
b00229ef
This diff is collapsed.
Click to expand it.
src/main/resources/templates/rygl/addryxx_gk_bak.html
0 → 100644
View file @
b00229ef
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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