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
d79b3e97
Commit
d79b3e97
authored
May 05, 2020
by
yangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员采集页面增加采集设备验证
parent
0c49e484
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
213 additions
and
34 deletions
+213
-34
src/main/java/com/founder/cjqx/controller/SysClientVpController.java
+19
-0
src/main/java/com/founder/cjqx/dao/SysClientVpMapper.java
+1
-0
src/main/java/com/founder/cjqx/service/SysClientVpService.java
+1
-0
src/main/java/com/founder/cjqx/service/impl/SysClientVpServiceImpl.java
+10
-0
src/main/java/com/founder/controller/HmCjController.java
+1
-1
src/main/java/com/founder/controller/SwCjController.java
+4
-4
src/main/java/com/founder/controller/TbXwRycjController.java
+48
-13
src/main/java/com/founder/controller/ZjCjController.java
+2
-2
src/main/java/com/founder/login/controller/LoginController.java
+1
-1
src/main/java/com/founder/util/TestTask.java
+1
-1
src/main/resources/mapper/AutoTbXwRycjSqlMap.xml
+14
-0
src/main/resources/mapper/SysClientVpMapper.xml
+11
-0
src/main/resources/templates/rygl/addryxx.html
+87
-3
src/main/resources/templates/rygl/ryxxlist.html
+1
-1
src/main/resources/templates/ryswtz/ryswtzxx.html
+1
-1
src/main/resources/templates/swcj/swcj.html
+4
-3
src/main/resources/templates/zljc/zljccx.html
+7
-4
No files found.
src/main/java/com/founder/cjqx/controller/SysClientVpController.java
View file @
d79b3e97
...
...
@@ -55,6 +55,25 @@ public class SysClientVpController {
resultMap
=
sysClientVpService
.
ClientVpAll
(
sysClientVp
);
return
resultMap
;
}
/*
获取设备信息
*/
@GetMapping
(
"/getSysClientVp"
)
@ResponseBody
public
SysClientVp
getSysClientVp
(
Model
model
,
SysClientVp
sysClientVp
,
HttpServletRequest
request
){
ResultMap
resultMap
=
new
ResultMap
();
User
user
=(
User
)
request
.
getSession
().
getAttribute
(
"User"
);
//ip mac 加密 查询条件加密
if
(
sysClientVp
.
getIp
()!=
null
&&!
sysClientVp
.
getIp
().
equals
(
""
)){
sysClientVp
.
setIp
(
xzxtencode
(
sysClientVp
.
getIp
()));
}
if
(
sysClientVp
.
getMac
()!=
null
&&!
sysClientVp
.
getMac
().
equals
(
""
)){
sysClientVp
.
setMac
(
xzxtencode
(
sysClientVp
.
getMac
()));
}
SysClientVp
sysClientVpRet
=
sysClientVpService
.
getClientVp
(
sysClientVp
);
return
sysClientVpRet
;
}
/*
保存用户
*/
...
...
src/main/java/com/founder/cjqx/dao/SysClientVpMapper.java
View file @
d79b3e97
...
...
@@ -10,6 +10,7 @@ import java.util.List;
@Mapper
public
interface
SysClientVpMapper
{
List
<
SysClientVp
>
selectPageList
(
SysClientVp
sysClientVp
);
List
<
SysClientVp
>
selectClientVp
(
SysClientVp
sysClientVp
);
int
selectPageCount
(
SysClientVp
sysClientVp
);
int
saveSysClientVp
(
SysClientVp
sysClientVp
);
SysClientVp
selectSysClientVp
(
String
id
);
...
...
src/main/java/com/founder/cjqx/service/SysClientVpService.java
View file @
d79b3e97
...
...
@@ -10,6 +10,7 @@ import com.founder.model.XzxtRestResult;
*/
public
interface
SysClientVpService
{
ResultMap
ClientVpAll
(
SysClientVp
SysClientVp
);
SysClientVp
getClientVp
(
SysClientVp
sysClientVp
);
XzxtRestResult
SaveClientVp
(
SysClientVp
sysClientVp
);
XzxtRestResult
SelectClientVp
(
String
id
);
XzxtRestResult
updateClientVp
(
SysClientVp
sysClientVp
);
...
...
src/main/java/com/founder/cjqx/service/impl/SysClientVpServiceImpl.java
View file @
d79b3e97
...
...
@@ -59,6 +59,16 @@ public class SysClientVpServiceImpl implements SysClientVpService {
}
@Override
public
SysClientVp
getClientVp
(
SysClientVp
sysClientVp
)
{
SysClientVp
sysClientVprst
=
new
SysClientVp
();
List
<
SysClientVp
>
sysClientVplist
=
sysClientVpMapper
.
selectClientVp
(
sysClientVp
);
if
(
sysClientVplist
!=
null
&&
sysClientVplist
.
size
()>
0
)
{
sysClientVprst
=
sysClientVplist
.
get
(
0
);
}
return
sysClientVprst
;
}
@Override
public
XzxtRestResult
SaveClientVp
(
SysClientVp
sysClientVp
)
{
//加密算法(自定义)
sysClientVp
.
setPid
(
xzxtencode
(
sysClientVp
.
getPid
()));
...
...
src/main/java/com/founder/controller/HmCjController.java
View file @
d79b3e97
...
...
@@ -625,7 +625,7 @@ public class HmCjController {
// 图片下载、并且存入数据库
public
void
insPic
(
String
R_EDZZP64
,
String
rybh
,
String
zpbw
,
HttpServletRequest
request
)
{
String
fileName
=
rybh
+
zpbw
+
".jpg"
;
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
ServletContext
context
=
request
.
getSession
()
.
getServletContext
();
...
...
src/main/java/com/founder/controller/SwCjController.java
View file @
d79b3e97
...
...
@@ -251,7 +251,7 @@ public class SwCjController {
int
swcnt
=
swCjService
.
getSwSjXxCnt
(
rybhstr
);
//List<TbStSw> tbStSws = swCjService.getSwSjXxList(rybhstr);
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)
+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
@@ -478,7 +478,7 @@ public class SwCjController {
int
swcnt
=
swCjService
.
getSwSjXxCnt
(
rybhstr
);
//List<TbStSw> tbStSws = swCjService.getSwSjXxList(rybhstr);
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)
+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
@@ -572,7 +572,7 @@ public class SwCjController {
FileInputStream
ips
=
null
;
String
savePath
=
"/personphoto/"
+
rybh
.
substring
(
rybh
.
length
()
-
10
,
rybh
.
length
()
-
4
)
+
"/"
+
rybh
.
substring
(
rybh
.
length
()
-
3
,
rybh
.
length
());
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
@@ -625,7 +625,7 @@ public class SwCjController {
boolean
bool
=
swCjService
.
deleteSwxx
(
xxzjbh
);
if
(
bool
){
String
savePath
=
"/personphoto/"
+
rybh
.
substring
(
rybh
.
length
()
-
10
,
rybh
.
length
()
-
4
)
+
"/"
+
rybh
.
substring
(
rybh
.
length
()
-
3
,
rybh
.
length
());
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
src/main/java/com/founder/controller/TbXwRycjController.java
View file @
d79b3e97
...
...
@@ -204,6 +204,7 @@ public class TbXwRycjController {
model
.
addAttribute
(
"ryxx"
,
xyrC
);
model
.
addAttribute
(
"saveflag"
,
"0"
);
model
.
addAttribute
(
"perurl"
,
perurl
);
model
.
addAttribute
(
"clentip"
,
ips
);
return
"rygl/addryxx"
;
}
...
...
@@ -230,7 +231,7 @@ public class TbXwRycjController {
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
//String hcfilePath = request.getServletContext().getRealPath("/").replaceAll("\\\\","/");
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
@@ -391,7 +392,7 @@ public class TbXwRycjController {
ServletContext
context
=
request
.
getSession
()
.
getServletContext
();
//String filePath = context.getRealPath(savePath);
//filePath = filePath.substring(0,filePath.indexOf("\\"))+savePath;
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
@@ -451,7 +452,7 @@ public class TbXwRycjController {
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
//String hcfilePath = request.getServletContext().getRealPath("/").replaceAll("\\\\","/");
AutoTbRyZp
ryzp_pd
=
null
;
// 判断照片编号是否有对应照片
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
@@ -564,6 +565,13 @@ public class TbXwRycjController {
model
.
addAttribute
(
"cjsb"
,
cjsb
);
model
.
addAttribute
(
"perurl"
,
perurl
);
}
String
ips
=
""
;
try
{
ips
=
SysUitl
.
getIp
(
request
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
model
.
addAttribute
(
"clent"
,
ips
);
return
"rygl/addryxx"
;
}
...
...
@@ -848,7 +856,7 @@ public class TbXwRycjController {
String
rybhstr
=
xyrC
.
getRybh
();
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
//String hcfilePath = request.getServletContext().getRealPath("/").replaceAll("\\\\","/");
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
@@ -909,6 +917,13 @@ public class TbXwRycjController {
model
.
addAttribute
(
"ryxx"
,
xyrC
);
model
.
addAttribute
(
"saveflag"
,
"1"
);
model
.
addAttribute
(
"cjsb"
,
cjsb
);
String
ips
=
""
;
try
{
ips
=
SysUitl
.
getIp
(
request
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
model
.
addAttribute
(
"clent"
,
ips
);
return
"rygl/addryxx.html"
;
}
...
...
@@ -1233,7 +1248,7 @@ public class TbXwRycjController {
String
rybhstr
=
xyrC
.
getRybh
();
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
//String hcfilePath = request.getServletContext().getRealPath("/").replaceAll("\\\\","/");
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
//Param param = paramService.getParamById("0050");
String
zplj
=
param
.
getParamvalue
();
FileUtils
.
saveXmlFile
(
getPsnXml
(
xyrC
,
user
),
xyrC
.
getRybh
(),
zplj
,
"JBXX-"
+
xyrC
.
getRybh
()+
".xml"
,
user
);
...
...
@@ -1313,6 +1328,7 @@ public class TbXwRycjController {
model
.
addAttribute
(
"ryxx"
,
xyrC
);
model
.
addAttribute
(
"saveflag"
,
"1"
);
model
.
addAttribute
(
"cjsb"
,
cjsb
);
model
.
addAttribute
(
"clent"
,
ips
);
return
"rygl/addryxx.html"
;
}
...
...
@@ -1324,7 +1340,7 @@ public class TbXwRycjController {
AutoTbRyZp
ryzp_pd
=
null
;
// 判断照片编号是否有对应照片
boolean
xxbhflag
=
false
;
try
{
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
ServletContext
context
=
request
.
getSession
()
.
getServletContext
();
...
...
@@ -1409,7 +1425,7 @@ public class TbXwRycjController {
AutoTbRyZp
ryzp_pd
=
null
;
// 判断照片编号是否有对应照片
boolean
xxbhflag
=
false
;
try
{
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
ServletContext
context
=
request
.
getSession
()
.
getServletContext
();
...
...
@@ -2292,13 +2308,18 @@ public class TbXwRycjController {
pairs
.
add
(
pair7
);
pairs
.
add
(
pair8
);
System
.
out
.
println
(
"传递参数: "
+
res
);
//jsonResult= FileUtils.requestByPost("http://65.65.66.27:8081/szxc/query/person",res);
//jsonResult= FileUtils.requestByPost_new("http://65.65.66.27:8081/szxc/query/person",pairs);
String
jsonString
=
JSON
.
toJSONString
(
res
);
jsonResult
=
JSONObject
.
parseObject
(
FileUtils
.
postUrl
(
"http://65.65.66.27:8081/szxc/query/person"
,
jsonString
));
System
.
out
.
println
(
"方法一JSONObject jsonParam= JSONObject.parseObject(JSON.toJSONString(res))"
);
jsonResult
=
FileUtils
.
requestByPost
(
"http://65.65.66.27:8081/szxc/query/person"
,
res
);
System
.
out
.
println
(
"调用发比对接口返回结果一: "
+
jsonResult
);
System
.
out
.
println
(
"方法二NameValuePair"
);
jsonResult
=
FileUtils
.
requestByPost_new
(
"http://65.65.66.27:8081/szxc/query/person"
,
pairs
);
System
.
out
.
println
(
"调用发比对接口返回结果二: "
+
jsonResult
);
//System.out.println("方法三String jsonString = JSON.toJSONString(map)");
//jsonResult= JSONObject.parseObject(FileUtils.postUrl("http://65.65.66.27:8081/szxc/query/person",jsonString));
long
endTime
=
System
.
currentTimeMillis
();
//获取结束时间
System
.
out
.
println
(
"调用发比对接口返回时长: "
+(
endTime
-
startTime
)+
"ms"
);
System
.
out
.
println
(
"调用发比对接口返回结果
: "
+
jsonResult
);
//System.out.println("调用发比对接口返回结果三
: "+jsonResult);
log
.
info
(
"调用发比对接口返回时长: "
+(
endTime
-
startTime
)+
"ms"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
@@ -2410,7 +2431,7 @@ public class TbXwRycjController {
}
/*
String savePath = "/personphoto/"+ rybhstr.substring(rybhstr.length() - 10, rybhstr.length() - 4)+ "/" + rybhstr.substring(rybhstr.length() - 3, rybhstr.length());
Param param = paramService.getParamById("0
099
");
Param param = paramService.getParamById("0
100
");
String zplj = param.getParamvalue();
ServletContext context = request.getSession().getServletContext();
String filePath = zplj;
...
...
@@ -3398,6 +3419,13 @@ public class TbXwRycjController {
model
.
addAttribute
(
"saveflag"
,
"0"
);
model
.
addAttribute
(
"perurl"
,
perurl
);
model
.
addAttribute
(
"cjsb"
,
cjxm
);
String
ips
=
""
;
try
{
ips
=
SysUitl
.
getIp
(
request
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
model
.
addAttribute
(
"clent"
,
ips
);
if
(
sfhlcjy
!=
null
&&!
"1"
.
equals
(
sfhlcjy
)){
return
"rygl/addryxx_gk.html"
;
}
else
{
...
...
@@ -3441,7 +3469,7 @@ public class TbXwRycjController {
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
//String hcfilePath = request.getServletContext().getRealPath("/").replaceAll("\\\\","/");
AutoTbRyZp
ryzp_pd
=
null
;
// 判断照片编号是否有对应照片
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
@@ -3553,6 +3581,13 @@ public class TbXwRycjController {
model
.
addAttribute
(
"ryxx"
,
xyrC
);
model
.
addAttribute
(
"saveflag"
,
"0"
);
model
.
addAttribute
(
"perurl"
,
perurl
);
String
ips
=
""
;
try
{
ips
=
SysUitl
.
getIp
(
request
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
model
.
addAttribute
(
"clent"
,
ips
);
}
if
(
sfhlcjy
!=
null
&&!
"1"
.
equals
(
sfhlcjy
)){
returnStr
=
"rygl/addryxx_gk.html"
;
...
...
src/main/java/com/founder/controller/ZjCjController.java
View file @
d79b3e97
...
...
@@ -345,7 +345,7 @@ public class ZjCjController {
photoflag
=
false
;
}
}
/*
if
(
zjxx
.
getSbxh
()==
null
||
""
.
equals
(
zjxx
.
getSbxh
())){
zjxx
.
setSbxh
(
"50014000"
);
}
...
...
@@ -399,7 +399,7 @@ public class ZjCjController {
if
(
zjxx
.
getJtxdhw_y
()!=
null
&&
zjxx
.
getJtxdhw_y
().
length
()
>
0
){
String
rst3
=
xm_zj
(
user
,
"15"
,
zjxx
.
getJtxdhw_y
(),
zjxx
.
getRybh
());
}
*/
model
.
addAttribute
(
"username"
,
user
.
getUsername
());
model
.
addAttribute
(
"unitcode"
,
user
.
getUnitcode
());
model
.
addAttribute
(
"rybh"
,
zjxx
.
getRybh
());
...
...
src/main/java/com/founder/login/controller/LoginController.java
View file @
d79b3e97
...
...
@@ -117,7 +117,7 @@ public class LoginController {
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
//String hcfilePath = request.getServletContext().getRealPath("/").replaceAll("\\\\","/");
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
...
...
src/main/java/com/founder/util/TestTask.java
View file @
d79b3e97
...
...
@@ -65,7 +65,7 @@ public class TestTask {
public
Future
<
String
>
getRyzpimages
(
String
rybh
,
String
zjhm
,
String
zpbw
)
{
String
rst
=
""
;
Param
param
=
paramService
.
getParamById
(
"0
099
"
);
Param
param
=
paramService
.
getParamById
(
"0
100
"
);
String
zplj
=
param
.
getParamvalue
();
String
rybhstr
=
rybh
;
String
savePath
=
"/personphoto/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
10
,
rybhstr
.
length
()
-
4
)+
"/"
+
rybhstr
.
substring
(
rybhstr
.
length
()
-
3
,
rybhstr
.
length
());
...
...
src/main/resources/mapper/AutoTbXwRycjSqlMap.xml
View file @
d79b3e97
...
...
@@ -307,6 +307,11 @@
DAZT,
XYRDW,
EDZZPXXBH,
ZMZPXXBH,
CMZPXXBH,
YCMZPXXBH,
TBBZ,
IP,
JYAQ,
...
...
@@ -461,6 +466,15 @@
<if
test=
"entity.sadwzydm != null and entity.sadwzydm != ''"
>
,#{entity.sadwzydm , jdbcType=VARCHAR }
</if>
<if
test=
"entity.sadwzydm == null or entity.sadwzydm == ''"
>
,NULL
</if>
<if
test=
"entity.edzzpxxbh != null and entity.edzzpxxbh != ''"
>
,#{entity.edzzpxxbh , jdbcType=VARCHAR }
</if>
<if
test=
"entity.edzzpxxbh == null or entity.edzzpxxbh == ''"
>
,NULL
</if>
<if
test=
"entity.zmzpxxbh != null and entity.zmzpxxbh != ''"
>
,#{entity.zmzpxxbh , jdbcType=VARCHAR }
</if>
<if
test=
"entity.zmzpxxbh == null or entity.zmzpxxbh == ''"
>
,NULL
</if>
<if
test=
"entity.cmzpxxbh != null and entity.cmzpxxbh != ''"
>
,#{entity.cmzpxxbh , jdbcType=VARCHAR }
</if>
<if
test=
"entity.cmzpxxbh == null or entity.cmzpxxbh == ''"
>
,NULL
</if>
<if
test=
"entity.ycmzpxxbh != null and entity.ycmzpxxbh != ''"
>
,#{entity.ycmzpxxbh , jdbcType=VARCHAR }
</if>
<if
test=
"entity.ycmzpxxbh == null or entity.ycmzpxxbh == ''"
>
,NULL
</if>
,'0'
<if
test=
"entity.ip != null and entity.ip != ''"
>
,#{entity.ip , jdbcType=VARCHAR }
</if>
<if
test=
"entity.ip == null or entity.ip == ''"
>
,NULL
</if>
...
...
src/main/resources/mapper/SysClientVpMapper.xml
View file @
d79b3e97
...
...
@@ -95,6 +95,17 @@
)
WHERE RN
<![CDATA[ >= ]]>
${begin}
</select>
<!-- 通过条件分页查询,返回数据集 -->
<select
id=
"selectClientVp"
parameterType=
"com.founder.model.SysClientVp"
resultMap=
"BaseResultMap"
>
SELECT * FROM
(
SELECT A.*, ROWNUM RN
FROM (SELECT * FROM Sys_Client_Vp
<include
refid=
"queryWhere"
/>
) A
WHERE ROWNUM
<![CDATA[ <= ]]>
1000
)
WHERE RN
<![CDATA[ >= ]]>
0
</select>
<!-- 通过条件分页查询,返回总记录数 -->
<select
id=
"selectPageCount"
parameterType=
"com.founder.model.SysClientVp"
resultType=
"java.lang.Integer"
>
select count(1) from Sys_Client_Vp
...
...
src/main/resources/templates/rygl/addryxx.html
View file @
d79b3e97
...
...
@@ -276,8 +276,9 @@
});
editData
();
var
ifgk
=
""
;
//该采集点是否为高科采集点
checkZwClient
();
//checkZwClient();
var
clentip
=
$
(
"#clentip"
).
val
();
sbqxyz
(
clentip
,
""
);
var
unitcode
=
$
(
"#unitcode"
).
val
();
var
cjsb
=
$
(
"#cjsb"
).
val
();
if
(
unitcode
.
substring
(
0
,
2
)
==
"14"
){
...
...
@@ -1088,6 +1089,88 @@
return
flag
;
}
var
ifzw
=
0
;
var
ifsgtz
=
0
;
var
ifedz
=
0
;
var
ifhm
=
0
;
var
ifsj
=
0
;
var
ifzj
=
0
;
var
ifsw
=
0
;
var
ifyhk
=
0
;
//权限验证
function
sbqxyz
(
clientip
,
mac
)
{
debugger
;
var
sysClientVp
=
{
ip
:
clientip
,
mac
:
mac
};
//拼装成json格式
var
flag
=
""
;
$
.
ajax
({
type
:
"GET"
,
url
:
"getSysClientVp"
,
data
:
sysClientVp
,
dataType
:
"json"
,
async
:
false
,
success
:
function
(
data
){
if
(
data
.
spzt
==
"1"
){
var
rst
=
""
;
console
.
log
(
"设备权限验证结果:审批通过!"
);
console
.
log
(
"所具备采集权限,指纹:"
+
data
.
ifzwcjy
+
",二代证:"
+
data
.
ifedzydq
+
",身高体重:"
+
data
.
ifsftzzzcjy
+
",虹膜:"
+
data
.
ifhmcjy
+
",足迹:"
+
data
.
ifzjcjy
+
",声纹:"
+
data
.
ifswcjy
+
",手机:"
+
data
.
ifsjcjy
);
if
(
data
.
ifzwcjy
==
"否"
){
$
(
"#zw"
).
find
(
"a"
).
removeAttr
(
"href"
);
$
(
"#zw"
).
find
(
"a"
).
removeAttr
(
"onclick"
);
$
(
"#zw"
).
find
(
"a"
).
css
(
"cursor"
,
"default"
);
$
(
"#zw"
).
find
(
"a"
).
append
(
"<img src=
\"
/static/common/img/suo.png
\"
title=
\"
无权限
\"
/>"
);
$
(
"#zw"
).
find
(
"a"
).
unbind
(
"click"
);
}
if
(
data
.
ifedzydq
==
"否"
){
$
(
"#edz"
).
find
(
"a"
).
removeAttr
(
"href"
);
$
(
"#edz"
).
find
(
"a"
).
removeAttr
(
"onclick"
);
$
(
"#edz"
).
find
(
"a"
).
css
(
"cursor"
,
"default"
);
$
(
"#edz"
).
find
(
"a"
).
append
(
"<img src=
\"
/static/common/img/suo.png
\"
title=
\"
无权限
\"
/>"
);
$
(
"#edz"
).
find
(
"a"
).
unbind
(
"click"
);
}
if
(
data
.
ifsftzzzcjy
==
"否"
){
$
(
"#sgtz"
).
find
(
"a"
).
removeAttr
(
"href"
);
$
(
"#sgtz"
).
find
(
"a"
).
removeAttr
(
"onclick"
);
$
(
"#sgtz"
).
find
(
"a"
).
css
(
"cursor"
,
"default"
);
$
(
"#sgtz"
).
find
(
"a"
).
append
(
"<img src=
\"
/static/common/img/suo.png
\"
title=
\"
无权限
\"
/>"
);
$
(
"#sgtz"
).
find
(
"a"
).
unbind
(
"click"
);
}
if
(
data
.
ifhmcjy
==
"否"
){
$
(
"#hm"
).
find
(
"a"
).
removeAttr
(
"href"
);
$
(
"#hm"
).
find
(
"a"
).
removeAttr
(
"onclick"
);
$
(
"#hm"
).
find
(
"a"
).
css
(
"cursor"
,
"default"
);
$
(
"#hm"
).
find
(
"a"
).
append
(
"<img src=
\"
/static/common/img/suo.png
\"
title=
\"
无权限
\"
/>"
);
$
(
"#hm"
).
find
(
"a"
).
unbind
(
"click"
);
}
if
(
data
.
ifzjcjy
==
"否"
){
$
(
"#zj"
).
find
(
"a"
).
removeAttr
(
"href"
);
$
(
"#zj"
).
find
(
"a"
).
removeAttr
(
"onclick"
);
$
(
"#zj"
).
find
(
"a"
).
css
(
"cursor"
,
"default"
);
$
(
"#zj"
).
find
(
"a"
).
append
(
"<img src=
\"
/static/common/img/suo.png
\"
title=
\"
无权限
\"
/>"
);
$
(
"#zj"
).
find
(
"a"
).
unbind
(
"click"
);
}
if
(
data
.
ifsjcjy
==
"否"
){
$
(
"#sj"
).
find
(
"a"
).
removeAttr
(
"href"
);
$
(
"#sj"
).
find
(
"a"
).
removeAttr
(
"onclick"
);
$
(
"#sj"
).
find
(
"a"
).
css
(
"cursor"
,
"default"
);
$
(
"#sj"
).
find
(
"a"
).
append
(
"<img src=
\"
/static/common/img/suo.png
\"
title=
\"
无权限
\"
/>"
);
$
(
"#sj"
).
find
(
"a"
).
unbind
(
"click"
);
}
if
(
data
.
ifswcjy
==
"否"
){
$
(
"#sw"
).
find
(
"a"
).
removeAttr
(
"href"
);
$
(
"#sw"
).
find
(
"a"
).
removeAttr
(
"onclick"
);
$
(
"#sw"
).
find
(
"a"
).
css
(
"cursor"
,
"default"
);
$
(
"#sw"
).
find
(
"a"
).
append
(
"<img src=
\"
/static/common/img/suo.png
\"
title=
\"
无权限
\"
/>"
);
$
(
"#sw"
).
find
(
"a"
).
unbind
(
"click"
);
}
}
else
if
(
data
.
spzt
==
"0"
){
console
.
log
(
"设备权限验证结果:等待审批!"
);
}
else
{
console
.
log
(
"设备权限验证结果:设备未申请采集权限"
);
}
}
});
return
flag
;
}
...
...
@@ -1613,6 +1696,7 @@
<input
type=
"hidden"
id=
"username"
th:value=
"${username}"
/>
<input
type=
"hidden"
id=
"unitcode"
th:value=
"${unitcode}"
/>
<input
type=
"hidden"
id=
"cjsb"
name=
"cjsb"
th:value=
"${cjsb}"
/>
<input
type=
"hidden"
id=
"clentip"
name=
"clentip"
th:value=
"${clent}"
/>
<input
type=
"hidden"
id=
"saveflag"
name=
"saveflag"
th:value=
"${saveflag}"
/>
<input
type=
"hidden"
id=
"rysxstr"
name=
"rysxstr"
th:value=
"${ryxx.rysx}"
/>
<input
type=
"hidden"
id=
"edzzpflag"
name=
"edzzpflag"
th:value=
"1"
/>
...
...
@@ -2250,7 +2334,7 @@
<!-- 菜单 -->
<div
class=
"navbox"
style=
"position: fixed; left: 50%; margin-left: 520px; margin-top: 100px;"
>
<ul
class=
"navs"
>
<li><a
onclick=
"scanedz(document.frminput)"
href=
"#"
><i
class=
"fa fa-address-card-o"
></i>
二代证信息采集
</a></li>
<li
id=
"edz"
><a
onclick=
"scanedz(document.frminput)"
href=
"#"
><i
class=
"fa fa-address-card-o"
></i>
二代证信息采集
</a></li>
<li
id=
"sgtz"
><a
onclick=
"scanWH(document.frminput)"
href=
"#"
><i
class=
"fa fa-street-view"
></i>
身高体重信息采集
</a></li>
<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>
...
...
src/main/resources/templates/rygl/ryxxlist.html
View file @
d79b3e97
...
...
@@ -289,7 +289,7 @@
setInterval
(
function
()
{
console
.
log
(
"=====页面第 "
+
numcot
+
" 次自动刷新!====="
);
numcot
++
;
doQuery
();
//
doQuery();
},
180000
)
}
openCombotree
(
'hjdzXzqhdm'
);
...
...
src/main/resources/templates/ryswtz/ryswtzxx.html
View file @
d79b3e97
...
...
@@ -464,7 +464,7 @@
width=
"100%"
>
<thead>
<tr>
<th
data-options=
"field:'
手机串号',align:'center'"
style=
"width:13%;text-align:center;"
>
手机串号
</th>
<th
data-options=
"field:'
IMEI',align:'center'"
style=
"width:13%;text-align:center;"
>
IMEI
</th>
<th
data-options=
"field:'手机品牌型号',align:'center'"
style=
"width:12%;text-align:center;"
>
手机品牌型号
</th>
<th
data-options=
"field:'手机号码',align:'center'"
style=
"width:12%;"
>
手机号码
</th>
<th
data-options=
"field:'手机号码2',align:'center'"
style=
"width:12%;"
>
手机号码2
</th>
...
...
src/main/resources/templates/swcj/swcj.html
View file @
d79b3e97
...
...
@@ -68,7 +68,8 @@
var
audio
=
document
.
querySelector
(
'audio'
);
function
startRecording
()
{
if
(
navigator
.
mediaDevices
.
getUserMedia
||
navigator
.
getUserMedia
||
navigator
.
webkitGetUserMedia
||
navigator
.
mozGetUserMedia
)
{
//alert(navigator.mediaDevices.getUserMedia);
if
(
navigator
.
getUserMedia
||
navigator
.
webkitGetUserMedia
||
navigator
.
mozGetUserMedia
)
{
//调用用户媒体设备, 访问摄像头
//getUserMedia({video : {width: 450, height: 600}}, success, error);
}
else
{
...
...
@@ -183,7 +184,7 @@
function
doQuery
(){
debugger
;
var
table_title
=
[
{
title
:
"操作"
,
field
:
"xxsc_pdbz"
,
align
:
'center'
,
color
:
'gree'
,
width
:
13
0
,
formatter
:
function
(
val
,
row
,
index
){
{
title
:
"操作"
,
field
:
"xxsc_pdbz"
,
align
:
'center'
,
color
:
'gree'
,
width
:
8
0
,
formatter
:
function
(
val
,
row
,
index
){
var
xxzjbh
=
row
.
xxzjbh
;
var
ypsj
=
row
.
ypsjStr
;
var
wjmc
=
row
.
wjmc
;
...
...
@@ -191,7 +192,7 @@
return
"<span style='color: red;' onclick=
\"
downloadfile('"
+
wjmc
+
"')
\"
>下载</span> "
+
"<span style='color: red;' onclick=
\"
cut('"
+
xxzjbh
+
"','"
+
wjmc
+
"')
\"
>删除</span>"
;
}},
{
title
:
"声纹名称"
,
field
:
"wjmc"
,
align
:
'left'
,
width
:
15
0
},
{
title
:
"声纹名称"
,
field
:
"wjmc"
,
align
:
'left'
,
width
:
22
0
},
{
title
:
"采集时间"
,
field
:
"cjsjStr"
,
align
:
'left'
,
width
:
150
}
];
$
(
'#swxxtable'
).
datagrid
({
...
...
src/main/resources/templates/zljc/zljccx.html
View file @
d79b3e97
...
...
@@ -357,16 +357,17 @@ function doQuery(){
var
rybh
=
row
.
rrybh
;
var
szzwbh
=
row
.
rzwbh
;
var
zwcjsjStr
=
row
.
rcjsjStr
;
return
"<span title='点击查看指纹详情' onclick=
\"
openXq('"
+
rybh
+
"','"
+
szzwbh
+
"','"
+
zwcjsjStr
+
"')
\"
>"
+
szzwbh
+
"</span> <span onclick=
\"
showYche(this,'"
+
rybh
+
"')
\"
><img src='static/xtba/zljc/css/images/asjxx_ychy.png' style='width:20px;position: relative;top: 5px;' /></span>"
;
return
"<span title='点击查看指纹详情' onclick=
\"
openXq('"
+
rybh
+
"','"
+
szzwbh
+
"','"
+
zwcjsjStr
+
"')
\"
>"
+
szzwbh
+
"</span> <span onclick=
\"
showYche(this,'"
+
rybh
+
"'
,'"
+
szzwbh
+
"'
)
\"
><img src='static/xtba/zljc/css/images/asjxx_ychy.png' style='width:20px;position: relative;top: 5px;' /></span>"
;
}},
{
title
:
"姓名"
,
field
:
"rxm"
,
align
:
'center'
,
width
:
90
},
{
title
:
"身份证号"
,
field
:
"zjhm"
,
align
:
'center'
,
width
:
175
,
formatter
:
function
(
val
,
row
,
index
){
var
zjhm
=
row
.
zjhm
;
var
rybh
=
row
.
rrybh
;
var
rzwbh
=
row
.
rzwbh
;
if
(
zjhm
==
""
||
zjhm
==
null
||
zjhm
==
"null"
){
zjhm
=
""
;
}
return
zjhm
+
" <span onclick=
\"
showYche(this,'"
+
rybh
+
"')
\"
><img src='static/xtba/zljc/css/images/asjxx_ychy.png' style='width:20px;position: relative;top: 5px;' /></span>"
;
return
zjhm
+
" <span onclick=
\"
showYche(this,'"
+
rybh
+
"'
,'"
+
rzwbh
+
"'
)
\"
><img src='static/xtba/zljc/css/images/asjxx_ychy.png' style='width:20px;position: relative;top: 5px;' /></span>"
;
}},
{
title
:
"户籍地"
,
field
:
"hjd"
,
align
:
'center'
,
width
:
180
},
{
title
:
"采集单位"
,
field
:
"rcjdw"
,
align
:
'center'
,
width
:
280
},
...
...
@@ -699,7 +700,7 @@ function cut(zwbh){
});
}
}
function
showYche
(
obj
,
rybh
){
function
showYche
(
obj
,
rybh
,
zwbh
){
/*var sessionbean=getSessionBean();
var policemanid=sessionbean.policemanid;
var password=sessionbean.password;
...
...
@@ -713,6 +714,8 @@ function showYche(obj,rybh){
htmlChild
+=
"<li onclick='dsbmt()'><img src='static/xtba/zljc/layer/img/06.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>人员侦办</span></li>"
;
htmlChild
+=
"<li onclick='dsbmt()'><img src='static/xtba/zljc/layer/img/06.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>全网核查</span></li>"
;
htmlChild
+=
"<li onclick='dsbmt()'><img src='static/xtba/zljc/layer/img/06.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>轨迹挖掘</span></li>"
;
htmlChild
+=
"<li onclick=
\"
sendZwbd('"
+
zwbh
+
"')
\"
><img src='static/xtba/zljc/layer/img/06.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>发送比对</span></li>"
;
htmlChild
+=
"<li onclick=
\"
getZwbd('"
+
zwbh
+
"')
\"
><img src='static/xtba/zljc/layer/img/06.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>获取比对结果</span></li>"
;
htmlChild
+=
"</ul>"
;
layer
.
tips
(
htmlChild
,
obj
,{
time
:
55000
,
tips
:[
4
,
'#f3f7f8'
],
width
:
380
});
//在元素的事件回调体中,follow直接赋予this即可
}
...
...
@@ -752,7 +755,7 @@ function getZwbd(rybh){
debugger
;
alert
(
"get==="
+
rybh
);
var
urlstr
=
"http://65.65.66.27:8081/szxc/result/t
t
Match?rwbh="
+
rybh
var
urlstr
=
"http://65.65.66.27:8081/szxc/result/t
l
Match?rwbh="
+
rybh
$
.
ajax
({
type
:
"POST"
,
url
:
"/getBdjg"
,
...
...
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