Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-qyxzpt-report
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
刘良浪
xzxt-qyxzpt-report
Commits
89e947e2
Commit
89e947e2
authored
Jul 20, 2023
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预警行政划分
parent
4ae52f29
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
9 deletions
+75
-9
src/main/java/org/springblade/founder/ztrxyj/entity/ZtryYjYhcz.java
+1
-0
src/main/java/org/springblade/founder/ztrxyj/entity/Ztryyjxx.java
+19
-0
src/main/java/org/springblade/founder/ztrxyj/mapper/ztgjMapper.xml
+25
-9
src/main/java/org/springblade/founder/ztrxyj/service/ztgjServiceImpl.java
+30
-0
No files found.
src/main/java/org/springblade/founder/ztrxyj/entity/ZtryYjYhcz.java
View file @
89e947e2
...
@@ -49,4 +49,5 @@ public class ZtryYjYhcz {
...
@@ -49,4 +49,5 @@ public class ZtryYjYhcz {
* 操作类型:1删除
* 操作类型:1删除
*/
*/
private
String
czlx
;
private
String
czlx
;
}
}
src/main/java/org/springblade/founder/ztrxyj/entity/Ztryyjxx.java
View file @
89e947e2
...
@@ -66,6 +66,25 @@ public class Ztryyjxx {
...
@@ -66,6 +66,25 @@ public class Ztryyjxx {
private
String
deviceName
;
private
String
deviceName
;
private
String
captureUrl
;
private
String
captureUrl
;
public
String
getQhmc
()
{
return
qhmc
;
}
public
void
setQhmc
(
String
qhmc
)
{
this
.
qhmc
=
qhmc
;
}
private
String
qhmc
;
public
String
getQhdm
()
{
return
qhdm
;
}
public
void
setQhdm
(
String
qhdm
)
{
this
.
qhdm
=
qhdm
;
}
private
String
qhdm
;
public
String
getScbz
()
{
public
String
getScbz
()
{
return
scbz
;
return
scbz
;
}
}
...
...
src/main/java/org/springblade/founder/ztrxyj/mapper/ztgjMapper.xml
View file @
89e947e2
...
@@ -18,12 +18,14 @@
...
@@ -18,12 +18,14 @@
<select
id=
"getListYjgj"
resultType=
"org.springblade.founder.ztrxyj.entity.Ztryyjxx"
>
<select
id=
"getListYjgj"
resultType=
"org.springblade.founder.ztrxyj.entity.Ztryyjxx"
>
select xxzjbh, faceName, faceUrl, score, captureTime,
select xxzjbh, faceName, faceUrl, score, captureTime,
faceDbId, faceCertNo, alarmTime, faceDbName, panoramaUrl, deviceId, deviceName,
faceDbId, faceCertNo, alarmTime, faceDbName, panoramaUrl, yj.deviceId, yj.deviceName,
(select dict.name from sys_dictitem dict
where dict.code=(select left(yd.gbCode,6) from tb_maztry_yj_device yd where yd.deviceId=yj.deviceId ) and dict.groupid = 'CODE_XZQH' ) qhmc,
captureUrl from tb_maztry_yj yj right join (
captureUrl from tb_maztry_yj yj right join (
select idcard,zpsj from ( select
select idcard,zpsj from ( select
faceCertNo idcard, max(captureTime) zpsj
faceCertNo idcard, max(captureTime) zpsj
from tb_maztry_yj
from tb_maztry_yj
yj left join tb_maztry_yj_device sb on yj.deviceId=sb.deviceId
<where>
<where>
and scbz='0'
and scbz='0'
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
...
@@ -32,6 +34,9 @@
...
@@ -32,6 +34,9 @@
<if
test=
"faceName != null and faceName != ''"
>
<if
test=
"faceName != null and faceName != ''"
>
and faceName = #{faceName}
and faceName = #{faceName}
</if>
</if>
<if
test=
"qhdm != null and qhdm != ''"
>
and left(sb.gbCode,6) like concat(#{qhdm},'%')
</if>
<if
test=
"score != null and score != ''"
>
<if
test=
"score != null and score != ''"
>
and score = #{score}
and score = #{score}
...
@@ -79,7 +84,7 @@
...
@@ -79,7 +84,7 @@
<select
id=
"getListYjgjCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getListYjgjCount"
resultType=
"java.lang.Integer"
>
select count(1) from ( select idcard,zpsj from ( select
select count(1) from ( select idcard,zpsj from ( select
faceCertNo idcard, max(captureTime) zpsj
faceCertNo idcard, max(captureTime) zpsj
from tb_maztry_yj
from tb_maztry_yj
yj left join tb_maztry_yj_device sb on yj.deviceId=sb.deviceId
<where>
<where>
and scbz='0'
and scbz='0'
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
...
@@ -88,7 +93,9 @@
...
@@ -88,7 +93,9 @@
<if
test=
"faceName != null and faceName != ''"
>
<if
test=
"faceName != null and faceName != ''"
>
and faceName = #{faceName}
and faceName = #{faceName}
</if>
</if>
<if
test=
"qhdm != null and qhdm != ''"
>
and left(sb.gbCode,6) like concat(#{qhdm},'%')
</if>
<if
test=
"score != null and score != ''"
>
<if
test=
"score != null and score != ''"
>
and score = #{score}
and score = #{score}
</if>
</if>
...
@@ -129,15 +136,20 @@
...
@@ -129,15 +136,20 @@
</select>
</select>
<select
id=
"getListYjXqgj"
resultType=
"org.springblade.founder.ztrxyj.entity.Ztryyjxx"
>
<select
id=
"getListYjXqgj"
resultType=
"org.springblade.founder.ztrxyj.entity.Ztryyjxx"
>
select xxzjbh, faceName, faceUrl, score, captureTime,
select xxzjbh, faceName, faceUrl, score, captureTime,
faceDbId, faceCertNo, alarmTime, faceDbName, panoramaUrl,
deviceId,
deviceName, captureUrl,
faceDbId, faceCertNo, alarmTime, faceDbName, panoramaUrl,
yj.deviceId, yj.
deviceName, captureUrl,
(select cz.xxdjry_xm from tb_maztry_yj_yhcz cz where cz.glxxzjbh=yj.xxzjbh limit 1 ) scrxm,
(select cz.xxdjry_xm from tb_maztry_yj_yhcz cz where cz.glxxzjbh=yj.xxzjbh limit 1 ) scrxm,
(select cz.xxdjdw_gajgmc from tb_maztry_yj_yhcz cz where cz.glxxzjbh=yj.xxzjbh limit 1) scrdwmc
(select cz.xxdjdw_gajgmc from tb_maztry_yj_yhcz cz where cz.glxxzjbh=yj.xxzjbh limit 1) scrdwmc,
from tb_maztry_yj yj
(select dict.name from sys_dictitem dict where dict.code=left(sb.gbCode,6) and dict.groupid = 'CODE_XZQH' ) qhmc
from tb_maztry_yj yj left join tb_maztry_yj_device sb
on yj.deviceId=sb.deviceId
<where>
<where>
<if
test=
"scbz != null and scbz != ''"
>
<if
test=
"scbz != null and scbz != ''"
>
and scbz=#{scbz}
and scbz=#{scbz}
</if>
</if>
<if
test=
"qhdm != null and qhdm != ''"
>
and left(sb.gbCode,6) like concat(#{qhdm},'%')
</if>
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
and xxzjbh = #{xxzjbh}
and xxzjbh = #{xxzjbh}
</if>
</if>
...
@@ -182,12 +194,16 @@
...
@@ -182,12 +194,16 @@
order by captureTime desc limit #{ page }, #{ limit }
order by captureTime desc limit #{ page }, #{ limit }
</select>
</select>
<select
id=
"getListYjXqgjCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getListYjXqgjCount"
resultType=
"java.lang.Integer"
>
select count(1) from tb_maztry_yj yj
select count(1) from tb_maztry_yj yj left join tb_maztry_yj_device sb
on yj.deviceId=sb.deviceId
<where>
<where>
<if
test=
"scbz != null and scbz != ''"
>
<if
test=
"scbz != null and scbz != ''"
>
and scbz=#{scbz}
and scbz=#{scbz}
</if>
</if>
<if
test=
"qhdm != null and qhdm != ''"
>
and left(sb.gbCode,6) like concat(#{qhdm},'%')
</if>
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
<if
test=
"xxzjbh != null and xxzjbh != ''"
>
and xxzjbh = #{xxzjbh}
and xxzjbh = #{xxzjbh}
</if>
</if>
...
...
src/main/java/org/springblade/founder/ztrxyj/service/ztgjServiceImpl.java
View file @
89e947e2
...
@@ -40,6 +40,15 @@ public class ztgjServiceImpl implements ztgjService {
...
@@ -40,6 +40,15 @@ public class ztgjServiceImpl implements ztgjService {
int
end
=
easyUIPage
.
getEnd
();
int
end
=
easyUIPage
.
getEnd
();
ztryyjxx
.
setPage
(
begin
);
ztryyjxx
.
setPage
(
begin
);
ztryyjxx
.
setLimit
(
end
);
ztryyjxx
.
setLimit
(
end
);
if
(
StringUtils
.
isNotEmpty
(
ztryyjxx
.
getQhdm
()))
{
String
zhfzxyrHjdzXzqhdm
=
ztryyjxx
.
getQhdm
();
if
(
zhfzxyrHjdzXzqhdm
.
endsWith
(
"0000"
))
{
zhfzxyrHjdzXzqhdm
=
zhfzxyrHjdzXzqhdm
.
substring
(
0
,
2
);
}
else
if
(
zhfzxyrHjdzXzqhdm
.
endsWith
(
"00"
))
{
zhfzxyrHjdzXzqhdm
=
zhfzxyrHjdzXzqhdm
.
substring
(
0
,
4
);
}
ztryyjxx
.
setQhdm
(
zhfzxyrHjdzXzqhdm
);
}
rtMap
.
put
(
"rows"
,
ztgj
.
getListYjgj
(
ztryyjxx
));
rtMap
.
put
(
"rows"
,
ztgj
.
getListYjgj
(
ztryyjxx
));
rtMap
.
put
(
"total"
,
ztgj
.
getListYjgjCount
(
ztryyjxx
));
rtMap
.
put
(
"total"
,
ztgj
.
getListYjgjCount
(
ztryyjxx
));
...
@@ -103,6 +112,18 @@ public class ztgjServiceImpl implements ztgjService {
...
@@ -103,6 +112,18 @@ public class ztgjServiceImpl implements ztgjService {
JSONObject
result
=
JSONObject
.
parseObject
(
resultString
);
JSONObject
result
=
JSONObject
.
parseObject
(
resultString
);
if
(
result
.
getInteger
(
"code"
)==
200
){
if
(
result
.
getInteger
(
"code"
)==
200
){
ztgj
.
updatesftsZtzp
(
certNo
);
ztgj
.
updatesftsZtzp
(
certNo
);
XzxtUser
user
=
SecureUtil
.
getUserXzxt
();
ZtryYjYhcz
yhcz
=
new
ZtryYjYhcz
();
yhcz
.
setXxzjbh
(
getOrderIdByUuid
());
yhcz
.
setGlxxzjbh
(
certNo
);
yhcz
.
setXxdjryXm
(
user
.
getRealname
());
yhcz
.
setXxdjdwGajgjgdm
(
user
.
getUnitcode
());
yhcz
.
setXxdjdwGajgmc
(
user
.
getUnitname
());
yhcz
.
setXxdjryGmsfhm
(
user
.
getIdentitycard
());
yhcz
.
setXxdjryLxdh
(
user
.
getPhone
());
yhcz
.
setCzlx
(
"2"
);
//1删除,2撤控
ztgj
.
insertYjYhcz
(
yhcz
);
}
else
{
}
else
{
//推送未成功2,删除3,推送成功1
//推送未成功2,删除3,推送成功1
ztgj
.
updatesftsZtzp
(
certNo
);
ztgj
.
updatesftsZtzp
(
certNo
);
...
@@ -154,6 +175,15 @@ public class ztgjServiceImpl implements ztgjService {
...
@@ -154,6 +175,15 @@ public class ztgjServiceImpl implements ztgjService {
int
end
=
easyUIPage
.
getEnd
();
int
end
=
easyUIPage
.
getEnd
();
ztryyjxx
.
setPage
(
begin
);
ztryyjxx
.
setPage
(
begin
);
ztryyjxx
.
setLimit
(
end
);
ztryyjxx
.
setLimit
(
end
);
if
(
StringUtils
.
isNotEmpty
(
ztryyjxx
.
getQhdm
()))
{
String
zhfzxyrHjdzXzqhdm
=
ztryyjxx
.
getQhdm
();
if
(
zhfzxyrHjdzXzqhdm
.
endsWith
(
"0000"
))
{
zhfzxyrHjdzXzqhdm
=
zhfzxyrHjdzXzqhdm
.
substring
(
0
,
2
);
}
else
if
(
zhfzxyrHjdzXzqhdm
.
endsWith
(
"00"
))
{
zhfzxyrHjdzXzqhdm
=
zhfzxyrHjdzXzqhdm
.
substring
(
0
,
4
);
}
ztryyjxx
.
setQhdm
(
zhfzxyrHjdzXzqhdm
);
}
rtMap
.
put
(
"rows"
,
ztgj
.
getListYjXqgj
(
ztryyjxx
));
rtMap
.
put
(
"rows"
,
ztgj
.
getListYjXqgj
(
ztryyjxx
));
rtMap
.
put
(
"total"
,
ztgj
.
getListYjXqgjCount
(
ztryyjxx
));
rtMap
.
put
(
"total"
,
ztgj
.
getListYjXqgjCount
(
ztryyjxx
));
...
...
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