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
6ca12219
Commit
6ca12219
authored
Aug 16, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(统计):bug
parent
8859119c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
21 deletions
+48
-21
AlertStatisticsMapper.xml
...s-api/src/main/resources/mapper/AlertStatisticsMapper.xml
+44
-17
YJDPStatisticsController.java
...le/statistcs/biz/controller/YJDPStatisticsController.java
+4
-4
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/AlertStatisticsMapper.xml
View file @
6ca12219
...
@@ -185,14 +185,12 @@
...
@@ -185,14 +185,12 @@
<if
test=
"dto != null and dto.timeSearchOne != null and dto.timeSearchOne.endDate != null and dto.timeSearchOne.endDate != ''"
>
<if
test=
"dto != null and dto.timeSearchOne != null and dto.timeSearchOne.endDate != null and dto.timeSearchOne.endDate != ''"
>
and date_le(CAST(call_time as date), #{dto.timeSearchOne.endDate})
and date_le(CAST(call_time as date), #{dto.timeSearchOne.endDate})
</if>
</if>
<choose>
<if
test=
"dto.alertTypeCode !=null and dto.alertTypeCode !='' and dto.alertTypeCode !='yjsj'"
>
<when
test=
"dto.alertTypeCode != null and dto.alertTypeCode != ''"
>
and alarm_type_code = #{dto.alertTypeCode}
and alarm_type_code = #{dto.alertTypeCode}
</if>
</when>
<if
test=
"dto.alertTypeCode == null or dto.alertTypeCode == '' and dto.alertTypeCode =='yjsj'"
>
<otherwise>
and (alarm_type_code = '960' or alarm_type_code = '961' or alarm_type_code = '962')
and (alarm_type_code = '960' or alarm_type_code = '961' or alarm_type_code = '962')
</if>
</otherwise>
</choose>
<if
test=
"dto.typeCode !=null and dto.typeCode !=''"
>
<if
test=
"dto.typeCode !=null and dto.typeCode !=''"
>
and type_code = #{dto.typeCode}
and type_code = #{dto.typeCode}
</if>
</if>
...
@@ -202,7 +200,37 @@
...
@@ -202,7 +200,37 @@
</select>
</select>
<select
id=
"alertRecordForPage"
resultType=
"java.util.Map"
>
<select
id=
"alertRecordForPage"
resultType=
"java.util.Map"
>
SELECT *
SELECT
"contact_phone" as contactPhone ,
"city",
"type" ,
"skill_group" as skillGroup,
"response_level" as responseLevel ,
"emergency_person" as emergencyPerson,
"alert_stage_code" as alertStageCode,
"work_order_number" as workOrderNumber,
"alarm_type" as alarmType,
"alert_source" as alertSource,
"biz_org_code" as bizOrgCode,
"alert_source_code" as alertSourceCode,
"equipment_classification_code" as equipmentClassificationCode,
"address" as address,
"device_id" as deviceId,
"contact_user" as contactUser,
"equipment_classification" as equipmentClassification,
"alarm_type_code" as alarmTypeCode,
"call_time" as callTime,
"sequence_nbr" as sequenceNbr,
"is_delete" as sequenceNbr,
"alert_status" as alertStatus,
"rec_user_id" as recUserId,
"registration_code" as registrationCode,
"district" as district,
"alert_stage" as alertStage,
"emergency_call" as emergencyCall,
"type_code" as typeCode,
"region_code" as regionCode,
"equipment_id" as equipmentId
FROM tz_alert_called
FROM tz_alert_called
<where>
<where>
is_delete = 0
is_delete = 0
...
@@ -216,14 +244,13 @@
...
@@ -216,14 +244,13 @@
and date_le(CAST(call_time as date), #{dto.timeSearchOne.endDate})
and date_le(CAST(call_time as date), #{dto.timeSearchOne.endDate})
</if>
</if>
<choose>
<if
test=
"dto.alertTypeCode !=null and dto.alertTypeCode !='' and dto.alertTypeCode !='yjsj'"
>
<when
test=
"dto.alertTypeCode != null and dto.alertTypeCode != ''"
>
and alarm_type_code = #{dto.alertTypeCode}
and alarm_type_code = #{dto.alertTypeCode}
</if>
</when>
<otherwise>
<if
test=
"dto.alertTypeCode == null or dto.alertTypeCode == '' and dto.alertTypeCode =='yjsj'"
>
and (alarm_type_code = '960' or alarm_type_code = '961' or alarm_type_code = '962')
and (alarm_type_code = '960' or alarm_type_code = '961' or alarm_type_code = '962')
</otherwise>
</if>
</choose>
<if
test=
"dto.typeCode != null and dto.typeCode != ''"
>
<if
test=
"dto.typeCode != null and dto.typeCode != ''"
>
and type_code = #{dto.typeCode}
and type_code = #{dto.typeCode}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/YJDPStatisticsController.java
View file @
6ca12219
...
@@ -193,13 +193,13 @@ public class YJDPStatisticsController {
...
@@ -193,13 +193,13 @@ public class YJDPStatisticsController {
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"应急大屏使用-
报警类型"
,
notes
=
"应急大屏使用-报警类型
"
)
@ApiOperation
(
value
=
"应急大屏使用-
警情来源"
,
notes
=
"应急大屏使用-警情来源
"
)
@PostMapping
(
"/alertSourceOperations/dp"
)
@PostMapping
(
"/alertSourceOperations/dp"
)
public
ResponseModel
<
Object
>
alertSourceOperations
()
{
public
ResponseModel
<
Object
>
alertSourceOperations
()
{
JSONArray
res
=
new
JSONArray
();
JSONArray
res
=
new
JSONArray
();
JSONObject
jsonObject1
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
KRJY
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
KRJY
.
getId
());
JSONObject
jsonObject1
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
DHBJ
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
DHBJ
.
getId
());
JSONObject
jsonObject2
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
GZWX
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
GZWX
.
getId
());
JSONObject
jsonObject2
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
WLJR
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
WLJR
.
getId
());
JSONObject
jsonObject3
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
TSZX
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
TSZX
.
getId
());
JSONObject
jsonObject3
=
new
JSONObject
().
fluentPut
(
"label"
,
AlertStageEnums
.
APPJJ
.
getValue
()).
fluentPut
(
"value"
,
AlertStageEnums
.
APPJJ
.
getId
());
res
.
add
(
jsonObject1
);
res
.
add
(
jsonObject1
);
res
.
add
(
jsonObject2
);
res
.
add
(
jsonObject2
);
res
.
add
(
jsonObject3
);
res
.
add
(
jsonObject3
);
...
...
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