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
cae2c098
Commit
cae2c098
authored
Oct 09, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
bc24b35a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
19 deletions
+32
-19
FireExpertsDto.java
...ejoin/amos/boot/module/common/api/dto/FireExpertsDto.java
+22
-19
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+10
-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/FireExpertsDto.java
View file @
cae2c098
...
...
@@ -63,48 +63,51 @@ public class FireExpertsDto extends BaseDto {
@ApiModelProperty
(
value
=
"政治面貌"
)
private
String
politicalOutlook
;
@ExplicitConstraint
(
indexNum
=
8
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
//固定下拉内容
@ExcelProperty
(
value
=
"籍贯"
,
index
=
8
)
// @ExplicitConstraint(indexNum = 8, sourceClass = CommonExplicitConstraint.class, method = "getCitys") //固定下拉内容
@ExcelIgnore
// @ExcelProperty(value = "籍贯", index = 8)
@ApiModelProperty
(
value
=
"籍贯"
)
private
String
nativePlace
;
// @ExplicitConstraint(indexNum = 9, sourceClass = RoleNameExplicitConstraint.class, method = "getAdministrativeDivisions") //固定下拉内容
@ExcelProperty
(
value
=
"籍贯/户口所在地详细地址"
,
index
=
9
)
@ExplicitConstraint
(
indexNum
=
8
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
//固定下拉内容
@ExcelProperty
(
value
=
"籍贯/户口所在地详细地址"
,
index
=
8
)
@ApiModelProperty
(
value
=
"籍贯/户口所在地详细地址"
)
private
String
nativePlaceVal
;
@ExplicitConstraint
(
indexNum
=
10
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
//
@ExplicitConstraint(indexNum = 10,sourceClass = CommonExplicitConstraint.class,method ="getCitys")
@ApiModelProperty
(
value
=
"现居住地"
)
@ExcelProperty
(
value
=
"现居住地"
,
index
=
10
)
@ExcelIgnore
//@ExcelProperty(value = "现居住地", index = 10)
private
String
residence
;
@ExplicitConstraint
(
indexNum
=
11
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
@ExcelProperty
(
value
=
"现居住地"
,
index
=
1
1
)
// @ExcelIgnore
//
@ExplicitConstraint(indexNum =11,sourceClass = CommonExplicitConstraint.class,method ="getCitys")
@ExcelProperty
(
value
=
"现居住地"
,
index
=
1
0
)
@ApiModelProperty
(
value
=
"居住地详情"
)
private
String
residenceDetails
;
@ExcelProperty
(
value
=
"现居住地详细地址"
,
index
=
12
)
@ExplicitConstraint
(
indexNum
=
9
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getCitys"
)
@ExcelProperty
(
value
=
"现居住地"
,
index
=
9
)
@ApiModelProperty
(
value
=
"现居住地详细地址"
)
private
String
residenceDetailVal
;
@ExcelProperty
(
value
=
"办公电话"
,
index
=
1
3
)
@ExcelProperty
(
value
=
"办公电话"
,
index
=
1
1
)
@ApiModelProperty
(
value
=
"办公电话"
)
private
String
officePhone
;
@ExcelProperty
(
value
=
"移动电话"
,
index
=
1
4
)
@ExcelProperty
(
value
=
"移动电话"
,
index
=
1
2
)
@ApiModelProperty
(
value
=
"移动电话"
)
private
String
mobilePhone
;
@ExplicitConstraint
(
type
=
"XLLX"
,
indexNum
=
1
5
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"最高学历"
,
index
=
1
5
)
@ExplicitConstraint
(
type
=
"XLLX"
,
indexNum
=
1
3
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"最高学历"
,
index
=
1
3
)
@ApiModelProperty
(
value
=
"最高学历"
)
private
String
highestEducation
;
@ExplicitConstraint
(
type
=
"GWMC"
,
indexNum
=
1
6
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"岗位名称"
,
index
=
1
6
)
@ExplicitConstraint
(
type
=
"GWMC"
,
indexNum
=
1
4
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"岗位名称"
,
index
=
1
4
)
@ApiModelProperty
(
value
=
"岗位名称"
)
private
String
jobs
;
...
...
@@ -112,8 +115,8 @@ public class FireExpertsDto extends BaseDto {
@ApiModelProperty
(
value
=
"岗位名称code"
)
private
String
jobsCode
;
@ExplicitConstraint
(
type
=
"ZJLY"
,
indexNum
=
1
7
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"消防专家领域"
,
index
=
1
7
)
@ExplicitConstraint
(
type
=
"ZJLY"
,
indexNum
=
1
5
,
sourceClass
=
CommonExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"消防专家领域"
,
index
=
1
5
)
@ApiModelProperty
(
value
=
"消防专家领域"
)
private
String
expert
;
...
...
@@ -147,7 +150,7 @@ public class FireExpertsDto extends BaseDto {
@ApiModelProperty
(
value
=
"消防机构name"
)
private
Long
fireTeamName
;
@ExcelProperty
(
value
=
"备注"
,
index
=
1
8
)
@ExcelProperty
(
value
=
"备注"
,
index
=
1
6
)
@ApiModelProperty
(
value
=
"备注"
)
private
String
note
;
...
...
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 @
cae2c098
...
...
@@ -875,6 +875,16 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
String
[]
highestEducation
=
fireExperts
.
getHighestEducation
().
split
(
"@"
);
fireExperts
.
setHighestEducation
(
highestEducation
[
1
]);
// BUG 2942 by litw 2021年9月18日 导入学历编号
}
if
(
fireExperts
.
getNativePlaceVal
()
!=
null
){
String
[]
nativePlaceVal
=
fireExperts
.
getNativePlaceVal
().
split
(
"@"
);
fireExperts
.
setNativePlace
(
nativePlaceVal
[
1
]);
fireExperts
.
setNativePlaceVal
(
nativePlaceVal
[
0
]);
}
if
(
fireExperts
.
getResidenceDetailVal
()
!=
null
){
String
[]
residenceDetailVal
=
fireExperts
.
getResidenceDetailVal
().
split
(
"@"
);
fireExperts
.
setResidence
(
residenceDetailVal
[
1
]);
fireExperts
.
setResidenceDetailVal
(
residenceDetailVal
[
0
]);
}
excelEntityList
.
add
(
fireExperts
);
});
fireExpertsServiceImpl
.
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