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
4f9ff101
Commit
4f9ff101
authored
Sep 15, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
cedf859e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
31 deletions
+11
-31
AlertCalledMapper.xml
...96333-api/src/main/resources/mapper/AlertCalledMapper.xml
+1
-1
AlertCalledController.java
...module/elevator/biz/controller/AlertCalledController.java
+2
-9
RescueStationController.java
...dule/elevator/biz/controller/RescueStationController.java
+0
-21
DispatchTaskServiceImpl.java
...le/elevator/biz/service/impl/DispatchTaskServiceImpl.java
+8
-0
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
4f9ff101
...
...
@@ -8,7 +8,7 @@
count( 1 ) calledCount,
sum( CASE WHEN father_alert is null THEN
1 ELSE 0 END ) majorAlertCount,
sum( CASE WHEN alarm_type_code = '960'
sum( CASE WHEN alarm_type_code = '960'
and alert_status = 0
THEN 1 ELSE 0 END )
sleepyIncidentCount,
sum( CASE WHEN alarm_type_code
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/controller/AlertCalledController.java
View file @
4f9ff101
...
...
@@ -438,19 +438,13 @@ public class AlertCalledController extends BaseController {
if
(!
ValidationUtil
.
isEmpty
(
alertCalled
.
getIsAuxiliaryScreen
()))
{
if
(!
ValidationUtil
.
isEmpty
(
alertCalled
.
getCallTimeStart
())
&&
!
ValidationUtil
.
isEmpty
(
alertCalled
.
getCallTimeEnd
()))
{
queryWrapper
.
between
(
"call_time
_start
"
,
alertCalled
.
getCallTimeStart
(),
queryWrapper
.
between
(
"call_time"
,
alertCalled
.
getCallTimeStart
(),
alertCalled
.
getCallTimeEnd
());
}
else
if
(!
ValidationUtil
.
isEmpty
(
alertCalled
.
getCallTimeStart
()))
{
queryWrapper
.
ge
(
"call_time_start"
,
alertCalled
.
getCallTimeStart
());
}
}
else
{
if
(!
ValidationUtil
.
isEmpty
(
alertCalled
.
getCallTimeStart
()))
{
queryWrapper
.
ge
(
"call_time_start"
,
alertCalled
.
getCallTimeStart
());
}
else
{
queryWrapper
.
between
(
"call_time_start"
,
DateUtils
.
stampToDate
(
System
.
currentTimeMillis
(),
DateUtils
.
DATE_PATTERN
),
queryWrapper
.
between
(
"call_time"
,
DateUtils
.
stampToDate
(
System
.
currentTimeMillis
(),
DateUtils
.
DATE_PATTERN
),
DateUtils
.
stampToDate
(
DateUtils
.
dateAddDays
(
new
Date
(),
1
).
getTime
(),
DateUtils
.
DATE_PATTERN
));
}
}
if
(
alertCalled
.
getIsFatherAlert
())
{
// 0:接警;1:处警
queryWrapper
.
isNull
(
"father_alert"
);
...
...
@@ -467,7 +461,6 @@ public class AlertCalledController extends BaseController {
if
(!
ValidationUtil
.
isEmpty
(
alertCalled
.
getAlertSource
()))
{
queryWrapper
.
eq
(
"alert_source"
,
alertCalled
.
getAlertSource
());
}
return
queryWrapper
;
}
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/controller/RescueStationController.java
View file @
4f9ff101
...
...
@@ -188,15 +188,6 @@ public class RescueStationController extends BaseController {
}
page
=
iRescueStationService
.
page
(
pageBean
,
rescueStationQueryWrapper
);
IPage
<
RescueStationDto
>
rescueStationDtoIPage
=
BeanDtoVoUtils
.
iPageVoStream
(
page
,
RescueStationDto
.
class
);
// 获取查询结果列表
List
<
RescueStationDto
>
rescueStationList
=
rescueStationDtoIPage
.
getRecords
();
// 对救援站列表按照更新时间进行排序,新增的救援站将排在最前面
Collections
.
sort
(
rescueStationList
,
Comparator
.
comparing
(
RescueStationDto:
:
getRecDate
).
reversed
());
// 更新排序后的列表
rescueStationDtoIPage
.
setRecords
(
rescueStationList
);
return
ResponseHelper
.
buildResponse
(
rescueStationDtoIPage
);
}
...
...
@@ -227,20 +218,8 @@ public class RescueStationController extends BaseController {
page
.
setSize
(
Integer
.
parseInt
(
pageSize
));
page
.
setCurrent
(
Integer
.
parseInt
(
pageNum
));
}
page
=
iRescueStationService
.
getRescueStationList
(
page
,
rescueStationDto
);
IPage
<
RescueStationDto
>
rescueStationDtoIPage
=
ObjectUtils
.
isEmpty
(
page
)?
new
Page
<>():
BeanDtoVoUtils
.
iPageVoStream
(
page
,
RescueStationDto
.
class
);
// 获取查询结果列表
List
<
RescueStationDto
>
rescueStationList
=
rescueStationDtoIPage
.
getRecords
();
// 对救援站列表按照更新时间进行排序,新增的救援站将排在最前面
Collections
.
sort
(
rescueStationList
,
Comparator
.
comparing
(
RescueStationDto:
:
getRecDate
).
reversed
());
// 更新排序后的列表
rescueStationDtoIPage
.
setRecords
(
rescueStationList
);
// // 反转列表顺序
// Collections.reverse(rescueStationList);
return
ResponseHelper
.
buildResponse
(
rescueStationDtoIPage
);
}
...
...
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/DispatchTaskServiceImpl.java
View file @
4f9ff101
...
...
@@ -839,6 +839,14 @@ public class DispatchTaskServiceImpl extends BaseService<DispatchTaskDto,Dispatc
if
(
alertFormValue
.
getFieldCode
().
equals
(
"dispatch_status"
))
{
alertFormValue
.
setFieldValue
(
DispatchPaperEnums
.
hasDispatched
.
getValue
());
alertFormValue
.
setFieldValueCode
(
DispatchPaperEnums
.
hasDispatched
.
getId
());
}
else
if
(
alertFormValue
.
getFieldCode
().
equals
(
"response_level"
))
{
alertFormValue
.
setFieldValue
(
DispatchPaperEnums
.
useUnit
.
getValue
());
alertFormValue
.
setFieldValueCode
(
DispatchPaperEnums
.
useUnit
.
getId
());
// 响应级别反馈给警情
LambdaUpdateWrapper
<
AlertCalled
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
AlertCalled:
:
getSequenceNbr
,
dispatchTask
.
getAlertId
());
updateWrapper
.
set
(
AlertCalled:
:
getResponseLevel
,
DispatchPaperEnums
.
useUnit
.
getValue
());
alertCalledServiceImpl
.
update
(
updateWrapper
);
}
});
}
...
...
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