Commit db1d763f by yangyang

人员可视化、群体研判、AES加密解密、剩余任务结果生成处理(湖南)

parent b8e0f6d3
...@@ -10,7 +10,7 @@ import java.util.List; ...@@ -10,7 +10,7 @@ import java.util.List;
* 查询案件参数 * 查询案件参数
*/ */
@Data @Data
public class AjQueryParam { public class AjQueryParam {
//起始时间 //起始时间
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
Date startDate; Date startDate;
...@@ -37,13 +37,11 @@ public class AjQueryParam { ...@@ -37,13 +37,11 @@ public class AjQueryParam {
String column; String column;
//排序方式 升序asc,降序desc //排序方式 升序asc,降序desc
String type; String type;
Integer page;
Integer limit;
//分析维度 //分析维度
private String fxwd; private String fxwd;
//共同关系系数 //共同关系系数
private String commonRelationshipNum; private String commonRelationshipNum;
//当前页
private Integer page;
//每页数
private Integer limit;
} }
package com.founder.commonutils.model.newPublicEntity.ztypEntity;
import lombok.Data;
import java.util.List;
/**
* @author yangyang
* @description 可视化分析
*/
@Data
public class KsjResultPojo {
/**
* 节点信息组(去重的)
*/
private List<Nodes> nodes;
/**
* 关联关系组
*/
private List<Links> links;
@Data
public static class Nodes {
/**
节点下面显示的名称,如果需要多个显示,请传
"李xx\n23岁\n前端开发工程师" 单个的话就 "李xx"
*/
private String id;
/**
* 节点信息的唯一值(例如证件号码),节点是否去重就是依据id
*/
private String label;
/**
* (idcard: 人,aj: 案件,cph:车,sjk:手机,yhk:银行卡)判断节点图片
*/
private String imgType;
/**
* 将节点所有的信息全部放到这个字段中,包括id和label,注意的是,这个对象必须有一个字段imgType(idcard: 人,aj: 案件,cph:车,sjk:手机,yhk:银行卡)判断节点图片
*/
private Object properties;
}
@Data
public static class Links {
/**
* 源节点id值
*/
private String source;
/**
* 目标节点id值
*/
private String target;
/**
* 节点连线显示文字
*/
private String label;
/**
* (idcard: 人,aj: 案件,cph:车,sjk:手机,yhk:银行卡)判断节点图片
*/
private String imgType;
/**
* 将连线所有的信息全部放到这个字段中,注意事项同上,没有必要字段imgType
*/
private Object properties;
}
}
...@@ -22,26 +22,35 @@ public class SkAesController { ...@@ -22,26 +22,35 @@ public class SkAesController {
/** /**
* 新增字典 * 新增字典
*/ */
@GetMapping("query/{data}") @GetMapping("query/{data}/{flag}")
@ApiOperation(value = "AES加密") @ApiOperation(value = "AES加密")
@OperLog(message = "AES加密", operation = OperationType.QUERY) @OperLog(message = "AES加密", operation = OperationType.QUERY)
public MapRestResult save(@PathVariable("data") String data) { public MapRestResult save(@PathVariable("data") String data,@PathVariable("flag") String flag) {
String jiemi = null;
//使用AES-128-CBC加密模式 //使用AES-128-CBC加密模式
Date now = new Date(); Date now = new Date();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
String today = simpleDateFormat.format(now); String today = simpleDateFormat.format(now);
String KEY = "maplogin" + today; String KEY = "maplogin" + today;
String IV = "map_vues" + today; String IV = "map_vues" + today;
try { if("1".equals(flag)){
data = AesEncryptUtil.encrypt(data, KEY, IV); try {
System.out.println("数据:" + data); data = AesEncryptUtil.encrypt(data, KEY, IV);
System.out.println("加密:" + data); System.out.println("数据:" + data);
String jiemi = AesEncryptUtil.desEncrypt(data, KEY, IV).trim(); System.out.println("加密:" + data);
System.out.println("解密:" + jiemi); } catch (Exception e) {
} catch (Exception e) { e.printStackTrace();
e.printStackTrace(); return MapRestResult.build(201, "AES-128-CBC加密失败", 0, e);
return MapRestResult.build(201, "AES-128-CBC加密失败", 1, e); }
return MapRestResult.build(200, "AES-128-CBC加密模式", 1, "加密:" + data);
}else{
try {
jiemi = AesEncryptUtil.desEncrypt(data, KEY, IV).trim();
} catch (Exception e) {
e.printStackTrace();
return MapRestResult.build(201, "AES-128-CBC解密失败", 0, e);
}
} }
return MapRestResult.build(200, "AES-128-CBC加密模式", 1, "加密:" + data); return MapRestResult.build(200, "AES-128-CBC解密模式", 1, "解密:" + jiemi);
} }
} }
...@@ -151,7 +151,35 @@ public class SkRegionalsResultController extends ApiController implements ExcelC ...@@ -151,7 +151,35 @@ public class SkRegionalsResultController extends ApiController implements ExcelC
case "qypz_people": case "qypz_people":
// 获取任务结果 阿里云读取json线上读取接口 // 获取任务结果 阿里云读取json线上读取接口
listResult = skRegionalsResultService.MoreAreaInfoThread(params,taskType); listResult = skRegionalsResultService.MoreAreaInfoThread(params,taskType);
break;//区域碰撞手机 break;
case "qypz_ljxc":
// 路径寻车
listResult = skRegionalsResultService.MoreAreaInfoThread(params,taskType);
break;
case "qypz_skhz":
// 时空绘制
listResult = skRegionalsResultService.MoreAreaInfoThread(params,taskType);
break;
case "qypz_clafqt":
// 车辆案发潜逃
listResult = skRegionalsResultService.MoreAreaInfoThread(params,taskType);
break;
case "qypz_clsccx":
// 车辆首次出现
listResult = skRegionalsResultService.MoreAreaInfoThread(params,taskType);
break;
case "skhs_ryaqcd":
// 人员案前踩点
jsonArray = JsonUtils.readJsonFromClassPath(path+"/getJzhs.json", JSONArray.class);
break;//基站回溯 break;
case "qypz_rysccx":
// 人员首次出现
listResult = skRegionalsResultService.MoreAreaInfoThread(params,taskType);
break;
case "qypz_ryafqt":
// 人员案发潜逃
listResult = skRegionalsResultService.MoreAreaInfoThread(params,taskType);
break;
case "skph_people": case "skph_people":
// 获取任务结果 阿里云读取json线上读取接口 // 获取任务结果 阿里云读取json线上读取接口
listResult = skRegionalsResultService.OneAreaInfoTrampResultThread(params,taskType); listResult = skRegionalsResultService.OneAreaInfoTrampResultThread(params,taskType);
......
...@@ -102,7 +102,6 @@ public class ZtypController { ...@@ -102,7 +102,6 @@ public class ZtypController {
if (count != null && count > 0) { if (count != null && count > 0) {
records = ztypService.queryAjypfxData(requestParam); records = ztypService.queryAjypfxData(requestParam);
} }
return R.ok().total(count).rows(records); return R.ok().total(count).rows(records);
} }
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<select id="queryAjypfxData" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjypFxPojo"> <select id="queryAjypfxData" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjypFxPojo">
select th.thbh as thbh, select th.thbh as thbh,
th.thglajsl as ajCount, th.thglajsl as ajCount,
nvl(th.thgljlajsl,0) as jlajCount, ifnull(th.thgljlajsl,0) as jlajCount,
th.thglxyrsl as xyrCount, th.thglxyrsl as xyrCount,
th.thglzdgzyrsl as zdgzyrCount th.thglzdgzyrsl as zdgzyrCount
from tb_yw_shse_th th from tb_yw_shse_th th
......
...@@ -132,105 +132,106 @@ ...@@ -132,105 +132,106 @@
WHERE tbsh.XXSC_PDBZ = '0' WHERE tbsh.XXSC_PDBZ = '0'
and tbsh.ASJXGFWBZH_FWBZH = LOWER(#{hm,jdbcType=VARCHAR})) and tbsh.ASJXGFWBZH_FWBZH = LOWER(#{hm,jdbcType=VARCHAR}))
</select> </select>
<select id="queryAjypfxData" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjypFxPojo"> <select id="queryAjypfxData" resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.AjypFxPojo">
select th.thbh as thbh, select th.THBH as thbh,
th.thglajsl as ajCount, th.THGLAJSL as ajCount,
nvl(th.thgljlajsl,0) as jlajCount, ifnull(th.THGLJLAJSL,0) as jlajCount,
th.thglxyrsl as xyrCount, th.THGLXYRSL as xyrCount,
th.thglzdgzyrsl as zdgzyrCount th.THGLZDGZYRSL as zdgzyrCount
from tb_yw_shse_th th from tb_yw_shse_th th
<where>
1 = 1
<if test="ajlx == '00'">
and th.thglxyrsl <![CDATA[>=]]> 3
and th.thglajsl <![CDATA[>=]]> 3
</if>
<if test="ajlx == '01'">
and th.thglxyrsl <![CDATA[>=]]> 3
and th.thglajsl = 2
</if>
<if test="ajlx == '10'">
and th.thglxyrsl = 2
and th.thglajsl <![CDATA[>=]]> 3
</if>
<if test="ajlx == '11'">
and th.thglxyrsl = 2
and th.thglajsl = 2
</if>
<if test="(ryxm != null and ryxm != '') or (hjd != null and hjd != '')">
and th.thbh in (select thxyr.thbh from tb_yw_shse_thglxyr thxyr
<where> <where>
1 = 1 1 = 1
<if test="ryxm != null and ryxm != ''"> <if test="ajlx == '00'">
and thxyr.xm = #{ryxm} and th.THGLXYRSL <![CDATA[>=]]> 3
</if> and th.THGLAJSL <![CDATA[>=]]> 3
<if test="hjd != null and hjd != ''"> </if>
and thxyr.hjddm = #{hjd} <if test="ajlx == '01'">
</if> and th.THGLXYRSL <![CDATA[>=]]> 3
</where> and th.THGLAJSL = 2
) </if>
</if> <if test="ajlx == '10'">
<if test="(ladwdm != null and ladwdm != '') or (ajlbdm != null and ajlbdm != '') or (ajmc != null and ajmc != '') and th.THGLXYRSL = 2
and th.THGLAJSL <![CDATA[>=]]> 3
</if>
<if test="ajlx == '11'">
and th.THGLXYRSL = 2
and th.THGLAJSL = 2
</if>
<if test="(ryxm != null and ryxm != '') or (hjd != null and hjd != '')">
and th.thbh in (select thxyr.thbh from TB_YW_SHSE_THGLXYR thxyr
<where>
1 = 1
<if test="ryxm != null and ryxm != ''">
and thxyr.XM = #{ryxm}
</if>
<if test="hjd != null and hjd != ''">
and thxyr.HJDDM = #{hjd}
</if>
</where>
)
</if>
<if test="(ladwdm != null and ladwdm != '') or (ajlbdm != null and ajlbdm != '') or (ajmc != null and ajmc != '')
or startDate != null or endDate != null"> or startDate != null or endDate != null">
and th.thbh in ( and th.thbh in (
select thbh select thbh
from tb_yw_shse_thglasj thaj from tb_yw_shse_thglasj thaj
<where> <where>
1 = 1 1 = 1
<if test="ajlbdm != null and ajlbdm != ''"> <if test="ajlbdm != null and ajlbdm != ''">
and thaj.ajlbdm = #{ajlbdm} and thaj.AJLBDM = #{ajlbdm}
</if> </if>
<if test="ajmc != null and ajmc != ''"> <if test="ajmc != null and ajmc != ''">
thaj.ajmc like '%${ajmc}%' thaj.AJMC like '%${ajmc}%'
</if> </if>
<if test="startDate != null"> <if test="startDate != null">
and thaj.larq >= #{startDate, jdbcType=DATE} and thaj.LARQ >= #{startDate, jdbcType=DATE}
</if> </if>
<if test="endDate != null"> <if test="endDate != null">
and thaj.larq <![CDATA[<=]]> #{endDate, jdbcType=DATE} and thaj.LARQ <![CDATA[<=]]> #{endDate, jdbcType=DATE}
</if> </if>
<if test="ladwdm != null and ladwdm != ''"> <if test="ladwdm != null and ladwdm != ''">
and thaj.ladwdm in (select code from sys_dictitem_xz where code_lev1 and thaj.LADWDM in (SELECT code FROM SYS_DICTITEM_XZ WHERE CODE_LEV1
=#{ladwdm, jdbcType=VARCHAR} =#{ladwdm, jdbcType=VARCHAR}
or code_lev2 =#{ladwdm, jdbcType=VARCHAR} or code_lev3 =#{ladwdm, jdbcType=VARCHAR} or CODE_LEV2 =#{ladwdm, jdbcType=VARCHAR} or CODE_LEV3 =#{ladwdm, jdbcType=VARCHAR}
or code_lev4 =#{ladwdm, jdbcType=VARCHAR} or code_lev5 =#{ladwdm, jdbcType=VARCHAR} or CODE_LEV4 =#{ladwdm, jdbcType=VARCHAR} or CODE_LEV5 =#{ladwdm, jdbcType=VARCHAR}
) )
</if> </if>
</where>
)
</if>
</where> </where>
) limit #{page},#{limit}
</if> </select>
</where>
</select>
<select id="queryAjypfxCount" resultType="java.lang.Integer"> <select id="queryAjypfxCount" resultType="java.lang.Integer">
select count(th.THBH) select count(th.THBH)
from tb_yw_shse_th th from tb_yw_shse_th th
<where> <where>
1 = 1 1 = 1
<if test="ajlx == '00'"> <if test="ajlx == '00'">
and th.thglxyrsl <![CDATA[>=]]> 3 and th.THGLXYRSL <![CDATA[>=]]> 3
and th.thglajsl <![CDATA[>=]]> 3 and th.THGLAJSL <![CDATA[>=]]> 3
</if> </if>
<if test="ajlx == '01'"> <if test="ajlx == '01'">
and th.thglxyrsl <![CDATA[>=]]> 3 and th.THGLXYRSL <![CDATA[>=]]> 3
and th.thglajsl = 2 and th.THGLAJSL = 2
</if> </if>
<if test="ajlx == '10'"> <if test="ajlx == '10'">
and th.thglxyrsl = 2 and th.THGLXYRSL = 2
and th.thglajsl <![CDATA[>=]]> 3 and th.THGLAJSL <![CDATA[>=]]> 3
</if> </if>
<if test="ajlx == '11'"> <if test="ajlx == '11'">
and th.thglxyrsl = 2 and th.THGLXYRSL = 2
and th.thglajsl = 2 and th.THGLAJSL = 2
</if> </if>
<if test="(ryxm != null and ryxm != '') or (hjd != null and hjd != '')"> <if test="(ryxm != null and ryxm != '') or (hjd != null and hjd != '')">
and th.thbh in (select thxyr.thbh from tb_yw_shse_thglxyr thxyr and th.thbh in (select thxyr.thbh from TB_YW_SHSE_THGLXYR thxyr
<where> <where>
1 = 1 1 = 1
<if test="ryxm != null and ryxm != ''"> <if test="ryxm != null and ryxm != ''">
and thxyr.xm = #{ryxm} and thxyr.XM = #{ryxm}
</if> </if>
<if test="hjd != null and hjd != ''"> <if test="hjd != null and hjd != ''">
and thxyr.hjddm = #{hjd} and thxyr.HJDDM = #{hjd}
</if> </if>
</where> </where>
) )
...@@ -239,26 +240,26 @@ ...@@ -239,26 +240,26 @@
or startDate != null or endDate != null"> or startDate != null or endDate != null">
and th.thbh in ( and th.thbh in (
select thbh select thbh
from tb_yw_shse_thglasj thaj from TB_YW_SHSE_THGLASJ thaj
<where> <where>
1 = 1 1 = 1
<if test="ajlbdm != null and ajlbdm != ''"> <if test="ajlbdm != null and ajlbdm != ''">
and thaj.ajlbdm = #{ajlbdm} and thaj.AJLBDM = #{ajlbdm}
</if> </if>
<if test="ajmc != null and ajmc != ''"> <if test="ajmc != null and ajmc != ''">
thaj.ajmc like '%${ajmc}%' thaj.AJMC like '%${ajmc}%'
</if> </if>
<if test="startDate != null"> <if test="startDate != null">
and thaj.larq >= #{startDate, jdbcType=DATE} and thaj.LARQ >= #{startDate, jdbcType=DATE}
</if> </if>
<if test="endDate != null"> <if test="endDate != null">
and thaj.larq <![CDATA[<=]]> #{endDate, jdbcType=DATE} and thaj.LARQ <![CDATA[<=]]> #{endDate, jdbcType=DATE}
</if> </if>
<if test="ladwdm != null and ladwdm != ''"> <if test="ladwdm != null and ladwdm != ''">
and thaj.ladwdm in (SELECT code FROM sys_dictitem_xz WHERE code_lev1 and thaj.LADWDM in (SELECT code FROM SYS_DICTITEM_XZ WHERE CODE_LEV1
=#{ladwdm, jdbcType=VARCHAR} =#{ladwdm, jdbcType=VARCHAR}
or code_lev2 =#{ladwdm, jdbcType=VARCHAR} or code_lev3 =#{ladwdm, jdbcType=VARCHAR} or CODE_LEV2 =#{ladwdm, jdbcType=VARCHAR} or CODE_LEV3 =#{ladwdm, jdbcType=VARCHAR}
or code_lev4 =#{ladwdm, jdbcType=VARCHAR} or code_lev5 =#{ladwdm, jdbcType=VARCHAR} or CODE_LEV4 =#{ladwdm, jdbcType=VARCHAR} or CODE_LEV5 =#{ladwdm, jdbcType=VARCHAR}
) )
</if> </if>
</where> </where>
......
...@@ -230,6 +230,30 @@ public class SkRegionalsResultServiceImpl extends ServiceImpl<SkRegionalsResultM ...@@ -230,6 +230,30 @@ public class SkRegionalsResultServiceImpl extends ServiceImpl<SkRegionalsResultM
// 获取回溯结果 阿里云读取json线上读取接口 // 获取回溯结果 阿里云读取json线上读取接口
carOrPhoneInfolist = phoneall(receiving); carOrPhoneInfolist = phoneall(receiving);
break;//区域碰撞手机 break;//区域碰撞手机
case "qypz_ljxc":
// 获取回溯结果 阿里云读取json线上读取接口
carOrPhoneInfolist = carall(receiving);
break;//区域碰撞车辆
case "qypz_skhz":
// 获取回溯结果 阿里云读取json线上读取接口
carOrPhoneInfolist = phoneall(receiving);
break;//区域碰撞手机
case "qypz_clafqt":
// 获取回溯结果 阿里云读取json线上读取接口
carOrPhoneInfolist = carall(receiving);
break;//区域碰撞车辆
case "qypz_clsccx":
// 获取回溯结果 阿里云读取json线上读取接口
carOrPhoneInfolist = carall(receiving);
break;//区域碰撞车辆
case "qypz_rysccx":
// 获取回溯结果 阿里云读取json线上读取接口
carOrPhoneInfolist = phoneall(receiving);
break;//区域碰撞手机
case "qypz_ryafqt":
// 获取回溯结果 阿里云读取json线上读取接口
carOrPhoneInfolist = phoneall(receiving);
break;//区域碰撞手机
case "skph_car": case "skph_car":
// 获取徘徊结果 阿里云读取json线上读取接口 // 获取徘徊结果 阿里云读取json线上读取接口
carOrPhoneInfolist = carall(receiving); carOrPhoneInfolist = carall(receiving);
......
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