Commit 19738905 by 吴善钰

网侦预警业务调整

parent 7b233cfe
......@@ -6,58 +6,60 @@ import java.util.Date;
* Created by wangyang on 2019/1/15.
*/
public class TbStDxzp extends BaseModel {
//信息主键编号
private String zjbh;
//诈骗方微信id
private String zpfWxid;
//诈骗方qq
private String zpfQq;
//诈骗方手机号码
private String zpfSjhm;
//被骗方微信
private String bpfWxid;
//被骗方qq
private String bpfQq;
//被骗方手机号码
private String bpfSjhm;
//预警强度
private String yjqd;
//入库时间
private Date rksj;
//信息操作人姓名
private String xxczrXm;
// 警号
private String xxczrJh;
//单位
private String xxczrDw;
// 处置状态:是否被处置 0:已处置 1:处置
private String czzt;
private String hcjg;
private String bp_flag;
private String hcqk;
//接收时间
private String jssj;
//警情是否有效
private String jqzt_flag;
//付款金额
private String fkje;
//诈骗类型
private String zplx;
//已预警次数
private String yyjcs;
//最后活动地
private String zhhdd;
private String zjbh;//信息主键编号
private String zpfWxid;//诈骗方微信id
private String zpfQq;//诈骗方qq
private String zpfSjhm;//诈骗方手机号码
private String bpfWxid;//被骗方微信
private String bpfQq;//被骗方qq
private String bpfSjhm;//被骗方手机号码
private String yjqd;//预警强度
private Date rksj;//入库时间
private String xxczrXm;//信息操作人姓名
private String xxczrJh;// 警号
private String xxczrDw;//单位
private String czzt;// 处置状态:是否被处置 0:已处置 1:处置
private String hcjg;//核查结果
private String bp_flag;//是否被骗
private String hcqk;//核查情况
private String jssj;//接收时间
private String jqzt_flag;//警情是否有效
private String fkje;//付款金额
private String zplx;//诈骗类型
private String yyjcs;//已预警次数
private String zhhdd;//最后活动地
private String sprSfcr;//受骗人是否被骗
private String sprSffk;//受骗人是否付款
private String sprSfba;//受骗人是否报案
private String sfgzrhjcpj;//是否告知如何揭穿骗局
private String sfxyzcyj;//是否需要再次预警
//分页查询用
//查询分页开始结束
......@@ -259,4 +261,44 @@ public class TbStDxzp extends BaseModel {
public void setJssj(String 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;
}
}
......@@ -2,6 +2,8 @@ package com.founder.wzyj.controller;
import com.founder.model.EasyUIPage;
import com.founder.model.TbStDxzp;
import com.founder.model.User;
import com.founder.util.ExportExcelUtil;
import com.founder.wzyj.service.IWzyjService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -11,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
......@@ -93,7 +97,14 @@ public class WzyjController {
*/
@RequestMapping("/savewzyj")
@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";
//预警处置
boolean result = wzyjService.savewzyj(tbStDxzp);
......@@ -107,4 +118,25 @@ public class WzyjController {
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);
}
}
#开发环境使用dev,正式环境使用prod
#开发环境使用dev,正式环境使用pro
spring.profiles.active=pro
# 页面默认前缀目录
spring.mvc.view.prefix=/WEB-INF/jsp/
......
......@@ -20,20 +20,15 @@
FKJE fkje,
YYJCS yyjcs,
ZHHDD zhhdd,
SPR_SFCR sprSfcr,
SPR_SFFK sprSffk,
SPR_SFBA sprSfba,
SFGZRHJCPJ sfgzrhjcpj,
SFXYZCYJ sfxyzcyj,
to_char(JSSJ, 'yyyy-MM-dd') as jssj
from TB_ST_DXZP where XXSC_PDBZ = '0'
<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=#{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
<include refid="wzyj-public-where"/>
ORDER BY gxsj desc nulls last,JSSJ DESC,YJQD DESC,RKSJ DESC) t
WHERE ROWNUM <![CDATA[<=]]> #{end}
) WHERE RN > #{begin}
</select>
......@@ -41,17 +36,7 @@
<select id="getWzyjListCount" parameterType="com.founder.model.TbStDxzp" resultType="java.lang.Integer">
select count(*)
from TB_ST_DXZP where XXSC_PDBZ = '0'
<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=#{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>
<include refid="wzyj-public-where"/>
</select>
<select id="getWzyjXxById" parameterType="java.lang.String" resultType="com.founder.model.TbStDxzp">
......@@ -72,6 +57,11 @@
FKJE fkje,
YYJCS yyjcs,
ZHHDD zhhdd,
SPR_SFCR sprSfcr,
SPR_SFFK sprSffk,
SPR_SFBA sprSfba,
SFGZRHJCPJ sfgzrhjcpj,
SFXYZCYJ sfxyzcyj,
XXCZR_XM xxczrXm,
XXCZR_JH xxczrJh,
XXCZR_DW xxczrDw
......@@ -80,32 +70,77 @@
</select>
<update id="savewzyj" parameterType="com.founder.model.TbStDxzp" >
UPDATE TB_ST_DXZP SET
<if test="jqzt_flag != null and jqzt_flag=='1'.toString()">
JQYX_FLAG = #{jqzt_flag},
<if test="hcjg != null ">
HCJG = #{hcjg},
<if test="jqzt_flag != null and jqzt_flag!='' and jqzt_flag=='是'.toString()">
JQYX_FLAG = #{jqzt_flag, jdbcType=VARCHAR},
<if test="hcjg != null and hcjg!=''">
HCJG = #{hcjg, jdbcType=VARCHAR},
</if>
<if test="bp_flag != null and hcjg!=''">
BP_FLAG = #{bp_flag, jdbcType=VARCHAR},
</if>
<if test="bp_flag != null ">
BP_FLAG = #{bp_flag},
<if test="hcqk != null and hcjg!=''">
HCQK = #{hcqk, jdbcType=VARCHAR},
</if>
<if test="hcqk != null ">
HCQK = #{hcqk},
<if test="sprSfcr != null and sprSfcr!=''">
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 test="jqzt_flag != null and jqzt_flag=='0'.toString()">
JQYX_FLAG = #{jqzt_flag},
<if test="jqzt_flag != null and jqzt_flag!=''and jqzt_flag!='是'.toString()">
JQYX_FLAG = #{jqzt_flag, jdbcType=VARCHAR},
HCJG = null,
BP_FLAG = 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>
gxsj=sysdate
where xxsc_pdbz='0' and ID = #{id}
where xxsc_pdbz='0' and ID = #{id, jdbcType=VARCHAR}
</update>
<update id="updateCzzt" parameterType="java.lang.String" >
UPDATE TB_ST_DXZP SET
CZZT = '1',
gxsj=sysdate
where xxsc_pdbz='0' and ID = #{id}
where xxsc_pdbz='0' and ID = #{id, jdbcType=VARCHAR}
</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>
\ No newline at end of file
......@@ -35,7 +35,7 @@ function yjcz(id) {
scrollbar: false,
shadeClose: true, //点击遮罩关闭层
skin: '',
area : ['700px' , '700px'],
area : ['700px' , '550px'],
content: url,
success: function(layero, index){
var t=layer.getChildFrame('body', index).find('.toindex');
......@@ -45,7 +45,6 @@ function yjcz(id) {
$('#wzyjtable').datagrid("reload",serializeObject($("form[name='wzyjForm']")));
}
});
}
function getCz(row) {
var str = ""
......@@ -60,7 +59,7 @@ function doQuery() {
if (zpfSjhm != null && zpfSjhm != '') {
if (!(/^1[34578]\d{9}$/.test(zpfSjhm))) {
jAlert("诈骗方手机号码有误,请重填");
$("#zpfSjhm").textbox('setValue', "")
$("#zpfSjhm").textbox('setValue', "");
return false;
}
}
......@@ -73,6 +72,7 @@ function doQuery() {
return false;
}
}
//加载表格
$('#wzyjtable').datagrid({
url: "/getWzyjList",
columns: [table_title],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment