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
c036e161
Commit
c036e161
authored
Jun 23, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员档案相关-默认草稿-非草稿不可删除
parent
d719012d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+7
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
c036e161
...
...
@@ -156,6 +156,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
public
R
<
String
>
deleteEmployee
(
String
id
)
{
TEmployeeInfo
employee
=
this
.
getById
(
id
);
if
(
employee
!=
null
)
{
if
(
employee
.
getStatus
()
!=
CommonConstants
.
ZERO_INT
)
{
return
R
.
failed
(
"非草稿状态,无法删除!"
);
}
if
(
employee
.
getContractStatus
()
!=
CommonConstants
.
ZERO_INT
)
{
return
R
.
failed
(
"合同状态非初始,无法删除!"
);
}
...
...
@@ -198,11 +201,14 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
String
id
;
List
<
TEmployeeInfo
>
canDeleteList
=
new
ArrayList
<>();
Set
<
String
>
errorMsg
;
for
(
int
i
=
0
;
i
<
idArr
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
idArr
.
length
;
i
++)
{
errorMsg
=
new
HashSet
<>();
id
=
idArr
[
i
];
employee
=
this
.
getById
(
id
);
if
(
employee
!=
null
)
{
if
(
employee
.
getStatus
()
!=
CommonConstants
.
ZERO_INT
)
{
errorMsg
.
add
(
"身份证【"
+
employee
.
getEmpIdcard
()+
"】的人员:非草稿状态,无法删除"
);
}
if
(
employee
.
getContractStatus
()
!=
CommonConstants
.
ZERO_INT
)
{
errorMsg
.
add
(
"身份证【"
+
employee
.
getEmpIdcard
()+
"】的人员:合同状态非初始,无法删除"
);
}
...
...
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