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
cb957595
Commit
cb957595
authored
Jan 24, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
21fa8f87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
3 deletions
+49
-3
EquipmentDetailController.java
...oin/equipmanage/controller/EquipmentDetailController.java
+1
-1
EquipmentDetailExcelTemplateDto.java
...join/equipmanage/dto/EquipmentDetailExcelTemplateDto.java
+2
-2
DataSourcesImpl.java
...mos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
+46
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentDetailController.java
View file @
cb957595
...
@@ -531,7 +531,7 @@ public class EquipmentDetailController extends AbstractBaseController {
...
@@ -531,7 +531,7 @@ public class EquipmentDetailController extends AbstractBaseController {
try
{
try
{
// 判读机场服务是否在线
// 判读机场服务是否在线
ExcelEnums
excelEnums
;
ExcelEnums
excelEnums
;
ResponseModel
<
String
[]>
result
=
jcsFeign
.
getEquipmentInfo
(
getAppKey
(),
getProduct
(),
getToken
(),
null
,
"getCompany"
);
ResponseModel
<
String
[]>
result
=
jcsFeign
.
getEquipmentInfo
(
getAppKey
(),
getProduct
(),
getToken
(),
null
,
"get
Equip
Company"
);
if
(
200
==
result
.
getStatus
())
{
if
(
200
==
result
.
getStatus
())
{
excelEnums
=
ExcelEnums
.
getByKey
(
ExcelEnums
.
XFZB
.
getType
());
excelEnums
=
ExcelEnums
.
getByKey
(
ExcelEnums
.
XFZB
.
getType
());
ExcelDto
excelDto
=
new
ExcelDto
(
excelEnums
.
getFileName
(),
excelEnums
.
getSheetName
(),
excelEnums
.
getClassUrl
(),
excelEnums
.
getType
());
ExcelDto
excelDto
=
new
ExcelDto
(
excelEnums
.
getFileName
(),
excelEnums
.
getSheetName
(),
excelEnums
.
getClassUrl
(),
excelEnums
.
getType
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/dto/EquipmentDetailExcelTemplateDto.java
View file @
cb957595
...
@@ -52,13 +52,13 @@ public class EquipmentDetailExcelTemplateDto implements Serializable {
...
@@ -52,13 +52,13 @@ public class EquipmentDetailExcelTemplateDto implements Serializable {
//@Excel(name = "消防系统编码", width = 30, orderNum = "10")
//@Excel(name = "消防系统编码", width = 30, orderNum = "10")
private
String
fightingSysCodes
;
private
String
fightingSysCodes
;
@ExplicitConstraint
(
indexNum
=
10
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"getFireTeam"
)
//动态下拉内容
@ExplicitConstraint
(
indexNum
=
10
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"get
Equip
FireTeam"
)
//动态下拉内容
@ExcelProperty
(
value
=
"所属队伍"
,
index
=
10
)
@ExcelProperty
(
value
=
"所属队伍"
,
index
=
10
)
//@Excel(name = "所属队伍",width = 30,orderNum = "11")
//@Excel(name = "所属队伍",width = 30,orderNum = "11")
private
String
fireTeam
;
private
String
fireTeam
;
//动态下拉内容
//动态下拉内容
@ExplicitConstraint
(
indexNum
=
11
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"getCompany"
)
//动态下拉内容
@ExplicitConstraint
(
indexNum
=
11
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"get
Equip
Company"
)
//动态下拉内容
@ExcelProperty
(
value
=
"所属单位"
,
index
=
11
)
@ExcelProperty
(
value
=
"所属单位"
,
index
=
11
)
//@Excel(name = "所属单位",width = 30,orderNum = "12")
//@Excel(name = "所属单位",width = 30,orderNum = "12")
private
String
companyName
;
private
String
companyName
;
...
...
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 @
cb957595
...
@@ -162,6 +162,15 @@ public class DataSourcesImpl implements DataSources {
...
@@ -162,6 +162,15 @@ public class DataSourcesImpl implements DataSources {
case
"getEquipDefinition"
:
case
"getEquipDefinition"
:
str
=
getEquipDefinition
();
str
=
getEquipDefinition
();
break
;
break
;
case
"getEquipCompany"
:
str
=
getEquipCompany
();
break
;
case
"getWaterCompanyList"
:
str
=
getWaterCompanyList
();
break
;
case
"getEquipFireTeam()"
:
str
=
getEquipFireTeam
();
break
;
}
}
}
}
return
str
;
return
str
;
...
@@ -195,6 +204,23 @@ public class DataSourcesImpl implements DataSources {
...
@@ -195,6 +204,23 @@ public class DataSourcesImpl implements DataSources {
return
str
;
return
str
;
}
}
private
String
[]
getEquipFireTeam
()
{
// 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_equip_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
[]
getBizCompanyList
()
throws
Exception
{
private
String
[]
getBizCompanyList
()
throws
Exception
{
// 导出模板增加权限
// 导出模板增加权限
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
...
@@ -417,6 +443,26 @@ public class DataSourcesImpl implements DataSources {
...
@@ -417,6 +443,26 @@ public class DataSourcesImpl implements DataSources {
return
str
;
return
str
;
}
}
/**
* 消防队员模板获取所属部门
*
* @return
*/
private
String
[]
getEquipCompany
()
{
//List<OrgMenuDto> menus = OrgUsrServiceImpl.buildTreeParallel(iOrgUsrService.selectCompanyDepartmentMsg());
// 导出模板增加权限
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
// 权限处理
PermissionInterceptorContext
.
setDataAuthRule
(
"fire_equip_info"
);
List
<
OrgUsr
>
menus
=
iOrgUsrService
.
companyTreeByUserAndTypeNoTree
(
reginParams
,
null
);
List
<
String
>
names
=
menus
.
stream
().
map
(
item
->
{
return
item
.
getBizOrgName
()
+
"@"
+
item
.
getSequenceNbr
()
+
"@"
+
item
.
getBizOrgCode
();
}).
collect
(
Collectors
.
toList
());
String
[]
str
=
names
.
toArray
(
new
String
[
names
.
size
()]);
return
str
;
}
/**
/**
...
...
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