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
46a86965
Commit
46a86965
authored
Jun 25, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
e64a8656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
AlertCalledController.java
...boot/module/jcs/biz/controller/AlertCalledController.java
+7
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertCalledController.java
View file @
46a86965
...
...
@@ -80,7 +80,7 @@ public class AlertCalledController extends BaseController {
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增警情接警记录"
,
notes
=
"新增警情接警记录"
)
@Transactional
public
ResponseModel
<
AlertCalled
Vo
>
saveAlertCalled
(
@RequestBody
AlertCalledVo
alertCalledVo
)
throws
Exception
{
public
ResponseModel
<
AlertCalled
>
saveAlertCalled
(
@RequestBody
AlertCalledVo
alertCalledVo
)
throws
Exception
{
if
(
ValidationUtil
.
isEmpty
(
alertCalledVo
)
||
ValidationUtil
.
isEmpty
(
alertCalledVo
.
getAlertCalled
()))
...
...
@@ -89,9 +89,12 @@ public class AlertCalledController extends BaseController {
JSONObject
.
parseObject
(
null
!=
redisUtils
.
get
(
buildKey
(
getToken
()))
?
redisUtils
.
get
(
buildKey
(
getToken
())).
toString
()
:
null
,
ReginParams
.
class
);
//获取当前登录人公司
alertCalledVo
.
getAlertCalled
().
setCompanyName
(
reginParams
.
getCompany
().
getCompanyName
());
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
createAlertCalled
(
alertCalledVo
));
String
name
=
reginParams
.
getCompany
().
getCompanyName
();
AlertCalled
alertCalled
=
alertCalledVo
.
getAlertCalled
();
alertCalled
.
setCompanyName
(
name
);
alertCalledVo
.
setAlertCalled
(
alertCalled
);
alertCalledVo
=
iAlertCalledService
.
createAlertCalled
(
alertCalledVo
);
return
ResponseHelper
.
buildResponse
(
alertCalledVo
.
getAlertCalled
());
}
/**
...
...
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