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
9d7b51c3
Commit
9d7b51c3
authored
Feb 15, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
c88f497f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
FireTeamDto.java
.../yeejoin/amos/boot/module/common/api/dto/FireTeamDto.java
+1
-1
DataSourcesImpl.java
...mos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
+21
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FireTeamDto.java
View file @
9d7b51c3
...
...
@@ -39,7 +39,7 @@ public class FireTeamDto extends BaseDto {
@ApiModelProperty
(
value
=
"机构code"
)
private
String
companyCode
;
@ExplicitConstraint
(
indexNum
=
1
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getFireTeam"
)
//动态下拉内容
@ExplicitConstraint
(
indexNum
=
1
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getFireTeam
List
"
)
//动态下拉内容
@ExcelProperty
(
value
=
"上级队伍"
,
index
=
1
)
@ApiModelProperty
(
value
=
"父级名称"
)
private
String
parentName
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
View file @
9d7b51c3
...
...
@@ -184,6 +184,10 @@ public class DataSourcesImpl implements DataSources {
case
"getFireStationContactUser"
:
str
=
getFireStationContactUser
();
break
;
case
"getFireTeamList"
:
str
=
getFireTeamList
();
break
;
}
}
return
str
;
...
...
@@ -269,6 +273,23 @@ public class DataSourcesImpl implements DataSources {
return
str
;
}
private
String
[]
getFireTeamList
()
{
// Page<FireTeamCardDto> pageBean = new Page<>(0, Integer.MAX_VALUE);
// IPage<FireTeamCardDto> fireTeamCardDtoIPage = fireTeamService.listFireTeamByPage(pageBean,
// new FireTeamListDto());
// List<FireTeamCardDto> records = fireTeamCardDtoIPage.getRecords();
// 导出模板增加权限
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
// 权限处理
PermissionInterceptorContext
.
setDataAuthRule
(
"fire_team_info"
);
List
<
FireTeam
>
records
=
fireTeamService
.
getFireTeamList
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
());
List
<
String
>
names
=
records
.
stream
().
map
(
item
->
{
return
item
.
getName
()
+
"@"
+
item
.
getSequenceNbr
();
}).
collect
(
Collectors
.
toList
());
String
[]
str
=
names
.
toArray
(
new
String
[
names
.
size
()]);
return
str
;
}
private
String
[]
getEquipFireTeam
()
{
// Page<FireTeamCardDto> pageBean = new Page<>(0, Integer.MAX_VALUE);
// IPage<FireTeamCardDto> fireTeamCardDtoIPage = fireTeamService.listFireTeamByPage(pageBean,
...
...
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