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
41e154aa
Commit
41e154aa
authored
Jul 24, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.应急大屏中间地图接口开发
parent
fba009c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
AlertStatisticsMapper.java
...oot/module/elevator/api/mapper/AlertStatisticsMapper.java
+1
-1
AlertStatisticsMapper.xml
...3-api/src/main/resources/mapper/AlertStatisticsMapper.xml
+13
-8
DPStatisticsServiceImpl.java
...le/elevator/biz/service/impl/DPStatisticsServiceImpl.java
+2
-2
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/mapper/AlertStatisticsMapper.java
View file @
41e154aa
...
...
@@ -21,5 +21,5 @@ public interface AlertStatisticsMapper extends BaseMapper<AlertStatistics> {
String
getOrgCodeByCompanyCode
(
String
cityCode
);
Long
countEmergencyEventsBy
UniBizKey
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
filterParamDto
);
Long
countEmergencyEventsBy
OrgCodeAndDate
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
filterParamDto
);
}
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/resources/mapper/AlertStatisticsMapper.xml
View file @
41e154aa
...
...
@@ -112,14 +112,19 @@
<select
id=
"getOrgCodeByCompanyCode"
resultType=
"java.lang.String"
>
select org_code from privilege_company where company_code = #{companyCode} limit 1
</select>
<select
id=
"countEmergencyEventsBy
UniBizKey
"
resultType=
"java.lang.Long"
>
<select
id=
"countEmergencyEventsBy
OrgCodeAndDate
"
resultType=
"java.lang.Long"
>
SELECT
COALESCE(sum(emergency_events),0)
FROM
"tzs_alert_statistics"
where
supervisory_unit_org_code like concat(#{orgCode},'%')
and start_date=#{dto.beginDate}
and end_date=#{dto.endDate}
ifnull (SUM ( CASE WHEN father_alert IS NULL THEN 1 ELSE 0 END ), 0) AS total
FROM
tz_alert_called
WHERE
biz_org_code like concat(#{orgCode}, '%')
and (alarm_type_code = '960' or alarm_type_code = '961')
<if
test=
"dto.beginDate !=null and dto.beginDate !=''"
>
and date_ge(CAST(call_time as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate !=null and dto.endDate !=''"
>
and date_le(CAST(call_time as date),#{dto.endDate})
</if>
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/DPStatisticsServiceImpl.java
View file @
41e154aa
...
...
@@ -7,7 +7,6 @@ import com.yeejoin.amos.boot.module.common.api.constant.TZSCommonConstant;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamDto
;
import
com.yeejoin.amos.boot.module.common.api.enums.ReginStepEnum
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.AlertMaintenanceUnitStatisticsDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.AlertMsgDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.AlertPaperInfoDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.AlertUseUnitStatisticsDto
;
import
com.yeejoin.amos.boot.module.elevator.api.entity.AlertMaintenanceUnitStatistics
;
...
...
@@ -282,7 +281,8 @@ public class DPStatisticsServiceImpl {
private
Map
<
String
,
Object
>
getCenterMapOverviewData
(
String
orgCode
,
DPFilterParamDto
filterParamDto
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
Long
num
=
alertStatisticsMapper
.
countEmergencyEventsByUniBizKey
(
orgCode
,
filterParamDto
);
// 统计完成的事件包括困人、故障
Long
num
=
alertStatisticsMapper
.
countEmergencyEventsByOrgCodeAndDate
(
orgCode
,
filterParamDto
);
result
.
put
(
"alarmCount"
,
num
);
return
result
;
}
...
...
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