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
4ea488e4
Commit
4ea488e4
authored
Jan 27, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
70bc9dc9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
FireStationDto.java
...ejoin/amos/boot/module/common/api/dto/FireStationDto.java
+3
-1
DataSourcesImpl.java
...mos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
+20
-0
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+7
-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/FireStationDto.java
View file @
4ea488e4
...
@@ -51,7 +51,9 @@ public class FireStationDto extends BaseDto {
...
@@ -51,7 +51,9 @@ public class FireStationDto extends BaseDto {
@ApiModelProperty
(
value
=
"负责人名称id"
)
@ApiModelProperty
(
value
=
"负责人名称id"
)
private
String
personChargeId
;
private
String
personChargeId
;
@ExcelProperty
(
value
=
"负责人名称"
,
index
=
4
)
@ExplicitConstraint
(
indexNum
=
4
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getFireStationContactUser"
)
@ExcelProperty
(
value
=
"负责人"
,
index
=
4
)
@ApiModelProperty
(
value
=
"负责人名称"
)
@ApiModelProperty
(
value
=
"负责人名称"
)
private
String
personChargeName
;
private
String
personChargeName
;
...
...
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 @
4ea488e4
...
@@ -181,6 +181,9 @@ public class DataSourcesImpl implements DataSources {
...
@@ -181,6 +181,9 @@ public class DataSourcesImpl implements DataSources {
case
"getFireTeamContactUser"
:
case
"getFireTeamContactUser"
:
str
=
getFireTeamContactUser
();
str
=
getFireTeamContactUser
();
break
;
break
;
case
"getFireStationContactUser"
:
str
=
getFireStationContactUser
();
break
;
}
}
}
}
return
str
;
return
str
;
...
@@ -214,6 +217,23 @@ public class DataSourcesImpl implements DataSources {
...
@@ -214,6 +217,23 @@ public class DataSourcesImpl implements DataSources {
return
str
;
return
str
;
}
}
private
String
[]
getFireStationContactUser
()
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
// 权限处理
PermissionInterceptorContext
.
setDataAuthRule
(
"fire_station_info"
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bizOrgCode"
,
reginParams
.
getPersonIdentity
().
getBizOrgCode
());
IPage
<
Map
<
String
,
Object
>>
mapIPage
=
iOrgUsrService
.
pagePerson
(
null
,
null
,
map
);
List
<
Map
<
String
,
Object
>>
records
=
mapIPage
.
getRecords
();
List
<
String
>
carNameList
=
Lists
.
newArrayList
();
records
.
forEach
(
result
->
{
carNameList
.
add
(
result
.
get
(
"bizOrgName"
)
+
"@"
+
result
.
get
(
"sequenceNbr"
));
});
String
[]
str
=
carNameList
.
toArray
(
new
String
[
carNameList
.
size
()]);
return
str
;
}
private
String
[]
getFireTeamContactUser
()
{
private
String
[]
getFireTeamContactUser
()
{
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
);
// 权限处理
// 权限处理
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
4ea488e4
...
@@ -800,12 +800,19 @@ public class ExcelServiceImpl {
...
@@ -800,12 +800,19 @@ public class ExcelServiceImpl {
if
(
fireStation
.
getBizCompany
()
!=
null
)
{
if
(
fireStation
.
getBizCompany
()
!=
null
)
{
String
[]
bizCompany
=
fireStation
.
getBizCompany
().
split
(
"@"
);
String
[]
bizCompany
=
fireStation
.
getBizCompany
().
split
(
"@"
);
fireStation
.
setBizCompany
(
bizCompany
[
0
]);
fireStation
.
setBizCompany
(
bizCompany
[
0
]);
fireStation
.
setBizOrgName
(
bizCompany
[
0
]);
fireStation
.
setBizCompanyId
(
Long
.
valueOf
(
bizCompany
[
1
]));
fireStation
.
setBizCompanyId
(
Long
.
valueOf
(
bizCompany
[
1
]));
OrgUsr
byId
=
orgUsrService
.
getById
(
Long
.
valueOf
(
bizCompany
[
1
]));
OrgUsr
byId
=
orgUsrService
.
getById
(
Long
.
valueOf
(
bizCompany
[
1
]));
if
(
byId
!=
null
&&
byId
.
getBizOrgCode
()
!=
null
){
if
(
byId
!=
null
&&
byId
.
getBizOrgCode
()
!=
null
){
fireStation
.
setBizCompanyCode
(
byId
.
getBizOrgCode
());
fireStation
.
setBizCompanyCode
(
byId
.
getBizOrgCode
());
fireStation
.
setBizOrgCode
(
byId
.
getBizOrgCode
());
}
}
}
}
if
(
fireStation
.
getPersonChargeName
()
!=
null
){
String
[]
personChargeName
=
fireStation
.
getPersonChargeName
().
split
(
"@"
);
fireStation
.
setPersonChargeName
(
personChargeName
[
0
]);
fireStation
.
setPersonChargeId
(
personChargeName
[
1
]);
}
excelEntityList
.
add
(
fireStation
);
excelEntityList
.
add
(
fireStation
);
});
});
fireStationService
.
saveBatch
(
excelEntityList
);
fireStationService
.
saveBatch
(
excelEntityList
);
...
...
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