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
fac52be1
Commit
fac52be1
authored
Oct 09, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派单优化
parent
5bf7b6f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
10 deletions
+23
-10
ErrorCodes.java
....cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
+11
-1
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+7
-1
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+5
-8
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
fac52be1
...
@@ -461,7 +461,7 @@ public interface ErrorCodes {
...
@@ -461,7 +461,7 @@ public interface ErrorCodes {
*/
*/
String
EMP_DISPATCH_FUND_DATE_LIMIT_ERROR
=
"emp.dispatch.fund.start.is.error"
;
String
EMP_DISPATCH_FUND_DATE_LIMIT_ERROR
=
"emp.dispatch.fund.start.is.error"
;
/**
/**
* 派增异常: 合同
相关信息
不可为空
* 派增异常: 合同
起缴时间、合同类型、签订期限必填
不可为空
*/
*/
String
EMP_DISPATCH_EMP_CONTRACT_NOT_EMPTY
=
"emp.dispatch.emp.contract.not.empty"
;
String
EMP_DISPATCH_EMP_CONTRACT_NOT_EMPTY
=
"emp.dispatch.emp.contract.not.empty"
;
/**
/**
...
@@ -506,4 +506,14 @@ public interface ErrorCodes {
...
@@ -506,4 +506,14 @@ public interface ErrorCodes {
String
EMP_DISPATCH_SOCIAL_PAYMENT_TYPE_NOT_SAME
=
"emp.dispatch.social.payment.type.same"
;
String
EMP_DISPATCH_SOCIAL_PAYMENT_TYPE_NOT_SAME
=
"emp.dispatch.social.payment.type.same"
;
String
ARCHIVES_IMPORT_EMP_TRUE
=
"archives.import.emp.true"
;
String
ARCHIVES_IMPORT_EMP_TRUE
=
"archives.import.emp.true"
;
/**
* 派增异常: 固定期限合同截止日期不可为空
**/
String
EMP_DISPATCH_EMP_CONTRACT_END_NOT_EMPTY
=
"emp.dispatch.emp.contract.end.not.empty"
;
/**
* 派增异常: 合同类型为其他时业务细分不可为空
**/
String
EMP_DISPATCH_EMP_CONTRACT_SUB_NAME_NOT_EMPTY
=
"emp.dispatch.emp.contract.sub.name.not.empty"
;
}
}
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
fac52be1
...
@@ -173,7 +173,7 @@ emp.dispatch.social.start.is.error=\u6D3E\u589E\u5F02\u5E38\uFF1A \u793E\u4FDD\u
...
@@ -173,7 +173,7 @@ emp.dispatch.social.start.is.error=\u6D3E\u589E\u5F02\u5E38\uFF1A \u793E\u4FDD\u
emp.dispatch.fund.start.is.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
516C
\u
79EF
\u
91D1
\u
8D77
\u
7F34
\u6708\u
4EFD
\u9700\u
4E3A
\u
53EF
\u8865\u
7F34
\u6708\u
4EFD
\u
FF0C
\u
8BF7
\u
786E
\u
8BA4
\u
540E
\u
64CD
\u
4F5C
\u
FF01
emp.dispatch.fund.start.is.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
516C
\u
79EF
\u
91D1
\u
8D77
\u
7F34
\u6708\u
4EFD
\u9700\u
4E3A
\u
53EF
\u8865\u
7F34
\u6708\u
4EFD
\u
FF0C
\u
8BF7
\u
786E
\u
8BA4
\u
540E
\u
64CD
\u
4F5C
\u
FF01
emp.dispatch.emp.contract.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u5408\u
540C
\u
76F8
\u5173\u
4FE1
\u
606F
\u
4E0D
\u
53EF
\u
4E3A
\u
7A7A
emp.dispatch.emp.contract.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u5408\u
540C
\u
8D77
\u
7F34
\u
65F6
\u
95F4
\u3001\u5408\u
540C
\u
7C7B
\u
578B
\u3001\u
7B7E
\u
8BA2
\u
671F
\u9650\u
5FC5
\u
586B
\u
4E0D
\u
53EF
\u
4E3A
\u
7A7A
emp.dispatch.emp.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
7CFB
\u
7EDF
\u
65E0
\u
5BF9
\u
5E94
\u9879\u
76EE
\u6863\u6848\u
FF0C
\u6863\u6848\u
53CA
\u5408\u
540C
\u
76F8
\u5173\u
5B57
\u
6BB5
\u
5FC5
\u
586B
emp.dispatch.emp.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
7CFB
\u
7EDF
\u
65E0
\u
5BF9
\u
5E94
\u9879\u
76EE
\u6863\u6848\u
FF0C
\u6863\u6848\u
53CA
\u5408\u
540C
\u
76F8
\u5173\u
5B57
\u
6BB5
\u
5FC5
\u
586B
...
@@ -197,6 +197,12 @@ emp.dispatch.social.payment.type.same=\u6D3E\u589E\u5F02\u5E38\uFF1A \u5931\u8D2
...
@@ -197,6 +197,12 @@ emp.dispatch.social.payment.type.same=\u6D3E\u589E\u5F02\u5E38\uFF1A \u5931\u8D2
archives.import.emp.true
=
\u
4FE1
\u
606F
\u6821\u
9A8C
\u
901A
\u
8FC7
\u
FF0C
\u
4F46
\u5176\u
4ED6
\u
884C
\u
5B58
\u5728\u
95EE
\u9898\u6570\u
636E
\u
FF0C
\u
8BF7
\u
8C03
\u6574\u
540E
\u
FF0C
\u
7EDF
\u
4E00
\u
51CF
\u6863
archives.import.emp.true
=
\u
4FE1
\u
606F
\u6821\u
9A8C
\u
901A
\u
8FC7
\u
FF0C
\u
4F46
\u5176\u
4ED6
\u
884C
\u
5B58
\u5728\u
95EE
\u9898\u6570\u
636E
\u
FF0C
\u
8BF7
\u
8C03
\u6574\u
540E
\u
FF0C
\u
7EDF
\u
4E00
\u
51CF
\u6863
emp.dispatch.emp.contract.end.not.empty
=
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
56FA
\u
5B9A
\u
671F
\u9650\u5408\u
540C
\u
622A
\u
6B62
\u
65E5
\u
671F
\u
4E0D
\u
53EF
\u
4E3A
\u
7A7A
emp.dispatch.emp.contract.sub.name.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u5408\u
540C
\u
7C7B
\u
578B
\u
4E3A
\u5176\u
4ED6
\u
65F6
\u
4E1A
\u
52A1
\u
7EC6
\u5206\u
4E0D
\u
53EF
\u
4E3A
\u
7A7A
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
fac52be1
...
@@ -1966,7 +1966,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1966,7 +1966,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_NOT_EMPTY
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_NOT_EMPTY
)));
return
true
;
return
true
;
}
}
if
(
Common
.
is
Empty
(
excel
.
getContractName
())
&&
validContractInfo
(
errorMessageList
,
excel
)){
if
(
Common
.
is
NotNull
(
excel
.
getContractName
())
&&
validContractInfo
(
errorMessageList
,
excel
)){
return
true
;
return
true
;
}
}
// 如果没有人员档案和项目档案的时候校验身份证和手机号码
// 如果没有人员档案和项目档案的时候校验身份证和手机号码
...
@@ -2044,7 +2044,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2044,7 +2044,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
&&
Common
.
isNotNull
(
excel
.
getContractName
())
&&
(
&&
Common
.
isNotNull
(
excel
.
getContractName
())
&&
(
Common
.
isEmpty
(
excel
.
getContractType
())
Common
.
isEmpty
(
excel
.
getContractType
())
||
Common
.
isEmpty
(
excel
.
getContractStart
())
||
Common
.
isEmpty
(
excel
.
getContractStart
())
||
Common
.
isEmpty
(
excel
.
getContractEnd
())
))
{
))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_CONTRACT_NOT_EMPTY
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_CONTRACT_NOT_EMPTY
)));
return
true
;
return
true
;
...
@@ -2152,16 +2151,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2152,16 +2151,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
return
true
;
return
true
;
}
}
// 业务细分(合同类型为其他时必填)
// 业务细分(合同类型为其他时必填)
if
(
excel
.
getContractName
().
equals
(
CommonConstants
.
TWENTY_ONE_STRING
)
if
(
excel
.
getContractName
().
equals
(
"其他"
)
&&
Common
.
isEmpty
(
excel
.
getContractSubName
())){
&&
Common
.
isEmpty
(
excel
.
getContractSubName
())){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_CONTRACT_NOT_EMPTY
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_CONTRACT_
SUB_NAME_
NOT_EMPTY
)));
return
true
;
return
true
;
}
}
// 签订期限:固定期限、已完成一定工作任务为期限 合同期限非必填,合同开始时间、合同到期时间都必填
// 签订期限:固定期限、已完成一定工作任务为期限 合同期限非必填,合同开始时间、合同到期时间都必填
if
((
excel
.
getContractType
().
equals
(
CommonConstants
.
ONE_STRING
)
if
(
excel
.
getContractType
().
equals
(
CommonConstants
.
ONE_STRING
)
&&
Common
.
isEmpty
(
excel
.
getContractEnd
())){
||
excel
.
getContractType
().
equals
(
CommonConstants
.
ZERO_STRING
))
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_CONTRACT_END_NOT_EMPTY
)));
&&
Common
.
isEmpty
(
excel
.
getContractEnd
())){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_CONTRACT_NOT_EMPTY
)));
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
...
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