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
1a792e42
Commit
1a792e42
authored
Sep 14, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加120接口
parent
533f416d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
102 additions
and
1 deletion
+102
-1
AlertCalledMapper.java
...in/amos/boot/module/jcs/api/mapper/AlertCalledMapper.java
+1
-0
IAlertCalledService.java
...amos/boot/module/jcs/api/service/IAlertCalledService.java
+1
-0
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+65
-0
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+28
-1
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+7
-0
No files found.
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 @
1a792e42
...
...
@@ -30,6 +30,7 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
Map
<
String
,
Integer
>
queryAlertStatusCount
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
);
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus
(
@Param
(
"pageNum"
)
Integer
pageNum
,
@Param
(
"pageSize"
)
Integer
pageSize
,
@Param
(
"par"
)
RequestData
par
);
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus120
(
@Param
(
"pageNum"
)
Integer
pageNum
,
@Param
(
"pageSize"
)
Integer
pageSize
,
@Param
(
"par"
)
RequestData
par
);
int
alertCalledListByAlertStatusCount
(
@Param
(
"par"
)
RequestData
par
);
...
...
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 @
1a792e42
...
...
@@ -31,6 +31,7 @@ public interface IAlertCalledService {
* **/
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
);
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus120
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
);
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatusByAid
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
1a792e42
...
...
@@ -82,6 +82,71 @@
</if>
</select>
<!-- //判断是否航空器救援 如果为航空器救援则保存冗余字段 response_level_code bug2542 bykongfm -->
<select
id=
"alertCalledListByAlertStatus120"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledZhDto"
>
SELECT
a.sequence_nbr sequenceNbr,
a.alert_stage alertStage,
a.call_time callTime,
a.update_time updateTime,
a.rescue_grid rescueGrid,
CONCAT(a.alert_type,' ',IFNULL(a.remark,"")) alertType,
a.alert_type_code alarmTypeCode,
a.unit_involved unitInvolved,
a.trapped_num trappedNum,
a.casualties_num casualtiesNum,
a.address ,
a.coordinate_x longitude,
a.coordinate_y latitude,
a.record_url,
a.alert_status,
CASE a.response_level_code
WHEN '1164' THEN '紧急出动'
WHEN '1165' THEN '集结待命'
WHEN '1166' THEN '原地待命'
ELSE '' END responseLevelCode
FROM jc_alert_called a
where a.is_delete=0 and a.alert_type_code = 1214
<!--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},'%') || a.alert_type like CONCAT('%',#{par.address},'%')
</if>
<if
test=
'par.alertTypeCode!=null and par.alertTypeCode!="" '
>
and a.alert_type_code = #{par.alertTypeCode}
</if>
<if
test=
'par.alertId!=null'
>
and a.sequence_nbr =#{par.alertId}
</if>
<if
test=
'par.whether24!=false'
>
and a.call_time
>
= (NOW() - interval 24 hour)
</if>
<if
test=
'par.orderTime=="1"'
>
ORDER BY a.call_time DESC
</if>
<if
test=
'par.orderTime=="2"'
>
ORDER BY a.call_time
</if>
<if
test=
'par.orderTime==null'
>
ORDER BY a.call_time DESC
</if>
<if
test=
'pageNum!=null and pageSize !=null'
>
limit #{pageNum},#{pageSize}
</if>
</select>
<select
id=
"alertCalledListByAlertStatusByAid"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledZhDto"
>
SELECT
a.sequence_nbr sequenceNbr,
...
...
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 @
1a792e42
...
...
@@ -273,7 +273,7 @@ public class CommandController extends BaseController {
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"history/listBy
Aid
"
)
@GetMapping
(
value
=
"history/listBy
120
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情列表查询"
,
notes
=
"警情列表查询"
)
public
ResponseModel
<
Page
<
AlertCalledZhDto
>>
listhistoryPageByAid
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
)
{
...
...
@@ -638,6 +638,33 @@ public class CommandController extends BaseController {
}
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/seismometeorology120"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"跑马灯"
,
notes
=
"跑马灯"
)
public
ResponseModel
<
Object
>
seismometeorology120
()
throws
Exception
{
RequestData
requestData
=
new
RequestData
();
requestData
.
setWhether24
(
true
);
List
<
AlertCalledZhDto
>
list
=
iAlertCalledService
.
alertCalledListByAlertStatus120
(
null
,
null
,
requestData
);
// List<SeismometeorologyDto> li = seismometeorologyDtoDao.findCarStateByWatchSn();
List
<
SeismometeorologyDto
>
li
=
new
ArrayList
<>();
//数据组装
for
(
AlertCalledZhDto
alertCalledZhDto
:
list
)
{
StringBuffer
st
=
new
StringBuffer
();
String
time
=
DateUtil
.
formatDate
(
alertCalledZhDto
.
getCallTime
(),
"yyyy-MM-dd HH:mm:ss"
);
st
.
append
(
"【"
).
append
(
alertCalledZhDto
.
getAlertType
()).
append
(
"】"
).
append
(
" "
).
append
(
time
).
append
(
" "
).
append
(
alertCalledZhDto
.
getAddress
()!=
null
?
alertCalledZhDto
.
getAddress
():
""
);
SeismometeorologyDto
sto
=
new
SeismometeorologyDto
(
alertCalledZhDto
.
getSequenceNbr
(),
"1"
,
"警情通知"
,
null
,
alertCalledZhDto
.
getCallTime
(),
null
,
st
.
toString
());
li
.
add
(
sto
);
}
return
ResponseHelper
.
buildResponse
(
li
);
}
// /**
// * 水源列表分页查询
// *
...
...
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 @
1a792e42
...
...
@@ -187,6 +187,13 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
return
list
;
}
@Override
public
List
<
AlertCalledZhDto
>
alertCalledListByAlertStatus120
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
)
{
List
<
AlertCalledZhDto
>
list
=
alertCalledMapper
.
alertCalledListByAlertStatus120
(
pageNum
,
pageSize
,
par
);
return
list
;
}
@Override
public
int
alertCalledListByAlertStatusCount
(
RequestData
par
)
{
...
...
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