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
9cf069b3
Commit
9cf069b3
authored
Sep 28, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化合同
parent
894a17f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
EmployeeConstants.java
...ud/plus/v1/yifu/archives/constants/EmployeeConstants.java
+1
-1
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/constants/EmployeeConstants.java
View file @
9cf069b3
...
...
@@ -38,7 +38,7 @@ public class EmployeeConstants {
public
static
final
String
OTHERS
=
"其他"
;
public
static
final
String
SUB_MUST
=
"业务细分必填"
;
public
static
final
String
CONTRACT_END_MUST
=
"合同到期时间必填"
;
public
static
final
String
CONTRACT_TYPE_
TWO
=
"2
"
;
public
static
final
String
CONTRACT_TYPE_
ONE
=
"1
"
;
public
static
final
String
CONTRACT_NO_IN_USE
=
"暂无可操作的合同"
;
public
static
final
String
CONTRACT_NAME_EMPTY
=
"合同类型不能为空"
;
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
9cf069b3
...
...
@@ -843,7 +843,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
insert
.
setContractEnd
(
contractInfo
.
getContractEnd
());
}
}
else
{
if
(
!
EmployeeConstants
.
CONTRACT_TYPE_TWO
.
equals
(
insert
.
getContractType
())
if
(
EmployeeConstants
.
CONTRACT_TYPE_ONE
.
equals
(
insert
.
getContractType
())
&&
Common
.
isEmpty
(
insert
.
getContractEnd
()))
{
errorInfo
.
append
(
EmployeeConstants
.
CONTRACT_END_MUST
);
}
...
...
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