Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dxzpService
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
曹崟
dxzpService
Commits
19738905
Commit
19738905
authored
Jul 11, 2019
by
吴善钰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网侦预警业务调整
parent
7b233cfe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
202 additions
and
92 deletions
+202
-92
src/main/java/com/founder/model/TbStDxzp.java
+94
-52
src/main/java/com/founder/wzyj/controller/WzyjController.java
+33
-1
src/main/resources/application.properties
+1
-1
src/main/resources/mapper/WzyjMapper.xml
+71
-35
src/main/resources/static/js/wzyj.js
+3
-3
src/main/webapp/WEB-INF/jsp/wzyj/yjcz.jsp
+0
-0
No files found.
src/main/java/com/founder/model/TbStDxzp.java
View file @
19738905
...
@@ -6,58 +6,60 @@ import java.util.Date;
...
@@ -6,58 +6,60 @@ import java.util.Date;
* Created by wangyang on 2019/1/15.
* Created by wangyang on 2019/1/15.
*/
*/
public
class
TbStDxzp
extends
BaseModel
{
public
class
TbStDxzp
extends
BaseModel
{
//信息主键编号
private
String
zjbh
;
private
String
zjbh
;
//信息主键编号
//诈骗方微信id
private
String
zpfWxid
;
private
String
zpfWxid
;
//诈骗方微信id
//诈骗方qq
private
String
zpfQq
;
private
String
zpfQq
;
//诈骗方qq
//诈骗方手机号码
private
String
zpfSjhm
;
private
String
zpfSjhm
;
//诈骗方手机号码
//被骗方微信
private
String
bpfWxid
;
private
String
bpfWxid
;
//被骗方微信
//被骗方qq
private
String
bpfQq
;
//被骗方qq
private
String
bpfQq
;
//被骗方手机号码
private
String
bpfSjhm
;
//被骗方手机号码
private
String
bpfSjhm
;
//预警强度
private
String
yjqd
;
//预警强度
private
String
yjqd
;
private
Date
rksj
;
//入库时间
//入库时间
private
Date
rksj
;
private
String
xxczrXm
;
//信息操作人姓名
//信息操作人姓名
private
String
xxczrXm
;
private
String
xxczrJh
;
// 警号
// 警号
private
String
xxczrJh
;
private
String
xxczrDw
;
//单位
//单位
private
String
xxczrDw
;
private
String
czzt
;
// 处置状态:是否被处置 0:已处置 1:处置
// 处置状态:是否被处置 0:已处置 1:处置
private
String
czzt
;
private
String
hcjg
;
//核查结果
private
String
hcjg
;
private
String
bp_flag
;
//是否被骗
private
String
bp_flag
;
private
String
hcqk
;
//核查情况
private
String
hcqk
;
private
String
jssj
;
//接收时间
//接收时间
private
String
jqzt_flag
;
//警情是否有效
private
String
jssj
;
private
String
fkje
;
//付款金额
//警情是否有效
private
String
jqzt_flag
;
private
String
zplx
;
//诈骗类型
//付款金额
private
String
yyjcs
;
//已预警次数
private
String
fkje
;
private
String
zhhdd
;
//最后活动地
//诈骗类型
private
String
zplx
;
private
String
sprSfcr
;
//受骗人是否被骗
//已预警次数
private
String
sprSffk
;
//受骗人是否付款
private
String
yyjcs
;
private
String
sprSfba
;
//受骗人是否报案
//最后活动地
private
String
zhhdd
;
private
String
sfgzrhjcpj
;
//是否告知如何揭穿骗局
private
String
sfxyzcyj
;
//是否需要再次预警
//分页查询用
//分页查询用
//查询分页开始结束
//查询分页开始结束
...
@@ -259,4 +261,44 @@ public class TbStDxzp extends BaseModel {
...
@@ -259,4 +261,44 @@ public class TbStDxzp extends BaseModel {
public
void
setJssj
(
String
jssj
)
{
public
void
setJssj
(
String
jssj
)
{
this
.
jssj
=
jssj
;
this
.
jssj
=
jssj
;
}
}
public
String
getSprSfcr
()
{
return
sprSfcr
;
}
public
void
setSprSfcr
(
String
sprSfcr
)
{
this
.
sprSfcr
=
sprSfcr
;
}
public
String
getSprSffk
()
{
return
sprSffk
;
}
public
void
setSprSffk
(
String
sprSffk
)
{
this
.
sprSffk
=
sprSffk
;
}
public
String
getSprSfba
()
{
return
sprSfba
;
}
public
void
setSprSfba
(
String
sprSfba
)
{
this
.
sprSfba
=
sprSfba
;
}
public
String
getSfgzrhjcpj
()
{
return
sfgzrhjcpj
;
}
public
void
setSfgzrhjcpj
(
String
sfgzrhjcpj
)
{
this
.
sfgzrhjcpj
=
sfgzrhjcpj
;
}
public
String
getSfxyzcyj
()
{
return
sfxyzcyj
;
}
public
void
setSfxyzcyj
(
String
sfxyzcyj
)
{
this
.
sfxyzcyj
=
sfxyzcyj
;
}
}
}
src/main/java/com/founder/wzyj/controller/WzyjController.java
View file @
19738905
...
@@ -2,6 +2,8 @@ package com.founder.wzyj.controller;
...
@@ -2,6 +2,8 @@ package com.founder.wzyj.controller;
import
com.founder.model.EasyUIPage
;
import
com.founder.model.EasyUIPage
;
import
com.founder.model.TbStDxzp
;
import
com.founder.model.TbStDxzp
;
import
com.founder.model.User
;
import
com.founder.util.ExportExcelUtil
;
import
com.founder.wzyj.service.IWzyjService
;
import
com.founder.wzyj.service.IWzyjService
;
import
net.sf.json.JSONObject
;
import
net.sf.json.JSONObject
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -11,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -11,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -93,7 +97,14 @@ public class WzyjController {
...
@@ -93,7 +97,14 @@ public class WzyjController {
*/
*/
@RequestMapping
(
"/savewzyj"
)
@RequestMapping
(
"/savewzyj"
)
@ResponseBody
@ResponseBody
public
String
savewzyj
(
TbStDxzp
tbStDxzp
){
public
String
savewzyj
(
TbStDxzp
tbStDxzp
,
HttpServletRequest
request
){
//获取操作人信息
User
user
=
(
User
)
request
.
getSession
().
getAttribute
(
"user"
);
if
(
null
!=
user
){
tbStDxzp
.
setXxczryXm
(
user
.
getTrueName
());
tbStDxzp
.
setXxczrDw
(
user
.
getUnitcode
());
tbStDxzp
.
setXxczrJh
(
user
.
getPolicemanid
());
}
String
message
=
"fail"
;
String
message
=
"fail"
;
//预警处置
//预警处置
boolean
result
=
wzyjService
.
savewzyj
(
tbStDxzp
);
boolean
result
=
wzyjService
.
savewzyj
(
tbStDxzp
);
...
@@ -107,4 +118,25 @@ public class WzyjController {
...
@@ -107,4 +118,25 @@ public class WzyjController {
return
message
;
return
message
;
}
}
/**
* 根据查询条件导出网安预警excel数据
* @param response
* @param tbStDxzp 网安预警对象
* @throws Exception
* todo 目前没有引用,还没有想好那些字段适合导出,其他功能完善后处理
*/
@RequestMapping
(
"/exportWzyjExcel"
)
@ResponseBody
public
void
exportWzyjExcel
(
HttpServletResponse
response
,
TbStDxzp
tbStDxzp
)
throws
Exception
{
//查询网综预警数据
List
<
TbStDxzp
>
list
=
wzyjService
.
toQueryWzyjList
(
tbStDxzp
);
//创建对象
ExportExcelUtil
<
TbStDxzp
>
exportExcelUtil
=
new
ExportExcelUtil
<>();
//设置表格表头
String
[]
headersName
=
{
"标识号"
,
"标识号类型"
,
"类型"
,
"号码"
,
"姓名"
,
"性别"
,
"出生日期"
};
//添加对应的属性
String
[]
headersField
=
{
"objectValue"
,
"objectTypeName"
,
"zjlx"
,
"zjhm"
,
"name"
,
"sex"
,
"birthday"
};
//获取并下载相应的表格
exportExcelUtil
.
exportExcel
(
"网综预警统计表"
,
headersName
,
headersField
,
list
,
response
);
}
}
}
src/main/resources/application.properties
View file @
19738905
#开发环境使用dev,正式环境使用pro
d
#开发环境使用dev,正式环境使用pro
spring.profiles.active
=
pro
spring.profiles.active
=
pro
# 页面默认前缀目录
# 页面默认前缀目录
spring.mvc.view.prefix
=
/WEB-INF/jsp/
spring.mvc.view.prefix
=
/WEB-INF/jsp/
...
...
src/main/resources/mapper/WzyjMapper.xml
View file @
19738905
...
@@ -20,20 +20,15 @@
...
@@ -20,20 +20,15 @@
FKJE fkje,
FKJE fkje,
YYJCS yyjcs,
YYJCS yyjcs,
ZHHDD zhhdd,
ZHHDD zhhdd,
SPR_SFCR sprSfcr,
SPR_SFFK sprSffk,
SPR_SFBA sprSfba,
SFGZRHJCPJ sfgzrhjcpj,
SFXYZCYJ sfxyzcyj,
to_char(JSSJ, 'yyyy-MM-dd') as jssj
to_char(JSSJ, 'yyyy-MM-dd') as jssj
from TB_ST_DXZP where XXSC_PDBZ = '0'
from TB_ST_DXZP where XXSC_PDBZ = '0'
<if
test=
"czzt!=null and czzt!=''"
>
and CZZT=#{czzt}
</if>
<include
refid=
"wzyj-public-where"
/>
<if
test=
"zpfWxid!=null and zpfWxid!=''"
>
and ZPF_WXID=#{zpfWxid}
</if>
ORDER BY gxsj desc nulls last,JSSJ DESC,YJQD DESC,RKSJ DESC) t
<if
test=
"zpfQq!=null and zpfQq!=''"
>
and ZPF_QQ=#{zpfQq}
</if>
<if
test=
"zpfSjhm!=null and zpfSjhm!=''"
>
and ZPF_SJHM=#{zpfSjhm}
</if>
<if
test=
"bpfWxid!=null and bpfWxid!=''"
>
and BPF_WXID=#{bpfWxid}
</if>
<if
test=
"bpfQq!=null and bpfQq!=''"
>
and BPF_QQ=#{bpfQq}
</if>
<if
test=
"bpfSjhm!=null and bpfSjhm!=''"
>
and BPF_SJHM=#{bpfSjhm}
</if>
<if
test=
"yjqd!=null and yjqd!=''"
>
and YJQD=#{yjqd}
</if>
<if
test=
"zplx!=null and zplx!=''"
>
and ZPLX=#{zplx}
</if>
<if
test=
"fkje!=null and fkje!=''"
>
and FKJE=#{fkje}
</if>
<if
test=
"zhhdd!=null and zhhdd!=''"
>
and zhhdd like '%' || #{zhhdd} || '%'
</if>
ORDER BY JSSJ DESC,YJQD DESC,RKSJ DESC) t
WHERE ROWNUM
<![CDATA[<=]]>
#{end}
WHERE ROWNUM
<![CDATA[<=]]>
#{end}
) WHERE RN > #{begin}
) WHERE RN > #{begin}
</select>
</select>
...
@@ -41,17 +36,7 @@
...
@@ -41,17 +36,7 @@
<select
id=
"getWzyjListCount"
parameterType=
"com.founder.model.TbStDxzp"
resultType=
"java.lang.Integer"
>
<select
id=
"getWzyjListCount"
parameterType=
"com.founder.model.TbStDxzp"
resultType=
"java.lang.Integer"
>
select count(*)
select count(*)
from TB_ST_DXZP where XXSC_PDBZ = '0'
from TB_ST_DXZP where XXSC_PDBZ = '0'
<if
test=
"czzt!=null and czzt!=''"
>
and CZZT=#{czzt}
</if>
<include
refid=
"wzyj-public-where"
/>
<if
test=
"zpfWxid!=null and zpfWxid!=''"
>
and ZPF_WXID=#{zpfWxid}
</if>
<if
test=
"zpfQq!=null and zpfQq!=''"
>
and ZPF_QQ=#{zpfQq}
</if>
<if
test=
"zpfSjhm!=null and zpfSjhm!=''"
>
and ZPF_SJHM=#{zpfSjhm}
</if>
<if
test=
"bpfWxid!=null and bpfWxid!=''"
>
and BPF_WXID=#{bpfWxid}
</if>
<if
test=
"bpfQq!=null and bpfQq!=''"
>
and BPF_QQ=#{bpfQq}
</if>
<if
test=
"bpfSjhm!=null and bpfSjhm!=''"
>
and BPF_SJHM=#{bpfSjhm}
</if>
<if
test=
"yjqd!=null and yjqd!=''"
>
and YJQD=#{yjqd}
</if>
<if
test=
"zplx!=null and zplx!=''"
>
and ZPLX=#{zplx}
</if>
<if
test=
"fkje!=null and fkje!=''"
>
and FKJE=#{fkje}
</if>
<if
test=
"zhhdd!=null and zhhdd!=''"
>
and zhhdd like '%' || #{zhhdd} || '%'
</if>
</select>
</select>
<select
id=
"getWzyjXxById"
parameterType=
"java.lang.String"
resultType=
"com.founder.model.TbStDxzp"
>
<select
id=
"getWzyjXxById"
parameterType=
"java.lang.String"
resultType=
"com.founder.model.TbStDxzp"
>
...
@@ -72,6 +57,11 @@
...
@@ -72,6 +57,11 @@
FKJE fkje,
FKJE fkje,
YYJCS yyjcs,
YYJCS yyjcs,
ZHHDD zhhdd,
ZHHDD zhhdd,
SPR_SFCR sprSfcr,
SPR_SFFK sprSffk,
SPR_SFBA sprSfba,
SFGZRHJCPJ sfgzrhjcpj,
SFXYZCYJ sfxyzcyj,
XXCZR_XM xxczrXm,
XXCZR_XM xxczrXm,
XXCZR_JH xxczrJh,
XXCZR_JH xxczrJh,
XXCZR_DW xxczrDw
XXCZR_DW xxczrDw
...
@@ -80,32 +70,77 @@
...
@@ -80,32 +70,77 @@
</select>
</select>
<update
id=
"savewzyj"
parameterType=
"com.founder.model.TbStDxzp"
>
<update
id=
"savewzyj"
parameterType=
"com.founder.model.TbStDxzp"
>
UPDATE TB_ST_DXZP SET
UPDATE TB_ST_DXZP SET
<if
test=
"jqzt_flag != null and jqzt_flag=='1'.toString()"
>
<if
test=
"jqzt_flag != null and jqzt_flag!='' and jqzt_flag=='是'.toString()"
>
JQYX_FLAG = #{jqzt_flag},
JQYX_FLAG = #{jqzt_flag, jdbcType=VARCHAR},
<if
test=
"hcjg != null "
>
<if
test=
"hcjg != null and hcjg!=''"
>
HCJG = #{hcjg},
HCJG = #{hcjg, jdbcType=VARCHAR},
</if>
<if
test=
"bp_flag != null and hcjg!=''"
>
BP_FLAG = #{bp_flag, jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
bp_flag != null
"
>
<if
test=
"
hcqk != null and hcjg!=''
"
>
BP_FLAG = #{bp_flag
},
HCQK = #{hcqk, jdbcType=VARCHAR
},
</if>
</if>
<if
test=
"hcqk != null "
>
<if
test=
"sprSfcr != null and sprSfcr!=''"
>
HCQK = #{hcqk},
SPR_SFCR = #{sprSfcr, jdbcType=VARCHAR},
</if>
<if
test=
"sprSffk != null and sprSffk!=''"
>
SPR_SFFK = #{sprSffk, jdbcType=VARCHAR},
</if>
<if
test=
"sprSfba != null and sprSfba!=''"
>
SPR_SFBA = #{sprSfba, jdbcType=VARCHAR},
</if>
<if
test=
"sfgzrhjcpj != null and sfgzrhjcpj!=''"
>
SFGZRHJCPJ = #{sfgzrhjcpj, jdbcType=VARCHAR},
</if>
<if
test=
"sfxyzcyj != null and sfxyzcyj!=''"
>
SFXYZCYJ = #{sfxyzcyj, jdbcType=VARCHAR},
</if>
</if>
</if>
</if>
<if
test=
"jqzt_flag != null and jqzt_flag
=='0
'.toString()"
>
<if
test=
"jqzt_flag != null and jqzt_flag
!=''and jqzt_flag!='是
'.toString()"
>
JQYX_FLAG = #{jqzt_flag},
JQYX_FLAG = #{jqzt_flag
, jdbcType=VARCHAR
},
HCJG = null,
HCJG = null,
BP_FLAG = null,
BP_FLAG = null,
HCQK = null,
HCQK = null,
SPR_SFCR = null,
SPR_SFFK = null,
SPR_SFBA = null,
SFGZRHJCPJ = null,
SFXYZCYJ = null,
</if>
/*更新操作人相关信息 wushanyu*/
<if
test=
"xxczrXm!=null and xxczrXm!=''"
>
XXCZR_XM = #{xxczrXm, jdbcType=VARCHAR},
</if>
<if
test=
"xxczrJh!=null and xxczrJh!=''"
>
XXCZR_JH = #{xxczrJh, jdbcType=VARCHAR},
</if>
<if
test=
"xxczrDw!=null and xxczrDw!=''"
>
XXCZR_DW = #{xxczrDw, jdbcType=VARCHAR},
</if>
</if>
gxsj=sysdate
gxsj=sysdate
where xxsc_pdbz='0' and ID = #{id}
where xxsc_pdbz='0' and ID = #{id
, jdbcType=VARCHAR
}
</update>
</update>
<update
id=
"updateCzzt"
parameterType=
"java.lang.String"
>
<update
id=
"updateCzzt"
parameterType=
"java.lang.String"
>
UPDATE TB_ST_DXZP SET
UPDATE TB_ST_DXZP SET
CZZT = '1',
CZZT = '1',
gxsj=sysdate
gxsj=sysdate
where xxsc_pdbz='0' and ID = #{id}
where xxsc_pdbz='0' and ID = #{id
, jdbcType=VARCHAR
}
</update>
</update>
<!-- 查询公共查询条件 -->
<sql
id=
"wzyj-public-where"
>
<if
test=
"czzt!=null and czzt!=''"
>
and CZZT=#{czzt}
</if>
<if
test=
"zpfWxid!=null and zpfWxid!=''"
>
and ZPF_WXID=#{zpfWxid}
</if>
<if
test=
"zpfQq!=null and zpfQq!=''"
>
and ZPF_QQ=#{zpfQq}
</if>
<if
test=
"zpfSjhm!=null and zpfSjhm!=''"
>
and ZPF_SJHM like '%' || #{zpfSjhm} || '%'
</if>
<if
test=
"bpfWxid!=null and bpfWxid!=''"
>
and BPF_WXID=#{bpfWxid}
</if>
<if
test=
"bpfQq!=null and bpfQq!=''"
>
and BPF_QQ=#{bpfQq}
</if>
<if
test=
"bpfSjhm!=null and bpfSjhm!=''"
>
and BPF_SJHM like '%' || #{bpfSjhm} || '%'
</if>
<if
test=
"yjqd!=null and yjqd!=''"
>
and YJQD=#{yjqd}
</if>
<if
test=
"zplx!=null and zplx!=''"
>
and ZPLX like '%' || #{zplx} || '%'
</if>
<if
test=
"fkje!=null and fkje!=''"
>
and FKJE=#{fkje}
</if>
<if
test=
"zhhdd!=null and zhhdd!=''"
>
and zhhdd like '%' || #{zhhdd} || '%'
</if>
</sql>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/static/js/wzyj.js
View file @
19738905
...
@@ -35,7 +35,7 @@ function yjcz(id) {
...
@@ -35,7 +35,7 @@ function yjcz(id) {
scrollbar
:
false
,
scrollbar
:
false
,
shadeClose
:
true
,
//点击遮罩关闭层
shadeClose
:
true
,
//点击遮罩关闭层
skin
:
''
,
skin
:
''
,
area
:
[
'700px'
,
'
70
0px'
],
area
:
[
'700px'
,
'
55
0px'
],
content
:
url
,
content
:
url
,
success
:
function
(
layero
,
index
){
success
:
function
(
layero
,
index
){
var
t
=
layer
.
getChildFrame
(
'body'
,
index
).
find
(
'.toindex'
);
var
t
=
layer
.
getChildFrame
(
'body'
,
index
).
find
(
'.toindex'
);
...
@@ -45,7 +45,6 @@ function yjcz(id) {
...
@@ -45,7 +45,6 @@ function yjcz(id) {
$
(
'#wzyjtable'
).
datagrid
(
"reload"
,
serializeObject
(
$
(
"form[name='wzyjForm']"
)));
$
(
'#wzyjtable'
).
datagrid
(
"reload"
,
serializeObject
(
$
(
"form[name='wzyjForm']"
)));
}
}
});
});
}
}
function
getCz
(
row
)
{
function
getCz
(
row
)
{
var
str
=
""
var
str
=
""
...
@@ -60,7 +59,7 @@ function doQuery() {
...
@@ -60,7 +59,7 @@ function doQuery() {
if
(
zpfSjhm
!=
null
&&
zpfSjhm
!=
''
)
{
if
(
zpfSjhm
!=
null
&&
zpfSjhm
!=
''
)
{
if
(
!
(
/^1
[
34578
]\d{9}
$/
.
test
(
zpfSjhm
)))
{
if
(
!
(
/^1
[
34578
]\d{9}
$/
.
test
(
zpfSjhm
)))
{
jAlert
(
"诈骗方手机号码有误,请重填"
);
jAlert
(
"诈骗方手机号码有误,请重填"
);
$
(
"#zpfSjhm"
).
textbox
(
'setValue'
,
""
)
$
(
"#zpfSjhm"
).
textbox
(
'setValue'
,
""
)
;
return
false
;
return
false
;
}
}
}
}
...
@@ -73,6 +72,7 @@ function doQuery() {
...
@@ -73,6 +72,7 @@ function doQuery() {
return
false
;
return
false
;
}
}
}
}
//加载表格
$
(
'#wzyjtable'
).
datagrid
({
$
(
'#wzyjtable'
).
datagrid
({
url
:
"/getWzyjList"
,
url
:
"/getWzyjList"
,
columns
:
[
table_title
],
columns
:
[
table_title
],
...
...
src/main/webapp/WEB-INF/jsp/wzyj/yjcz.jsp
View file @
19738905
This diff is collapsed.
Click to expand it.
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