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
355f10c7
Commit
355f10c7
authored
Nov 23, 2023
by
H2T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
救援过程修改记录
parent
be9cb32a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
AlertCalledServiceImpl.java
...ule/elevator/biz/service/impl/AlertCalledServiceImpl.java
+8
-5
RescueProcessServiceImpl.java
...e/elevator/biz/service/impl/RescueProcessServiceImpl.java
+1
-1
No files found.
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/AlertCalledServiceImpl.java
View file @
355f10c7
...
@@ -158,10 +158,16 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
...
@@ -158,10 +158,16 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
@Override
@Override
public
Object
selectAlertCalledById
(
Long
id
)
{
public
Object
selectAlertCalledById
(
Long
id
)
{
if
(
redisUtils
.
hasKey
(
RedisKey
.
TZS_ALERTCALLED_ID
+
id
)){
if
(
redisUtils
.
hasKey
(
RedisKey
.
TZS_ALERTCALLED_ID
+
id
)){
// if(false){
Object
obj
=
redisUtils
.
get
(
RedisKey
.
TZS_ALERTCALLED_ID
+
id
);
Object
obj
=
redisUtils
.
get
(
RedisKey
.
TZS_ALERTCALLED_ID
+
id
);
return
obj
;
return
obj
;
}
else
{
}
else
{
AlertCalledFormDto
alertCalledFormVo
=
getAlertCalledFormDto
(
id
);
redisUtils
.
set
(
RedisKey
.
TZS_ALERTCALLED_ID
+
id
,
JSON
.
toJSON
(
alertCalledFormVo
),
time
);
return
alertCalledFormVo
;
}
}
public
AlertCalledFormDto
getAlertCalledFormDto
(
Long
id
)
{
// 警情基本信息
// 警情基本信息
AlertCalled
alertCalled
=
this
.
getById
(
id
);
AlertCalled
alertCalled
=
this
.
getById
(
id
);
LambdaQueryWrapper
<
AlertFormValue
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
AlertFormValue
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
...
@@ -207,16 +213,13 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
...
@@ -207,16 +213,13 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
// alertCalledDto.setRegionCode(elevator.getRegionCode());
// alertCalledDto.setRegionCode(elevator.getRegionCode());
// }
// }
String
voiceRecord
=
""
;
String
voiceRecord
=
""
;
VoiceRecordFile
temp
=
voiceRecordFileServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
VoiceRecordFile
>().
eq
(
VoiceRecordFile:
:
getAlertId
,
id
).
eq
(
VoiceRecordFile:
:
getAlertStageCode
,
"860"
).
orderByAsc
(
VoiceRecordFile:
:
getTelStartTime
).
last
(
"limit 1"
));
VoiceRecordFile
temp
=
voiceRecordFileServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
VoiceRecordFile
>().
eq
(
VoiceRecordFile:
:
getAlertId
,
id
).
eq
(
VoiceRecordFile:
:
getAlertStageCode
,
"860"
).
orderByAsc
(
VoiceRecordFile:
:
getTelStartTime
).
last
(
"limit 1"
));
if
(
temp
!=
null
)
{
if
(
temp
!=
null
)
{
voiceRecord
=
temp
.
getFilePath
();
voiceRecord
=
temp
.
getFilePath
();
}
}
AlertCalledFormDto
alertCalledFormVo
=
new
AlertCalledFormDto
(
alertCalledDto
,
formValue
,
voiceRecord
);
AlertCalledFormDto
alertCalledFormVo
=
new
AlertCalledFormDto
(
alertCalledDto
,
formValue
,
voiceRecord
);
redisUtils
.
set
(
RedisKey
.
TZS_ALERTCALLED_ID
+
id
,
JSON
.
toJSON
(
alertCalledFormVo
),
time
);
return
alertCalledFormVo
;
return
alertCalledFormVo
;
}
}
}
public
void
selectAlertCalledByIdNew
(
AlertPaperInfoDto
alertCalled
)
{
public
void
selectAlertCalledByIdNew
(
AlertPaperInfoDto
alertCalled
)
{
// 警情基本信息
// 警情基本信息
...
...
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/RescueProcessServiceImpl.java
View file @
355f10c7
...
@@ -184,7 +184,7 @@ public class RescueProcessServiceImpl extends BaseService<RescueProcessDto,Rescu
...
@@ -184,7 +184,7 @@ public class RescueProcessServiceImpl extends BaseService<RescueProcessDto,Rescu
updateMessage
(
rescueProcessDto
,
"die_num"
);
updateMessage
(
rescueProcessDto
,
"die_num"
);
try
{
try
{
//更新警情历史记录表
//更新警情历史记录表
AlertCalledFormDto
calledFormDto
=
(
AlertCalledFormDto
)
iAlertCalledService
.
selectAlertCalledById
(
rescueProcessDto
.
getAlertId
());
AlertCalledFormDto
calledFormDto
=
iAlertCalledService
.
getAlertCalledFormDto
(
rescueProcessDto
.
getAlertId
());
List
<
FormValue
>
dynamicFormAlert
=
calledFormDto
.
getDynamicFormAlert
();
List
<
FormValue
>
dynamicFormAlert
=
calledFormDto
.
getDynamicFormAlert
();
HashMap
<
String
,
String
>
formMap
=
new
HashMap
<>();
HashMap
<
String
,
String
>
formMap
=
new
HashMap
<>();
dynamicFormAlert
.
forEach
(
x
->
formMap
.
put
(
x
.
getKey
(),
x
.
getValue
()));
dynamicFormAlert
.
forEach
(
x
->
formMap
.
put
(
x
.
getKey
(),
x
.
getValue
()));
...
...
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