Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
e48e84d1
Commit
e48e84d1
authored
Jun 30, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
4dee272f
4c0e4303
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
12 deletions
+9
-12
EmployeeExportVO.java
...yifu/cloud/plus/v1/yifu/archives/vo/EmployeeExportVO.java
+5
-5
FddContractInfoServiceImpl.java
...ifu/archives/service/impl/FddContractInfoServiceImpl.java
+0
-2
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+2
-5
TEmployeeInfoMapper.xml
...ves-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
+2
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeExportVO.java
View file @
e48e84d1
...
...
@@ -150,35 +150,35 @@ public class EmployeeExportVO extends BaseEntity {
*/
@ExcelAttribute
(
name
=
"合同状态"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
PERSONNEL_STATE
)
@ExcelProperty
(
value
=
"合同状态"
)
private
Integer
contractStatus
;
private
String
contractStatus
;
/**
* 商险状态(字典)
*/
@ExcelAttribute
(
name
=
"商险状态"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
COMMERCIAL_SATTE
)
@ExcelProperty
(
value
=
"商险状态"
)
private
Integer
insuranceStatus
;
private
String
insuranceStatus
;
/**
* 社保状态(字典)
*/
@ExcelAttribute
(
name
=
"社保状态"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
SOCIAL_ECURITY_STATE
)
@ExcelProperty
(
value
=
"社保状态"
)
private
Integer
socialStatus
;
private
String
socialStatus
;
/**
* 公积金状态(字典)
*/
@ExcelAttribute
(
name
=
"公积金状态"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
FUND_STATUS
)
@ExcelProperty
(
value
=
"公积金状态"
)
private
Integer
fundStatus
;
private
String
fundStatus
;
/**
* 近3个月发薪(0否;1是)
*/
@ExcelAttribute
(
name
=
"近3个月发薪"
,
readConverterExp
=
"0=无,1=是,2=否"
)
@ExcelProperty
(
value
=
"近3个月发薪"
)
private
Integer
salaryStatus
;
private
String
salaryStatus
;
@ExcelProperty
(
value
=
"创建人"
)
private
String
createName
;
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddContractInfoServiceImpl.java
View file @
e48e84d1
...
...
@@ -78,8 +78,6 @@ public class FddContractInfoServiceImpl extends ServiceImpl<FddContractInfoMappe
@Autowired
private
FddContractTemplateFileService
fddContractTemplateFileService
;
@Autowired
private
FddContractInfoService
fddContractInfoService
;
@Autowired
private
FddCompanyInfoService
fddCompanyInfoService
;
@Autowired
private
FddSealPersonAuthService
fddSealPersonAuthService
;
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
e48e84d1
...
...
@@ -362,12 +362,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
isTrue
=
false
;
errorMessageVO
=
this
.
getErrorMessageVO
(
i
,
CommonConstants
.
ZERO_INT
,
excel
.
getEmpName
()
,
idCard
,
errorMsg
);
}
else
{
errorMessageVO
=
this
.
getErrorMessageVO
(
i
,
CommonConstants
.
ONE_INT
,
excel
.
getEmpName
()
,
idCard
,
errorMsg
);
}
errorMessageList
.
add
(
errorMessageVO
);
}
}
// 查找档案库
Map
<
String
,
TEmployeeInfo
>
existEmpMap
=
new
HashMap
<>();
if
(!
idCardList
.
isEmpty
())
{
...
...
@@ -1375,7 +1372,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename
*=utf-8'zh_cn'"
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename
="
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
EmployeeExportVO
.
class
).
includeColumnFiledNames
(
employeeInfo
.
getExportFields
())
.
sheet
(
"人员档案"
).
doWrite
(
list
);
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
View file @
e48e84d1
...
...
@@ -534,6 +534,7 @@
a.DELETE_FLAG = '0'
<include
refid=
"employeeInfo_where"
/>
</where>
GROUP BY a.id
</select>
<!--tEmployeeInfo离职档案导出查询-->
...
...
@@ -551,6 +552,7 @@
a.DELETE_FLAG = '0'
<include
refid=
"employeeInfo_where"
/>
</where>
GROUP BY a.id
</select>
</mapper>
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