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
64104c0b
Commit
64104c0b
authored
Feb 08, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of 172.16.10.76:moa/amos-boot-biz into developer
parents
b5cff5a5
33efc059
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
AlertCalledController.java
...boot/module/tzs/biz/controller/AlertCalledController.java
+13
-2
application.properties
...boot-system-tzs/src/main/resources/application.properties
+1
-1
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/AlertCalledController.java
View file @
64104c0b
...
...
@@ -135,6 +135,10 @@ public class AlertCalledController extends BaseController {
@Autowired
TzsAuthService
tzsAuthService
;
@Autowired
private
ElevatorServiceImpl
iElevatorService
;
/**
* 新增警情接警填报记录
*
...
...
@@ -144,10 +148,17 @@ public class AlertCalledController extends BaseController {
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增警情接警填报记录"
,
notes
=
"新增警情接警填报记录"
)
public
ResponseModel
<
AlertCalledDto
>
save
(
@RequestBody
AlertCalledObjsDto
alertCalledObjsDto
)
{
if
(
ValidationUtil
.
isEmpty
(
alertCalledObjsDto
)
||
ValidationUtil
.
isEmpty
(
alertCalledObjsDto
.
getAlertCalledDto
()))
{
if
(
ValidationUtil
.
isEmpty
(
alertCalledObjsDto
))
{
throw
new
BadRequest
(
"参数校验失败."
);
}
LambdaQueryWrapper
<
Elevator
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
Elevator:
:
getRescueCode
,
alertCalledObjsDto
.
getAlertCalledDto
().
getDeviceId
());
Elevator
elevator
=
iElevatorService
.
getOne
(
queryWrapper
);
if
(
elevator
==
null
)
{
throw
new
BadRequest
(
"未找到相关电梯."
);
}
ReginParams
reginParams
=
getSelectedOrgInfo
();
alertCalledObjsDto
=
iAlertCalledService
.
createAlertCalled
(
alertCalledObjsDto
,
reginParams
.
getUserModel
());
...
...
amos-boot-system-tzs/src/main/resources/application.properties
View file @
64104c0b
spring.application.name
=
TZS
-kfm
spring.application.name
=
TZS
server.servlet.context-path
=
/tzs
server.port
=
11000
spring.profiles.active
=
jd
...
...
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