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
e862fc69
Commit
e862fc69
authored
Oct 20, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新tzs
parent
54a328e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
AlertCalledFormDto.java
...join/amos/boot/module/tzs/api/dto/AlertCalledFormDto.java
+8
-4
AlertCalledServiceImpl.java
...t/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
+16
-2
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/AlertCalledFormDto.java
View file @
e862fc69
...
...
@@ -20,14 +20,18 @@ public class AlertCalledFormDto extends BaseDto{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"警情基本信息"
)
private
AlertCalledDto
alertCalledDto
;
private
AlertCalledDto
alertCalledDto
;
@ApiModelProperty
(
value
=
"动态表单值"
)
private
List
<
FormValue
>
dynamicFormAlert
;
@ApiModelProperty
(
value
=
"动态表单值"
)
private
List
<
FormValue
>
dynamicFormAlert
;
@ApiModelProperty
(
value
=
"报警录音"
)
private
String
alertRecord
;
public
AlertCalledFormDto
(
AlertCalledDto
alertCalledDto
,
List
<
FormValue
>
formValue
)
{
public
AlertCalledFormDto
(
AlertCalledDto
alertCalledDto
,
List
<
FormValue
>
formValue
,
String
alertRecord
)
{
this
.
alertCalledDto
=
alertCalledDto
;
this
.
dynamicFormAlert
=
formValue
;
this
.
alertRecord
=
alertRecord
;
}
}
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 @
e862fc69
...
...
@@ -29,6 +29,7 @@ import com.yeejoin.amos.boot.module.tzs.api.entity.AlertFormValue;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchPaper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchTask
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.VoiceRecordFile
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.DispatchPaperEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.TzsCommonParam
;
...
...
@@ -102,6 +103,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
@Autowired
ISourceFileService
ISourceFileService
;
@Autowired
VoiceRecordFileServiceImpl
voiceRecordFileServiceImpl
;
private
final
Logger
logger
=
LogManager
.
getLogger
(
AlertCalledServiceImpl
.
class
);
...
...
@@ -139,7 +143,12 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
alertCalledDto
.
setUseUnit
(
elevator
.
getUseUnit
());
alertCalledDto
.
setRegionCode
(
elevator
.
getRegionCode
());
}
AlertCalledFormDto
alertCalledFormVo
=
new
AlertCalledFormDto
(
alertCalledDto
,
formValue
);
String
voiceRecord
=
""
;
VoiceRecordFile
temp
=
voiceRecordFileServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
VoiceRecordFile
>().
eq
(
VoiceRecordFile:
:
getAlertId
,
id
).
eq
(
VoiceRecordFile:
:
getAlertStageCode
,
"860"
).
orderByAsc
(
VoiceRecordFile:
:
getRecDate
));
if
(
temp
!=
null
)
{
voiceRecord
=
temp
.
getFilePath
();
}
AlertCalledFormDto
alertCalledFormVo
=
new
AlertCalledFormDto
(
alertCalledDto
,
formValue
,
voiceRecord
);
redisUtils
.
set
(
RedisKey
.
TZS_ALERTCALLED_ID
+
id
,
JSON
.
toJSON
(
alertCalledFormVo
),
time
);
return
alertCalledFormVo
;
...
...
@@ -198,7 +207,12 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
alertCalledDto
.
setUseUnit
(
elevator
.
getUseUnit
());
alertCalledDto
.
setRegionCode
(
elevator
.
getRegionCode
());
}
AlertCalledFormDto
alertCalledFormVo
=
new
AlertCalledFormDto
(
alertCalledDto
,
formValue
);
String
voiceRecord
=
""
;
VoiceRecordFile
temp
=
voiceRecordFileServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
VoiceRecordFile
>().
eq
(
VoiceRecordFile:
:
getAlertId
,
id
).
eq
(
VoiceRecordFile:
:
getAlertStageCode
,
"860"
).
orderByAsc
(
VoiceRecordFile:
:
getRecDate
));
if
(
temp
!=
null
)
{
voiceRecord
=
temp
.
getFilePath
();
}
AlertCalledFormDto
alertCalledFormVo
=
new
AlertCalledFormDto
(
alertCalledDto
,
formValue
,
voiceRecord
);
return
alertCalledFormVo
;
}
...
...
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