Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
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
常超
map-parent
Commits
45b890b8
Commit
45b890b8
authored
Aug 17, 2022
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轨迹统计计算、案件现勘警情经纬度判断使用(标准)
parent
c552706b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
7 deletions
+41
-7
service/publicapi/src/main/java/com/founder/publicapi/controller/SkDataOperation/SkTrailController.java
+17
-3
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/TbStAsjMapper.xml
+24
-4
No files found.
service/publicapi/src/main/java/com/founder/publicapi/controller/SkDataOperation/SkTrailController.java
View file @
45b890b8
...
@@ -294,15 +294,29 @@ public class SkTrailController extends ApiController implements ExcelControllerI
...
@@ -294,15 +294,29 @@ public class SkTrailController extends ApiController implements ExcelControllerI
listMapMd
=
(
ArrayList
<
Map
.
Entry
<
String
,
Object
>>)
listMapMd
.
stream
().
parallel
()
listMapMd
=
(
ArrayList
<
Map
.
Entry
<
String
,
Object
>>)
listMapMd
.
stream
().
parallel
()
.
limit
(
1
).
collect
(
Collectors
.
toList
());
.
limit
(
1
).
collect
(
Collectors
.
toList
());
String
lastGj
=
""
;
// 日期为空 展示暂无数据
String
lastGj
=
""
;
// 日期为空 展示暂无数据
if
(
StringUtil
.
isEmpty
(
records
.
get
(
0
).
getDate
())||
"jdgj"
.
equals
(
sktrailParam
.
getLikeField
())||
StringUtil
.
isEmpty
(
records
.
get
(
1
).
getAddress
())){
String
lastCfd
=
""
;
// 数据为空 展示暂无数据
String
lastMdd
=
""
;
// 数据为空 展示暂无数据
if
((
StringUtil
.
isEmpty
(
records
.
get
(
0
).
getDate
())||
StringUtil
.
isEmpty
(
records
.
get
(
1
).
getAddress
()))&&
"jdgj"
.
equals
(
sktrailParam
.
getLikeField
())){
lastGj
=
"暂无数据"
;
lastGj
=
"暂无数据"
;
}
else
{
}
else
{
lastGj
=
records
.
get
(
0
).
getDate
()+
","
+
records
.
get
(
0
).
getAddress
()+
"—>"
+
records
.
get
(
1
).
getAddress
();
lastGj
=
records
.
get
(
0
).
getDate
()+
","
+
records
.
get
(
0
).
getAddress
()+
"—>"
+
records
.
get
(
1
).
getAddress
();
}
}
if
(
listMapMd
.
size
()==
0
&&
"jdgj"
.
equals
(
sktrailParam
.
getLikeField
())){
lastMdd
=
"暂无数据"
;
}
else
{
lastMdd
=
listMapMd
.
get
(
0
).
getKey
()+
"("
+
listMapMd
.
get
(
0
).
getValue
()+
"次"
+
")"
;
}
if
(
listMapCf
.
size
()==
0
&&
"jdgj"
.
equals
(
sktrailParam
.
getLikeField
())){
lastCfd
=
"暂无数据"
;
}
else
{
lastCfd
=
listMapCf
.
get
(
0
).
getKey
()+
"("
+
listMapCf
.
get
(
0
).
getValue
()+
"次"
+
")"
;
}
mapResult
.
put
(
"zxgj"
,
lastGj
);
// 最后两条数据即为 最新轨迹
mapResult
.
put
(
"zxgj"
,
lastGj
);
// 最后两条数据即为 最新轨迹
mapResult
.
put
(
"sfdd"
,
l
istMapCf
.
get
(
0
).
getKey
()+
"("
+
listMapCf
.
get
(
0
).
getValue
()+
"次"
+
")"
);
mapResult
.
put
(
"sfdd"
,
l
astCfd
);
mapResult
.
put
(
"mddd"
,
l
istMapMd
.
get
(
0
).
getKey
()+
"("
+
listMapMd
.
get
(
0
).
getValue
()+
"次"
+
")"
);
mapResult
.
put
(
"mddd"
,
l
astMdd
);
}
else
if
(
"wbgj"
.
equals
(
sktrailParam
.
getLikeField
())||
"ldgj"
.
equals
(
sktrailParam
.
getLikeField
())){
}
else
if
(
"wbgj"
.
equals
(
sktrailParam
.
getLikeField
())||
"ldgj"
.
equals
(
sktrailParam
.
getLikeField
())){
records
.
stream
().
forEach
(
h
->{
records
.
stream
().
forEach
(
h
->{
if
(
StringUtils
.
isNotEmpty
(
h
.
getAddress
()))
{
if
(
StringUtils
.
isNotEmpty
(
h
.
getAddress
()))
{
...
...
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/TbStAsjMapper.xml
View file @
45b890b8
...
@@ -22,8 +22,18 @@
...
@@ -22,8 +22,18 @@
,T.ASJFSDD_XZQHDM as asjfsddXzqhdm
,T.ASJFSDD_XZQHDM as asjfsddXzqhdm
,(select name from sys_dictitem where groupid='CODE_XZQH' and code=T.ASJFSDD_XZQHDM) as asjfsddXzqhdmMc
,(select name from sys_dictitem where groupid='CODE_XZQH' and code=T.ASJFSDD_XZQHDM) as asjfsddXzqhdmMc
,T.ASJFSDD_DZMC as asjfsddDzmc
,T.ASJFSDD_DZMC as asjfsddDzmc
,T.ASJFSDD_DQJD as x
,case when (T.ASJFSDD_DQJD is not null) then T.ASJFSDD_DQJD
,T.ASJFSDD_DQWD as y
when (T.ASJFSDD_DQWD is null and (select xk_jd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)is not null)
then (select xk_jd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)
when((select xk_jd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)is null and (select jq_jd from
tb_asj_jwdinfo info where info.asjbh = T.asjbh) is not null)then (select jq_jd from tb_asj_jwdinfo info where
info.asjbh = T.asjbh) end as x
,case when (T.ASJFSDD_DQJD is not null) then T.ASJFSDD_DQWD
when (T.ASJFSDD_DQWD is null and (select xk_wd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)is not null)
then (select xk_wd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)
when((select xk_wd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)is null and (select jq_wd from
tb_asj_jwdinfo info where info.asjbh = T.asjbh) is not null)then (select jq_wd from tb_asj_jwdinfo info where
info.asjbh = T.asjbh) end as y
,T.JYAQ as jyaq
,T.JYAQ as jyaq
,T.zbr_xm as zbrXm
,T.zbr_xm as zbrXm
,T.xbr_xm as xbrXm
,T.xbr_xm as xbrXm
...
@@ -186,8 +196,18 @@
...
@@ -186,8 +196,18 @@
DATE_FORMAT(T.asjfssj_Asjfskssj,'%Y-%m-%d %H:%i:%S') as asjfssjAsjfskssj,
DATE_FORMAT(T.asjfssj_Asjfskssj,'%Y-%m-%d %H:%i:%S') as asjfssjAsjfskssj,
DATE_FORMAT(T.larq,'%Y-%m-%d %H:%i:%S') as larq,
DATE_FORMAT(T.larq,'%Y-%m-%d %H:%i:%S') as larq,
T.ZUZDW_ZBR_XM AS zuzdwZbrXm,
T.ZUZDW_ZBR_XM AS zuzdwZbrXm,
T.ASJFSDD_DQJD AS x,
case when (T.ASJFSDD_DQJD is not null) then T.ASJFSDD_DQJD
T.ASJFSDD_DQWD AS y,
when (T.ASJFSDD_DQWD is null and (select xk_jd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)is not null)
then (select xk_jd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)
when((select xk_jd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)is null and (select jq_jd from
tb_asj_jwdinfo info where info.asjbh = T.asjbh) is not null)then (select jq_jd from tb_asj_jwdinfo info where
info.asjbh = T.asjbh) end as x,
case when (T.ASJFSDD_DQJD is not null) then T.ASJFSDD_DQWD
when (T.ASJFSDD_DQWD is null and (select xk_wd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)is not null)
then (select xk_wd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)
when((select xk_wd from tb_asj_jwdinfo info where info.asjbh = T.asjbh)is null and (select jq_wd from
tb_asj_jwdinfo info where info.asjbh = T.asjbh) is not null)then (select jq_wd from tb_asj_jwdinfo info where
info.asjbh = T.asjbh) end as y,
(select name from sys_dictitem where groupid='CODE_UNIT' AND code = T.zuzdw_Gajgjgdm) AS zuzdwGajgjgdmMc,
(select name from sys_dictitem where groupid='CODE_UNIT' AND code = T.zuzdw_Gajgjgdm) AS zuzdwGajgjgdmMc,
(select name from sys_dictitem where groupid='CODE_ZCJDDM' AND code = T.zcjddm) AS zcjddmMc,
(select name from sys_dictitem where groupid='CODE_ZCJDDM' AND code = T.zcjddm) AS zcjddmMc,
(select name from sys_dictitem where groupid='CODE_UNIT' AND code = T.ladw_Gajgjgdm) AS ladwGajgjgdmMc,
(select name from sys_dictitem where groupid='CODE_UNIT' AND code = T.ladw_Gajgjgdm) AS ladwGajgjgdmMc,
...
...
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