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
4274ade0
Commit
4274ade0
authored
Nov 23, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防力量接口拓展
parent
540c0de4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
BigScreenController.java
...s/boot/module/jcs/biz/controller/BigScreenController.java
+11
-2
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/BigScreenController.java
View file @
4274ade0
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.common.api.service.IFirefightersService;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -21,6 +22,10 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
@RestController
@Api
(
tags
=
"一张图大屏Api"
)
@RequestMapping
(
value
=
"/bigScreen"
)
...
...
@@ -43,7 +48,7 @@ public class BigScreenController extends BaseController {
@GetMapping
(
value
=
"/getUserInfo"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"应急预案页面消防力量人员信息"
,
notes
=
"应急预案页面消防力量人员信息"
)
public
ResponseModel
getUserInfoByYJYA
()
{
public
ResponseModel
getUserInfoByYJYA
(
@ApiParam
(
value
=
"3小概览用-- 0-运行人员 1-驻站消防队 【为空时为应急预案页面使用】"
)
@RequestParam
(
required
=
false
)
Integer
fireTeamType
)
{
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
bizOrgCode
=
null
;
if
(
null
!=
reginParam
)
{
...
...
@@ -54,6 +59,10 @@ public class BigScreenController extends BaseController {
}
else
{
return
CommonResponseUtil
.
success
(
null
);
}
return
CommonResponseUtil
.
success
(
iFirefightersService
.
getUserInfoByYJYA
(
bizOrgCode
));
List
<
Map
<
String
,
Object
>>
userInfoByYJYA
=
iFirefightersService
.
getUserInfoByYJYA
(
bizOrgCode
);
if
(!
Objects
.
isNull
(
fireTeamType
))
{
return
CommonResponseUtil
.
success
(
userInfoByYJYA
.
get
(
fireTeamType
));
}
return
CommonResponseUtil
.
success
(
userInfoByYJYA
);
}
}
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