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
d5b0fb68
Commit
d5b0fb68
authored
Jul 08, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员档案导入-更新,换代码逻辑
parent
7948bc3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
EmployeeVO.java
...a/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeVO.java
+14
-5
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeVO.java
View file @
d5b0fb68
...
@@ -17,13 +17,15 @@
...
@@ -17,13 +17,15 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.format.DateTimeFormat
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.Size
;
import
javax.validation.constraints.Size
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.
time.Local
Date
;
import
java.
util.
Date
;
/**
/**
* 项目档案表excel对应的实体
* 项目档案表excel对应的实体
...
@@ -47,6 +49,7 @@ public class EmployeeVO extends RowIndex implements Serializable {
...
@@ -47,6 +49,7 @@ public class EmployeeVO extends RowIndex implements Serializable {
* 员工姓名
* 员工姓名
*/
*/
@ExcelProperty
(
value
=
"员工姓名"
)
@ExcelProperty
(
value
=
"员工姓名"
)
@ExcelAttribute
(
name
=
"员工姓名"
,
isNotEmpty
=
true
,
maxLength
=
20
,
needExport
=
true
,
errorInfo
=
"员工姓名必填且不可超过20位"
)
@Size
(
max
=
20
,
message
=
"员工姓名不可超过20位"
)
@Size
(
max
=
20
,
message
=
"员工姓名不可超过20位"
)
private
String
empName
;
private
String
empName
;
...
@@ -54,6 +57,7 @@ public class EmployeeVO extends RowIndex implements Serializable {
...
@@ -54,6 +57,7 @@ public class EmployeeVO extends RowIndex implements Serializable {
* 身份证号
* 身份证号
*/
*/
@ExcelProperty
(
value
=
"身份证号"
)
@ExcelProperty
(
value
=
"身份证号"
)
@ExcelAttribute
(
name
=
"身份证号"
,
isNotEmpty
=
true
,
maxLength
=
20
,
needExport
=
true
,
errorInfo
=
"身份证号必填且不可超过20位"
)
@Size
(
max
=
20
,
message
=
"身份证号不可超过20位"
)
@Size
(
max
=
20
,
message
=
"身份证号不可超过20位"
)
private
String
empIdcard
;
private
String
empIdcard
;
...
@@ -61,6 +65,7 @@ public class EmployeeVO extends RowIndex implements Serializable {
...
@@ -61,6 +65,7 @@ public class EmployeeVO extends RowIndex implements Serializable {
* 项目编码
* 项目编码
*/
*/
@ExcelProperty
(
value
=
"项目编码"
)
@ExcelProperty
(
value
=
"项目编码"
)
@ExcelAttribute
(
name
=
"项目编码"
,
maxLength
=
32
,
needExport
=
true
,
errorInfo
=
"身份证号必填且不可超过20位"
)
@Size
(
max
=
32
,
message
=
"项目编码不可超过32位"
)
@Size
(
max
=
32
,
message
=
"项目编码不可超过32位"
)
private
String
deptNo
;
private
String
deptNo
;
...
@@ -74,14 +79,16 @@ public class EmployeeVO extends RowIndex implements Serializable {
...
@@ -74,14 +79,16 @@ public class EmployeeVO extends RowIndex implements Serializable {
/**
/**
* 身份证有效期起
* 身份证有效期起
*/
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelProperty
(
value
=
"身份证开始日期"
)
@ExcelProperty
(
value
=
"身份证开始日期"
)
private
Local
Date
validityStart
;
private
Date
validityStart
;
/**
/**
* 身份证有效期止
* 身份证有效期止
*/
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelProperty
(
value
=
"身份证截止日期"
)
@ExcelProperty
(
value
=
"身份证截止日期"
)
private
Local
Date
validityEnd
;
private
Date
validityEnd
;
/**
/**
* 婚姻状况
* 婚姻状况
...
@@ -187,14 +194,16 @@ public class EmployeeVO extends RowIndex implements Serializable {
...
@@ -187,14 +194,16 @@ public class EmployeeVO extends RowIndex implements Serializable {
/**
/**
* 入学时间
* 入学时间
*/
*/
@DateTimeFormat
(
"yyyy-MM-dd HH:mm:ss"
)
@ExcelProperty
(
value
=
"入学时间"
)
@ExcelProperty
(
value
=
"入学时间"
)
private
Local
Date
admissionDate
;
private
Date
admissionDate
;
/**
/**
* 毕业时间
* 毕业时间
*/
*/
@DateTimeFormat
(
"yyyy-MM-dd HH:mm:ss"
)
@ExcelProperty
(
value
=
"毕业时间"
)
@ExcelProperty
(
value
=
"毕业时间"
)
private
Local
Date
gradutionDate
;
private
Date
gradutionDate
;
/**
/**
* 备注
* 备注
...
...
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