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
91430cd9
Commit
91430cd9
authored
May 08, 2021
by
yangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
足迹比中信息对接
parent
87aa627e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
419 additions
and
6 deletions
+419
-6
src/main/java/com/founder/config/FilterConfig.java
+1
-1
src/main/java/com/founder/controller/ZjCjController.java
+100
-5
src/main/java/com/founder/dao/ZjbzxxDao.java
+15
-0
src/main/java/com/founder/model/TbZjbzxx.java
+177
-0
src/main/java/com/founder/service/IZjbzxxService.java
+21
-0
src/main/java/com/founder/service/impl/ZjbzxxServiceImpl.java
+32
-0
src/main/resources/mapper/ZjbzxxSqlMapper.xml
+71
-0
src/main/resources/templates/zjcj/zjcj.html
+2
-0
No files found.
src/main/java/com/founder/config/FilterConfig.java
View file @
91430cd9
...
...
@@ -19,7 +19,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
addPathPatterns
(
"/**"
).
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"
,
"/toFjxz"
,
"/toCzsmxz"
,
"/download/**"
,
"/toObjectKJ"
,
"/catchimg"
,
"/iframe1"
,
"/iframe2"
,
"/xj"
,
"/report"
,
"/SavePersonInfo4Nmtc"
,
"/singleLoginAct"
,
"/doLogin"
,
"/toHome"
,
"/static*//**"
,
"/refreshCodeCache"
,
"/qxdoLogin"
,
"/queryNameByCode"
,
"/queryTypeCode"
,
"/toFjxz"
,
"/toCzsmxz"
,
"/download/**"
,
"/toObjectKJ"
,
"/catchimg"
,
"/iframe1"
,
"/iframe2"
,
"/xj"
,
"/report"
,
"/SavePersonInfo4Nmtc"
,
"/
getZjxxbdjg"
,
"/
singleLoginAct"
,
"/getYhkDetail"
,
"/getSwDetail"
,
"/getRyzjzpimages"
,
"/getRyzpimages"
,
"/getPmimages"
,
"/getGdimages"
);
...
...
src/main/java/com/founder/controller/ZjCjController.java
View file @
91430cd9
...
...
@@ -2,14 +2,14 @@ package com.founder.controller;
import
com.alibaba.fastjson.JSONException
;
import
com.alibaba.fastjson.JSONObject
;
import
com.founder.domain.TbFwXxdl
;
import
com.founder.model.*
;
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.service.ITbRyRyzpService
;
import
com.founder.service.*
;
import
com.founder.socketio.service.IMessageService
;
import
com.founder.utils.DateUtil
;
import
com.founder.utils.FileUtils
;
import
com.founder.utils.StringUtil
;
import
org.apache.commons.codec.binary.Base64
;
import
org.codehaus.xfire.client.Client
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -31,6 +31,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.*
;
import
java.net.*
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
...
...
@@ -41,7 +42,7 @@ import java.util.*;
public
class
ZjCjController
{
@Autowired
private
I
HmCjService
hmCj
Service
;
private
I
ZjbzxxService
zjbzxx
Service
;
@Autowired
private
IDicItemService
dicItemService
;
...
...
@@ -54,6 +55,9 @@ public class ZjCjController {
@Autowired
private
AutoTbXwRycjService
rycjService
;
@Autowired
private
IMessageService
messageService
;
@RequestMapping
(
"/toZjCj"
)
public
ModelAndView
toTest
(
ModelAndView
model
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
TbXwYthcjZj
zjxx
=
new
TbXwYthcjZj
();
...
...
@@ -1293,4 +1297,94 @@ public class ZjCjController {
}
return
bool
;
}
@RequestMapping
(
"/getZjxxbdjg"
)
@ResponseBody
public
boolean
getZjxxbdjg
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
TbZjbzxx
zjbzxx
=
new
TbZjbzxx
();
System
.
out
.
println
(
"rybh1=============="
+
request
.
getParameter
(
"rybh"
));
DateFormat
df
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
zjbzxx
.
setRybh
(
StringUtil
.
checknull
(
request
.
getParameter
(
"rybh"
)));
zjbzxx
.
setXm
(
StringUtil
.
checknull
(
request
.
getParameter
(
"xm"
)));
zjbzxx
.
setSfzh
(
StringUtil
.
checknull
(
request
.
getParameter
(
"sfzh"
)));
zjbzxx
.
setAsjbh
(
StringUtil
.
checknull
(
request
.
getParameter
(
"asjbh"
)));
zjbzxx
.
setJyaq
(
StringUtil
.
checknull
(
request
.
getParameter
(
"jyaq"
)));
zjbzxx
.
setXkbh
(
StringUtil
.
checknull
(
request
.
getParameter
(
"xkbh"
)));
zjbzxx
.
setAjmc
(
StringUtil
.
checknull
(
request
.
getParameter
(
"ajmc"
)));
zjbzxx
.
setFadd
(
StringUtil
.
checknull
(
request
.
getParameter
(
"fadd"
)));
zjbzxx
.
setAjlb
(
StringUtil
.
checknull
(
request
.
getParameter
(
"ajlb"
)));
zjbzxx
.
setBzxyrzjbw
(
StringUtil
.
checknull
(
request
.
getParameter
(
"bzxyrzjbw"
)));
zjbzxx
.
setBzajzjxh
(
StringUtil
.
checknull
(
request
.
getParameter
(
"bzajzjxh"
)));
zjbzxx
.
setXyrzjtp
(
StringUtil
.
checknull
(
request
.
getParameter
(
"xyrzjtp"
)));
zjbzxx
.
setAjzjtp
(
StringUtil
.
checknull
(
request
.
getParameter
(
"ajzjtp"
)));
if
(
zjbzxx
.
getXyrzjtp
()!=
null
&&!
""
.
equals
(
zjbzxx
.
getXyrzjtp
())){
String
zpimg
=
""
;
if
(
zjbzxx
.
getXyrzjtp
().
indexOf
(
"/9j/"
)>=
0
){
zpimg
=
zjbzxx
.
getXyrzjtp
().
substring
(
zjbzxx
.
getXyrzjtp
().
indexOf
(
"/9j/"
));
zjbzxx
.
setXyrzjtp
(
zpimg
);
}
else
{
zpimg
=
zjbzxx
.
getXyrzjtp
();
}
zjbzxx
.
setZpsj0
(
GenerateImage
(
zpimg
));
}
if
(
zjbzxx
.
getAjzjtp
()!=
null
&&!
""
.
equals
(
zjbzxx
.
getAjzjtp
())){
String
zpimg
=
""
;
if
(
zjbzxx
.
getAjzjtp
().
indexOf
(
"/9j/"
)>=
0
){
zpimg
=
zjbzxx
.
getAjzjtp
().
substring
(
zjbzxx
.
getAjzjtp
().
indexOf
(
"/9j/"
));
zjbzxx
.
setAjzjtp
(
zpimg
);
}
else
{
zpimg
=
zjbzxx
.
getAjzjtp
();
}
zjbzxx
.
setZpsj1
(
GenerateImage
(
zpimg
));
}
zjbzxx
.
setBzdw
(
StringUtil
.
checknull
(
request
.
getParameter
(
"bzdw"
)));
String
fasj
=
StringUtil
.
checknull
(
request
.
getParameter
(
"fasj"
));
String
bzsj
=
StringUtil
.
checknull
(
request
.
getParameter
(
"bzsj"
));
System
.
out
.
println
(
"fasj============="
+
fasj
+
"======bzsj====="
+
bzsj
);
try
{
if
(
fasj
==
null
||
fasj
.
equals
(
""
)){
zjbzxx
.
setFasj
(
null
);
}
else
{
zjbzxx
.
setFasj
(
df
.
parse
(
fasj
));
}
if
(
bzsj
==
null
||
bzsj
.
equals
(
""
)){
zjbzxx
.
setBzsj
(
null
);
}
else
{
zjbzxx
.
setBzsj
(
df
.
parse
(
bzsj
));
}
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
boolean
bool
=
false
;
zjbzxx
.
setXxzjbh
(
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
));
bool
=
zjbzxxService
.
SaveZjxxbdjg
(
zjbzxx
);
if
(
bool
){
TbFwXxdl
tbFwXxdl
=
new
TbFwXxdl
();
AutoTbStRy
ryxx
=
rycjService
.
getRyxxByRybh
(
request
.
getParameter
(
"rybh"
));
tbFwXxdl
.
setJsdwDm
(
ryxx
.
getLrdwdm
());
tbFwXxdl
.
setFsrName
(
ryxx
.
getLrr
());
tbFwXxdl
.
setXxbt
(
"足迹比中"
);
tbFwXxdl
.
setXxlx
(
"1"
);
tbFwXxdl
.
setXxnr
(
"嫌疑人:"
+
ryxx
.
getXm
()+
",人员编号:"
+
ryxx
.
getRybh
()+
" 有足迹比中信息!"
);
String
Message
=
messageService
.
sendMessage
(
tbFwXxdl
);
}
return
bool
;
}
public
static
byte
[]
GenerateImage
(
String
imgStr
)
{
// 对字节数组字符串进行Base64解码并生成图片
if
(
imgStr
==
null
)
// 图像数据为空
return
null
;
BASE64Decoder
decoder
=
new
BASE64Decoder
();
try
{
// Base64解码
byte
[]
bytes
=
decoder
.
decodeBuffer
(
imgStr
);
for
(
int
i
=
0
;
i
<
bytes
.
length
;
++
i
)
{
if
(
bytes
[
i
]
<
0
)
{
// 调整异常数据
bytes
[
i
]
+=
256
;
}
}
return
bytes
;
}
catch
(
Exception
e
)
{
return
null
;
}
}
}
\ No newline at end of file
src/main/java/com/founder/dao/ZjbzxxDao.java
0 → 100644
View file @
91430cd9
package
com
.
founder
.
dao
;
import
com.founder.model.TbZjbzxx
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
@Component
@Mapper
public
interface
ZjbzxxDao
{
Boolean
insertZjbzxx
(
TbZjbzxx
entity
);
Boolean
updateZjbzxx
(
TbZjbzxx
entity
);
List
<
TbZjbzxx
>
getZjbzxx
(
String
rybh
);
}
src/main/java/com/founder/model/TbZjbzxx.java
0 → 100644
View file @
91430cd9
package
com
.
founder
.
model
;
import
java.util.Date
;
public
class
TbZjbzxx
{
public
String
xxzjbh
;
//信息主键编号
public
String
rybh
;
//人员编号
public
String
sfzh
;
//身份证号
public
String
xm
;
//姓名
public
String
asjbh
;
//案事件编号
public
String
xkbh
;
//现勘编号
public
String
ajmc
;
//案件名称
public
Date
fasj
;
//发案时间
public
String
fadd
;
//发案地点
public
String
ajlb
;
//案件类别
public
String
jyaq
;
//简要案情
public
String
bzxyrzjbw
;
//比中嫌疑人足迹部位 (1:左足,2:右足)
public
String
bzajzjxh
;
//比中案件足迹图片序号
public
String
xyrzjtp
;
//嫌疑人足迹图片 bsae64str
public
String
ajzjtp
;
//比中案件现场足迹图片 bsae64str
private
byte
[]
zpsj0
=
null
;
private
byte
[]
zpsj1
=
null
;
public
String
bzdw
;
//比中单位
public
Date
bzsj
;
//比中时间
public
String
getRybh
()
{
return
rybh
;
}
public
void
setRybh
(
String
rybh
)
{
this
.
rybh
=
rybh
;
}
public
String
getSfzh
()
{
return
sfzh
;
}
public
void
setSfzh
(
String
sfzh
)
{
this
.
sfzh
=
sfzh
;
}
public
String
getXm
()
{
return
xm
;
}
public
void
setXm
(
String
xm
)
{
this
.
xm
=
xm
;
}
public
String
getAsjbh
()
{
return
asjbh
;
}
public
void
setAsjbh
(
String
asjbh
)
{
this
.
asjbh
=
asjbh
;
}
public
String
getXkbh
()
{
return
xkbh
;
}
public
void
setXkbh
(
String
xkbh
)
{
this
.
xkbh
=
xkbh
;
}
public
String
getAjmc
()
{
return
ajmc
;
}
public
void
setAjmc
(
String
ajmc
)
{
this
.
ajmc
=
ajmc
;
}
public
Date
getFasj
()
{
return
fasj
;
}
public
void
setFasj
(
Date
fasj
)
{
this
.
fasj
=
fasj
;
}
public
String
getFadd
()
{
return
fadd
;
}
public
void
setFadd
(
String
fadd
)
{
this
.
fadd
=
fadd
;
}
public
String
getAjlb
()
{
return
ajlb
;
}
public
void
setAjlb
(
String
ajlb
)
{
this
.
ajlb
=
ajlb
;
}
public
String
getJyaq
()
{
return
jyaq
;
}
public
void
setJyaq
(
String
jyaq
)
{
this
.
jyaq
=
jyaq
;
}
public
String
getBzxyrzjbw
()
{
return
bzxyrzjbw
;
}
public
void
setBzxyrzjbw
(
String
bzxyrzjbw
)
{
this
.
bzxyrzjbw
=
bzxyrzjbw
;
}
public
String
getBzajzjxh
()
{
return
bzajzjxh
;
}
public
void
setBzajzjxh
(
String
bzajzjxh
)
{
this
.
bzajzjxh
=
bzajzjxh
;
}
public
String
getXyrzjtp
()
{
return
xyrzjtp
;
}
public
void
setXyrzjtp
(
String
xyrzjtp
)
{
this
.
xyrzjtp
=
xyrzjtp
;
}
public
String
getAjzjtp
()
{
return
ajzjtp
;
}
public
void
setAjzjtp
(
String
ajzjtp
)
{
this
.
ajzjtp
=
ajzjtp
;
}
public
String
getBzdw
()
{
return
bzdw
;
}
public
void
setBzdw
(
String
bzdw
)
{
this
.
bzdw
=
bzdw
;
}
public
Date
getBzsj
()
{
return
bzsj
;
}
public
void
setBzsj
(
Date
bzsj
)
{
this
.
bzsj
=
bzsj
;
}
public
byte
[]
getZpsj0
()
{
return
zpsj0
;
}
public
void
setZpsj0
(
byte
[]
zpsj0
)
{
this
.
zpsj0
=
zpsj0
;
}
public
byte
[]
getZpsj1
()
{
return
zpsj1
;
}
public
void
setZpsj1
(
byte
[]
zpsj1
)
{
this
.
zpsj1
=
zpsj1
;
}
public
String
getXxzjbh
()
{
return
xxzjbh
;
}
public
void
setXxzjbh
(
String
xxzjbh
)
{
this
.
xxzjbh
=
xxzjbh
;
}
}
src/main/java/com/founder/service/IZjbzxxService.java
0 → 100644
View file @
91430cd9
package
com
.
founder
.
service
;
import
com.founder.model.TbZjbzxx
;
import
java.util.List
;
public
interface
IZjbzxxService
{
/**
* 保存足迹比中信息
* @param zjbzxx
* @return
*/
Boolean
SaveZjxxbdjg
(
TbZjbzxx
zjbzxx
);
/**
* 获取足迹比中信息
* @param rybh
* @return
*/
List
<
TbZjbzxx
>
getZjxxbdjg
(
String
rybh
);
}
src/main/java/com/founder/service/impl/ZjbzxxServiceImpl.java
0 → 100644
View file @
91430cd9
package
com
.
founder
.
service
.
impl
;
import
com.founder.dao.XxwcjsmDao
;
import
com.founder.dao.ZjbzxxDao
;
import
com.founder.model.TbZjbzxx
;
import
com.founder.service.IZjbzxxService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
ZjbzxxServiceImpl
implements
IZjbzxxService
{
@Autowired
private
ZjbzxxDao
zjbzxxDao
;
@Override
public
Boolean
SaveZjxxbdjg
(
TbZjbzxx
zjbzxx
)
{
Boolean
b
=
false
;
try
{
b
=
zjbzxxDao
.
insertZjbzxx
(
zjbzxx
);
}
catch
(
Exception
e
){
System
.
out
.
println
(
"插入信息未采集说明失败"
+
e
);
}
return
b
;
}
@Override
public
List
<
TbZjbzxx
>
getZjxxbdjg
(
String
rybh
){
return
zjbzxxDao
.
getZjbzxx
(
rybh
);
}
}
src/main/resources/mapper/ZjbzxxSqlMapper.xml
0 → 100644
View file @
91430cd9
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.founder.dao.ZjbzxxDao"
>
<insert
id=
"insertZjbzxx"
parameterType=
"com.founder.model.TbZjbzxx"
>
insert into TB_XW_YTHCJ_ZJ_ZJBZXX (
XXZJBH,
RYBH,
XM,
SFZH,
ASJBH,
XKBH,
AJMC,
FADD,
AJLB,
JYAQ,
FASJ,
XYRZJTP,
BZXYRZJBW,
AJZJTP,
BZAJZJXH,
BZDW,
BZSJ,
SCBZ
) values (
#{xxzjbh ,jdbcType=VARCHAR},
#{rybh ,jdbcType=VARCHAR},
#{xm ,jdbcType=VARCHAR},
#{sfzh ,jdbcType=VARCHAR},
#{asjbh ,jdbcType=VARCHAR},
#{xkbh ,jdbcType=VARCHAR},
#{ajmc ,jdbcType=VARCHAR},
#{fadd ,jdbcType=VARCHAR},
#{ajlb ,jdbcType=VARCHAR},
#{jyaq ,jdbcType=VARCHAR},
#{fasj,jdbcType=TIMESTAMP},
#{zpsj0 ,jdbcType=VARCHAR},
#{bzxyrzjbw,jdbcType=VARCHAR},
#{zpsj1 ,jdbcType=VARCHAR},
#{bzajzjxh,jdbcType=VARCHAR},
#{bzdw,jdbcType=VARCHAR},
#{bzsj,jdbcType=TIMESTAMP},
'0'
)
</insert>
<select
id=
"getZjbzxx"
parameterType=
"java.lang.String"
resultType=
"com.founder.model.TbZjbzxx"
>
select
XXZJBH,
RYBH,
XM,
SFZH,
ASJBH,
XKBH,
AJMC,
FADD,
AJLB,
JYAQ,
FASJ,
XYRZJTP as ZPSJ0,
BZXYRZJBW,
AJZJTP AS ZPSJ1,
BZAJZJXH,
BZDW,
BZSJ,
SCBZ
from TB_XW_YTHCJ_ZJ_ZJBZXX where (SCBZ='0' or SCBZ is null) and (RYBH = #{rybh, jdbcType=VARCHAR } OR SFZH = #{rybh, jdbcType=VARCHAR })
</select>
</mapper>
\ No newline at end of file
src/main/resources/templates/zjcj/zjcj.html
View file @
91430cd9
...
...
@@ -853,6 +853,8 @@ var zjts = 0;
if
(
tszt
==
2
){
return
;
}
var
rybh
=
$
(
"#rybh"
).
val
();
alert
(
rybh
.
substring
(
1
,
5
));
$
.
post
(
"http://121.36.153.71:7009/ServerPages/RYGL/XyrScxx.ashx"
,
{
"mType"
:
"SynchroUser"
,
"p_strUserId"
:
$
(
"#username"
).
val
(),
"p_strLoginName"
:
$
(
"#username"
).
val
(),
"p_strUserRealName"
:
$
(
"#trueName"
).
val
(),
"p_strUserDept"
:
"430900000000"
,
"p_strLoginPsd"
:
""
},
...
...
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