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
d047debe
Commit
d047debe
authored
Jun 23, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据权限配置初始提交(增删改查)
parent
af3734f7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
TEmployeeInfo.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
+11
-6
EmployeeVO.java
...a/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeVO.java
+10
-10
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
View file @
d047debe
...
@@ -26,6 +26,8 @@ import lombok.Data;
...
@@ -26,6 +26,8 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
...
@@ -58,6 +60,7 @@ public class TEmployeeInfo extends BaseEntity {
...
@@ -58,6 +60,7 @@ public class TEmployeeInfo extends BaseEntity {
* 员工类型(字典值,0外包1派遣2代理)
* 员工类型(字典值,0外包1派遣2代理)
*/
*/
@Schema
(
description
=
"员工类型(字典值,0外包1派遣2代理)"
)
@Schema
(
description
=
"员工类型(字典值,0外包1派遣2代理)"
)
@NotNull
(
message
=
"员工类型不可为空"
)
@Max
(
value
=
1
,
message
=
"员工类型不可超过1位"
)
@Max
(
value
=
1
,
message
=
"员工类型不可超过1位"
)
private
String
empNatrue
;
private
String
empNatrue
;
...
@@ -65,14 +68,16 @@ public class TEmployeeInfo extends BaseEntity {
...
@@ -65,14 +68,16 @@ public class TEmployeeInfo extends BaseEntity {
* 员工姓名
* 员工姓名
*/
*/
@Schema
(
description
=
"员工姓名"
)
@Schema
(
description
=
"员工姓名"
)
@Max
(
value
=
20
,
message
=
"员工姓名不可超过20位"
)
@NotNull
(
message
=
"员工姓名不可为空"
)
@Size
(
max
=
20
,
message
=
"员工姓名不可超过20位"
)
private
String
empName
;
private
String
empName
;
/**
/**
* 身份证号码
* 身份证号码
*/
*/
@Schema
(
description
=
"身份证号码"
)
@Schema
(
description
=
"身份证号码"
)
@Max
(
value
=
20
,
message
=
"身份证号码不可超过20位"
)
@NotNull
(
message
=
"身份证号码不可为空"
)
@Size
(
max
=
20
,
message
=
"身份证号码不可超过20位"
)
private
String
empIdcard
;
private
String
empIdcard
;
/**
/**
...
@@ -103,7 +108,7 @@ public class TEmployeeInfo extends BaseEntity {
...
@@ -103,7 +108,7 @@ public class TEmployeeInfo extends BaseEntity {
* 年龄
* 年龄
*/
*/
@Schema
(
description
=
"年龄"
)
@Schema
(
description
=
"年龄"
)
@Max
(
value
=
11
,
message
=
"年龄不可超过11位
"
)
@Max
(
value
=
200
,
message
=
"年龄不可超过200
"
)
private
Integer
empAge
;
private
Integer
empAge
;
/**
/**
...
@@ -122,21 +127,21 @@ public class TEmployeeInfo extends BaseEntity {
...
@@ -122,21 +127,21 @@ public class TEmployeeInfo extends BaseEntity {
* 政治面貌
* 政治面貌
*/
*/
@Schema
(
description
=
"政治面貌"
)
@Schema
(
description
=
"政治面貌"
)
@
Max
(
value
=
32
,
message
=
"政治面貌不可超过32位"
)
@
Size
(
max
=
32
,
message
=
"政治面貌不可超过32位"
)
private
String
politicalStatus
;
private
String
politicalStatus
;
/**
/**
* 邮箱
* 邮箱
*/
*/
@Schema
(
description
=
"邮箱"
)
@Schema
(
description
=
"邮箱"
)
@
Max
(
value
=
32
,
message
=
"邮箱不可超过32位"
)
@
Size
(
max
=
32
,
message
=
"邮箱不可超过32位"
)
private
String
empEmail
;
private
String
empEmail
;
/**
/**
* 手机号码
* 手机号码
*/
*/
@Schema
(
description
=
"手机号码"
)
@Schema
(
description
=
"手机号码"
)
@
Max
(
value
=
11
,
message
=
"手机号码不可超过11位"
)
@
Size
(
max
=
11
,
message
=
"手机号码不可超过11位"
)
private
String
empPhone
;
private
String
empPhone
;
/**
/**
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeVO.java
View file @
d047debe
...
@@ -20,8 +20,8 @@ import com.alibaba.excel.annotation.ExcelProperty;
...
@@ -20,8 +20,8 @@ import com.alibaba.excel.annotation.ExcelProperty;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
...
@@ -48,28 +48,28 @@ public class EmployeeVO implements Serializable {
...
@@ -48,28 +48,28 @@ public class EmployeeVO implements Serializable {
* 姓名
* 姓名
*/
*/
@ExcelProperty
(
value
=
"姓名"
)
@ExcelProperty
(
value
=
"姓名"
)
@
Max
(
value
=
20
,
message
=
"姓名不可超过20位"
)
@
Size
(
max
=
20
,
message
=
"姓名不可超过20位"
)
private
String
empName
;
private
String
empName
;
/**
/**
* 身份证号
* 身份证号
*/
*/
@ExcelProperty
(
value
=
"身份证号"
)
@ExcelProperty
(
value
=
"身份证号"
)
@
Max
(
value
=
20
,
message
=
"身份证号不可超过20位"
)
@
Size
(
max
=
20
,
message
=
"身份证号不可超过20位"
)
private
String
empIdcard
;
private
String
empIdcard
;
/**
/**
* 项目编码
* 项目编码
*/
*/
@ExcelProperty
(
value
=
"项目编码"
)
@ExcelProperty
(
value
=
"项目编码"
)
@
Max
(
value
=
32
,
message
=
"项目编码不可超过32位"
)
@
Size
(
max
=
32
,
message
=
"项目编码不可超过32位"
)
private
String
deptNo
;
private
String
deptNo
;
/**
/**
* 就职岗位
* 就职岗位
*/
*/
@ExcelProperty
(
value
=
"就职岗位"
)
@ExcelProperty
(
value
=
"就职岗位"
)
@
Max
(
value
=
50
,
message
=
"就职岗位不可超过50位"
)
@
Size
(
max
=
50
,
message
=
"就职岗位不可超过50位"
)
private
String
post
;
private
String
post
;
/**
/**
...
@@ -88,35 +88,35 @@ public class EmployeeVO implements Serializable {
...
@@ -88,35 +88,35 @@ public class EmployeeVO implements Serializable {
* 婚姻状况
* 婚姻状况
*/
*/
@ExcelProperty
(
value
=
"婚姻状况"
)
@ExcelProperty
(
value
=
"婚姻状况"
)
@
Max
(
value
=
32
,
message
=
"婚姻状况不可超过32位"
)
@
Size
(
max
=
32
,
message
=
"婚姻状况不可超过32位"
)
private
String
empMarriStatus
;
private
String
empMarriStatus
;
/**
/**
* 民族
* 民族
*/
*/
@ExcelProperty
(
value
=
"民族"
)
@ExcelProperty
(
value
=
"民族"
)
@
Max
(
value
=
32
,
message
=
"民族不可超过32位"
)
@
Size
(
max
=
32
,
message
=
"民族不可超过32位"
)
private
String
empNational
;
private
String
empNational
;
/**
/**
* 政治面貌
* 政治面貌
*/
*/
@ExcelProperty
(
value
=
"政治面貌"
)
@ExcelProperty
(
value
=
"政治面貌"
)
@
Max
(
value
=
32
,
message
=
"政治面貌不可超过32位"
)
@
Size
(
max
=
32
,
message
=
"政治面貌不可超过32位"
)
private
String
politicalStatus
;
private
String
politicalStatus
;
/**
/**
* 手机号码
* 手机号码
*/
*/
@ExcelProperty
(
value
=
"手机号码"
)
@ExcelProperty
(
value
=
"手机号码"
)
@
Max
(
value
=
11
,
message
=
"手机号码不可超过11位"
)
@
Size
(
max
=
11
,
message
=
"手机号码不可超过11位"
)
private
String
empPhone
;
private
String
empPhone
;
/**
/**
* 邮箱
* 邮箱
*/
*/
@ExcelProperty
(
value
=
"邮箱"
)
@ExcelProperty
(
value
=
"邮箱"
)
@
Max
(
value
=
32
,
message
=
"邮箱不可超过32位"
)
@
Size
(
max
=
32
,
message
=
"邮箱不可超过32位"
)
private
String
empEmail
;
private
String
empEmail
;
/**
/**
...
...
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