Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
bfe029df
Commit
bfe029df
authored
Aug 06, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加历史警情
parent
90252bd2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
78 additions
and
11 deletions
+78
-11
RequestData.java
.../yeejoin/amos/boot/module/common/api/dto/RequestData.java
+3
-0
AlertCalledMapper.java
...in/amos/boot/module/jcs/api/mapper/AlertCalledMapper.java
+3
-1
IAlertCalledService.java
...amos/boot/module/jcs/api/service/IAlertCalledService.java
+3
-1
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+34
-5
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+27
-2
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+8
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/RequestData.java
View file @
bfe029df
...
@@ -33,4 +33,7 @@ public class RequestData {
...
@@ -33,4 +33,7 @@ public class RequestData {
@ApiModelProperty
(
value
=
"灾情地址模糊匹配"
)
@ApiModelProperty
(
value
=
"灾情地址模糊匹配"
)
private
String
address
;
private
String
address
;
@ApiModelProperty
(
value
=
"灾情状态"
)
private
int
status
=
0
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/AlertCalledMapper.java
View file @
bfe029df
...
@@ -27,7 +27,9 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
...
@@ -27,7 +27,9 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
*/
*/
Map
<
String
,
Integer
>
queryAlertStatusCount
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
);
Map
<
String
,
Integer
>
queryAlertStatusCount
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
);
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus
(
@Param
(
"par"
)
RequestData
par
);
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus
(
@Param
(
"pageNum"
)
Integer
pageNum
,
@Param
(
"pageSize"
)
Integer
pageSize
,
@Param
(
"par"
)
RequestData
par
);
int
alertCalledListByAlertStatusCount
(
@Param
(
"par"
)
RequestData
par
);
Integer
AlertCalledcountTime
(
@Param
(
"type"
)
int
type
);
Integer
AlertCalledcountTime
(
@Param
(
"type"
)
int
type
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/service/IAlertCalledService.java
View file @
bfe029df
...
@@ -30,7 +30,9 @@ public interface IAlertCalledService {
...
@@ -30,7 +30,9 @@ public interface IAlertCalledService {
*
*
* **/
* **/
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus
(
RequestData
par
);
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
);
int
alertCalledListByAlertStatusCount
(
RequestData
par
);
/**
/**
*
*
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
bfe029df
...
@@ -39,21 +39,50 @@
...
@@ -39,21 +39,50 @@
WHEN '245' THEN '三级'
WHEN '245' THEN '三级'
ELSE '' END responseLevelCode
ELSE '' END responseLevelCode
FROM jc_alert_called a
FROM jc_alert_called a
where a.alert_status =0
where a.is_delete=0
AND a.is_delete=0
AND a.coordinate_x IS NOT NULL
AND a.coordinate_x IS NOT NULL
AND a.coordinate_y IS NOT NULL
AND a.coordinate_y IS NOT NULL
<if
test=
'par.address!=null'
>
<if
test=
'par.status==0'
>
and a.alert_status =0
</if>
<if
test=
'par.status==1'
>
and a.alert_status =1
</if>
<if
test=
'par.address!=null and par.address!="" '
>
and a.address like CONCAT('%',#{par.address},'%')
and a.address like CONCAT('%',#{par.address},'%')
</if>
</if>
<if
test=
'par.whether24!=false'
>
<if
test=
'par.whether24!=false'
>
and a.call_time
>
= (NOW() - interval 24 hour)
and a.call_time
>
= (NOW() - interval 24 hour)
</if>
</if>
ORDER BY
ORDER BY a.call_time DESC
a.call_time DESC
<if
test=
'pageNum!=null and pageSize !=null'
>
limit #{pageNum},#{pageSize}
</if>
</select>
</select>
<select
id=
"alertCalledListByAlertStatusCount"
resultType=
"Integer"
>
SELECT
COUNT(*)
FROM jc_alert_called a
where a.is_delete=0
AND a.coordinate_x IS NOT NULL
AND a.coordinate_y IS NOT NULL
<if
test=
'par.status==0'
>
and a.alert_status =0
</if>
<if
test=
'par.status==1'
>
and a.alert_status =1
</if>
<if
test=
'par.address!=null and par.address!="" '
>
and a.address like CONCAT('%',#{par.address},'%')
</if>
<if
test=
'par.whether24!=false'
>
and a.call_time
>
= (NOW() - interval 24 hour)
</if>
</select>
<select
id=
"AlertCalledcountTime"
resultType=
"Integer"
>
<select
id=
"AlertCalledcountTime"
resultType=
"Integer"
>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-command-biz/src/main/java/com/yeejoin/amos/boot/module/command/biz/controller/CommandController.java
View file @
bfe029df
...
@@ -132,10 +132,35 @@ public class CommandController extends BaseController {
...
@@ -132,10 +132,35 @@ public class CommandController extends BaseController {
@GetMapping
(
value
=
"JQ/list"
)
@GetMapping
(
value
=
"JQ/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情列表查询"
,
notes
=
"警情列表查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情列表查询"
,
notes
=
"警情列表查询"
)
public
ResponseModel
<
Object
>
listPage
(
RequestData
par
)
{
public
ResponseModel
<
Object
>
listPage
(
RequestData
par
)
{
List
<
AlertCalledZhDto
>
list
=
iAlertCalledService
.
alertCalledListByAlertStatus
(
par
);
par
.
setStatus
(
0
);
List
<
AlertCalledZhDto
>
list
=
iAlertCalledService
.
alertCalledListByAlertStatus
(
null
,
null
,
par
);
return
ResponseHelper
.
buildResponse
(
list
);
return
ResponseHelper
.
buildResponse
(
list
);
}
}
/**
* 分页警情列表
*
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"history/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情列表查询"
,
notes
=
"警情列表查询"
)
public
ResponseModel
<
Page
<
AlertCalledZhDto
>>
listhistoryPage
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
)
{
par
.
setStatus
(
1
);
if
(
null
==
pageNum
||
null
==
pageSize
)
{
pageNum
=
1
;
pageSize
=
Integer
.
MAX_VALUE
;
}
else
{
pageNum
=
(
pageNum
-
1
)
*
pageSize
;
}
List
<
AlertCalledZhDto
>
list
=
iAlertCalledService
.
alertCalledListByAlertStatus
(
pageNum
,
pageSize
,
par
);
Page
<
AlertCalledZhDto
>
pageBean
=
new
Page
<>(
pageNum
,
pageSize
);
Integer
num
=
iAlertCalledService
.
alertCalledListByAlertStatusCount
(
par
);
pageBean
.
setRecords
(
list
);
pageBean
.
setTotal
(
num
);
return
ResponseHelper
.
buildResponse
(
pageBean
);
}
/**
/**
* 保卫目标分页查询
* 保卫目标分页查询
...
@@ -394,7 +419,7 @@ public class CommandController extends BaseController {
...
@@ -394,7 +419,7 @@ public class CommandController extends BaseController {
public
ResponseModel
<
Object
>
seismometeorology
()
throws
Exception
{
public
ResponseModel
<
Object
>
seismometeorology
()
throws
Exception
{
RequestData
requestData
=
new
RequestData
();
RequestData
requestData
=
new
RequestData
();
requestData
.
setWhether24
(
true
);
requestData
.
setWhether24
(
true
);
List
<
AlertCalledZhDto
>
list
=
iAlertCalledService
.
alertCalledListByAlertStatus
(
requestData
);
List
<
AlertCalledZhDto
>
list
=
iAlertCalledService
.
alertCalledListByAlertStatus
(
null
,
null
,
requestData
);
List
<
SeismometeorologyDto
>
li
=
seismometeorologyDtoDao
.
findCarStateByWatchSn
();
List
<
SeismometeorologyDto
>
li
=
seismometeorologyDtoDao
.
findCarStateByWatchSn
();
//数据组装
//数据组装
for
(
AlertCalledZhDto
alertCalledZhDto
:
list
)
{
for
(
AlertCalledZhDto
alertCalledZhDto
:
list
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
View file @
bfe029df
...
@@ -86,12 +86,18 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
...
@@ -86,12 +86,18 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
*
*
* **/
* **/
@Override
@Override
public
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus
(
RequestData
par
)
{
public
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
)
{
List
<
AlertCalledZhDto
>
list
=
alertCalledMapper
.
alertCalledListByAlertStatus
(
par
);
List
<
AlertCalledZhDto
>
list
=
alertCalledMapper
.
alertCalledListByAlertStatus
(
pageNum
,
pageSize
,
par
);
return
list
;
return
list
;
}
}
@Override
public
int
alertCalledListByAlertStatusCount
(
RequestData
par
)
{
return
alertCalledMapper
.
alertCalledListByAlertStatusCount
(
par
);
}
/**
/**
*
*
* 根据灾情id 查询灾情详情
* 根据灾情id 查询灾情详情
...
...
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