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
310231d9
Commit
310231d9
authored
Oct 18, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.0 批量更新档案
parent
78736a22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
PreUploadEmpImportTwoVo.java
...oud/plus/v1/yifu/archives/vo/PreUploadEmpImportTwoVo.java
+1
-1
PreUploadEmpImportVo.java
.../cloud/plus/v1/yifu/archives/vo/PreUploadEmpImportVo.java
+1
-1
DiyExcelImportUtil.java
...oud/plus/v1/yifu/common/core/util/DiyExcelImportUtil.java
+12
-4
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/PreUploadEmpImportTwoVo.java
View file @
310231d9
...
...
@@ -34,7 +34,7 @@ import java.util.Date;
public
class
PreUploadEmpImportTwoVo
implements
Serializable
{
// (字典值,0外包1派遣2代理)
@ExcelAttribute
(
name
=
"员工类型"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMP_NATRUE
,
maxLength
=
2
)
@ExcelAttribute
(
name
=
"员工类型"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMP_NATRUE
,
maxLength
=
4
)
private
String
empNatrue
;
@ExcelAttribute
(
name
=
"员工姓名"
,
maxLength
=
32
)
private
String
empName
;
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/PreUploadEmpImportVo.java
View file @
310231d9
...
...
@@ -36,7 +36,7 @@ import java.util.List;
public
class
PreUploadEmpImportVo
implements
Serializable
{
// (字典值,0外包1派遣2代理)
@ExcelAttribute
(
name
=
"员工类型"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMP_NATRUE
,
maxLength
=
2
)
@ExcelAttribute
(
name
=
"员工类型"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMP_NATRUE
,
maxLength
=
4
)
private
String
empNatrue
;
@ExcelAttribute
(
name
=
"员工姓名"
,
maxLength
=
32
)
private
String
empName
;
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/DiyExcelImportUtil.java
View file @
310231d9
...
...
@@ -389,8 +389,12 @@ public class DiyExcelImportUtil implements Serializable {
if
(
Common
.
isNotNull
(
attr
.
pattern
()))
{
if
(!(
"validityEnd"
.
equals
(
shuName
)
&&
"长期"
.
equals
(
c
))
&&
dateValue
!=
null
)
{
Date
startDate
=
startDateMap
.
get
(
attr
.
pattern
());
if
(
startDate
!=
null
&&
!
dateValue
.
after
(
startDate
))
{
errorFormat
.
append
(
attr
.
name
()).
append
(
"_小于起始日期;"
);
if
(
startDate
!=
null
)
{
if
(!
dateValue
.
after
(
startDate
))
{
errorFormat
.
append
(
attr
.
name
()).
append
(
"_小于起始日期;"
);
}
}
else
{
errorFormat
.
append
(
attr
.
name
()).
append
(
"_未找到起始日期,请将起始日期放在左边列;"
);
}
}
}
...
...
@@ -480,8 +484,12 @@ public class DiyExcelImportUtil implements Serializable {
if
(
Common
.
isNotNull
(
attr
.
pattern
()))
{
if
(!(
"validityEnd"
.
equals
(
shuName
)
&&
"长期"
.
equals
(
c
))
&&
dateValue
!=
null
)
{
Date
startDate
=
startDateMap
.
get
(
attr
.
pattern
());
if
(
startDate
!=
null
&&
!
dateValue
.
after
(
startDate
))
{
errorFormat
.
append
(
attr
.
name
()).
append
(
"_小于起始日期;"
);
if
(
startDate
!=
null
)
{
if
(!
dateValue
.
after
(
startDate
))
{
errorFormat
.
append
(
attr
.
name
()).
append
(
"_小于起始日期;"
);
}
}
else
{
errorFormat
.
append
(
attr
.
name
()).
append
(
"_未找到起始日期,请将起始日期放在左边列;"
);
}
}
}
...
...
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