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
9015fec7
Commit
9015fec7
authored
Aug 30, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 辅屏查询接口
parent
29834cb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
AlertCalledDto.java
.../yeejoin/amos/boot/module/tzs/api/dto/AlertCalledDto.java
+3
-0
AlertCalled.java
.../yeejoin/amos/boot/module/tzs/api/entity/AlertCalled.java
+4
-0
AlertCalledController.java
...boot/module/tzs/biz/controller/AlertCalledController.java
+8
-6
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/dto/AlertCalledDto.java
View file @
9015fec7
...
...
@@ -140,4 +140,7 @@ public class AlertCalledDto extends BaseDto {
@ApiModelProperty
(
value
=
"结案说明"
)
private
String
finalReason
;
@ApiModelProperty
(
value
=
"是否辅屏查询"
)
private
String
isAuxiliaryScreen
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/AlertCalled.java
View file @
9015fec7
...
...
@@ -217,4 +217,8 @@ public class AlertCalled extends BaseEntity {
@ApiModelProperty
(
value
=
"响应级别"
)
private
String
responseLevel
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"是否辅屏查询"
)
private
String
isAuxiliaryScreen
;
}
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 @
9015fec7
...
...
@@ -270,9 +270,11 @@ public class AlertCalledController extends BaseController {
queryWrapper
.
orderByDesc
(
"call_time"
);
if
(
null
!=
alertCalled
.
getCallTimeStart
()
&&
null
!=
alertCalled
.
getCallTimeEnd
())
{
queryWrapper
.
between
(
"call_time"
,
alertCalled
.
getCallTimeStart
(),
alertCalled
.
getCallTimeEnd
().
getTime
());
if
(!
ValidationUtil
.
isEmpty
(
alertCalled
.
getIsAuxiliaryScreen
()))
{
if
(!
ValidationUtil
.
isEmpty
(
alertCalled
.
getCallTimeStart
())
&&
!
ValidationUtil
.
isEmpty
(
alertCalled
.
getCallTimeEnd
()))
{
queryWrapper
.
between
(
"call_time"
,
alertCalled
.
getCallTimeStart
(),
alertCalled
.
getCallTimeEnd
().
getTime
());
}
}
else
{
queryWrapper
.
between
(
"call_time"
,
DateUtils
.
stampToDate
(
System
.
currentTimeMillis
(),
DateUtils
.
DATE_PATTERN
),
DateUtils
.
stampToDate
(
DateUtils
.
dateAddDays
(
new
Date
(),
1
).
getTime
(),
DateUtils
.
DATE_PATTERN
));
...
...
@@ -282,15 +284,15 @@ public class AlertCalledController extends BaseController {
queryWrapper
.
isNull
(
"father_alert"
);
}
if
(
ValidationUtil
.
isEmpty
(
alertCalled
.
getType
()))
{
if
(
!
ValidationUtil
.
isEmpty
(
alertCalled
.
getType
()))
{
queryWrapper
.
eq
(
"type"
,
alertCalled
.
getType
());
}
if
(
ValidationUtil
.
isEmpty
(
alertCalled
.
getAlarmType
()))
{
if
(
!
ValidationUtil
.
isEmpty
(
alertCalled
.
getAlarmType
()))
{
queryWrapper
.
eq
(
"alarm_type"
,
alertCalled
.
getAlarmType
());
}
if
(
ValidationUtil
.
isEmpty
(
alertCalled
.
getAlertSource
()))
{
if
(
!
ValidationUtil
.
isEmpty
(
alertCalled
.
getAlertSource
()))
{
queryWrapper
.
eq
(
"alert_source"
,
alertCalled
.
getAlertSource
());
}
return
queryWrapper
;
...
...
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