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
50e06241
Commit
50e06241
authored
Apr 21, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.告警数量统计
parent
f983f414
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
MsgLogController.java
...amos/boot/module/tzs/biz/controller/MsgLogController.java
+15
-1
MsgLogServiceImpl.java
...s/boot/module/tzs/biz/service/impl/MsgLogServiceImpl.java
+7
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/MsgLogController.java
View file @
50e06241
...
...
@@ -113,4 +113,17 @@ public class MsgLogController extends BaseController {
public
ResponseModel
<
List
<
MsgLogDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
msgLogServiceImpl
.
queryForMsgLogList
());
}
}
/**
* 告警数量统计
*
* @return Integer
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"告警数量统计"
,
notes
=
"告警数量统计"
)
@GetMapping
(
value
=
"/count"
)
public
ResponseModel
<
Integer
>
countByTerminalType
(
@RequestParam
(
value
=
"terminalType"
,
required
=
false
)
String
terminalType
)
{
return
ResponseHelper
.
buildResponse
(
msgLogServiceImpl
.
countByTerminalType
(
terminalType
));
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/MsgLogServiceImpl.java
View file @
50e06241
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.MsgLog
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.MsgLogMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IMsgLogService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.MsgLogDto
;
import
org.apache.commons.lang3.StringUtils
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -30,4 +32,8 @@ public class MsgLogServiceImpl extends BaseService<MsgLogDto,MsgLog,MsgLogMapper
public
List
<
MsgLogDto
>
queryForMsgLogList
()
{
return
this
.
queryForList
(
""
,
false
);
}
public
Integer
countByTerminalType
(
String
terminalType
)
{
return
this
.
list
(
new
LambdaQueryWrapper
<
MsgLog
>().
eq
(
StringUtils
.
isNotEmpty
(
terminalType
),
MsgLog:
:
getTerminalType
,
terminalType
)).
size
();
}
}
\ 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