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
e5f60853
Commit
e5f60853
authored
Sep 24, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交重大事件和今日事件的统计
parent
26ea6622
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
AlertCalledMapper.java
...in/amos/boot/module/tzs/api/mapper/AlertCalledMapper.java
+6
-0
AlertCalledMapper.xml
...e-tzs-api/src/main/resources/mapper/AlertCalledMapper.xml
+0
-0
AlertCalledController.java
...boot/module/tzs/biz/controller/AlertCalledController.java
+0
-0
AlertCalledServiceImpl.java
...t/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
+26
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/AlertCalledMapper.java
View file @
e5f60853
...
...
@@ -62,4 +62,10 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
String
alertStage
,
String
alertStatus
,
String
address
);
Map
<
String
,
Integer
>
getTodayEmergencyCount
();
Map
<
String
,
Integer
>
getImportantEventCount
();
Map
<
String
,
Integer
>
getImportantEventDetail
();
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
e5f60853
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/AlertCalledController.java
View file @
e5f60853
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
View file @
e5f60853
...
...
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.google.common.collect.Maps
;
import
com.itextpdf.text.pdf.PdfStructTreeController.returnType
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
...
...
@@ -36,6 +37,7 @@ import org.typroject.tyboot.core.rdbms.annotation.Operator;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -393,4 +395,27 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
return
result
;
}
public
Object
getTodayEmergencyCount
()
{
return
alertCalledMapper
.
getTodayEmergencyCount
();
}
public
Object
getImportantEventCount
()
{
return
alertCalledMapper
.
getImportantEventCount
();
}
public
Object
getImportantEventOrTodayEmergencyCount
(
String
type
)
{
List
<
Map
<
String
,
Object
>>
map
=
null
;
LambdaQueryWrapper
<
AlertCalled
>
queryWrapper
=
new
LambdaQueryWrapper
<
AlertCalled
>();
queryWrapper
.
eq
(
AlertCalled:
:
getIsDelete
,
0
);
queryWrapper
.
eq
(
AlertCalled:
:
getAlarmTypeCode
,
"960"
);
if
(
"rescueTotal"
.
equals
(
type
))
{
queryWrapper
.
in
(
AlertCalled:
:
getAlertStageCode
,
Arrays
.
asList
(
"861"
,
"862"
));
}
else
if
(
"rescueComplete"
.
equals
(
type
))
{
queryWrapper
.
in
(
AlertCalled:
:
getAlertStageCode
,
Arrays
.
asList
(
"864"
,
"865"
,
"866"
));
}
if
(
"importantEventCount"
.
equals
(
type
))
{
return
alertCalledMapper
.
getImportantEventDetail
();
}
return
this
.
baseMapper
.
selectMaps
(
queryWrapper
);
}
}
\ No newline at end of file
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