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
01419d12
Commit
01419d12
authored
Jun 25, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
ad75c249
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
0 deletions
+48
-0
UpProjectSocialFundVo.java
...cloud/plus/v1/yifu/archives/vo/UpProjectSocialFundVo.java
+2
-0
ErrorCodes.java
.../cloud/plus/v1/yifu/common/core/exception/ErrorCodes.java
+8
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+3
-0
TDispatchInfo.java
.../yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
+8
-0
TDispatchReduceVo.java
.../yifu/cloud/plus/v1/yifu/social/vo/TDispatchReduceVo.java
+8
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+19
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/UpProjectSocialFundVo.java
View file @
01419d12
...
@@ -44,4 +44,6 @@ public class UpProjectSocialFundVo implements Serializable {
...
@@ -44,4 +44,6 @@ public class UpProjectSocialFundVo implements Serializable {
String
fileTown
;
String
fileTown
;
// 档案地-手机号码
// 档案地-手机号码
String
mobile
;
String
mobile
;
//是否同步终止合同、减项、减档 0 是 1 否
String
changeContractAndEmployee
;
}
}
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/exception/ErrorCodes.java
View file @
01419d12
...
@@ -571,4 +571,12 @@ public interface ErrorCodes {
...
@@ -571,4 +571,12 @@ public interface ErrorCodes {
* 社保办理:该数据已处理,请勿重复操作
* 社保办理:该数据已处理,请勿重复操作
*/
*/
String
SOCIAL_IMPORT_SAME_INFO
=
"social.import.same.info"
;
String
SOCIAL_IMPORT_SAME_INFO
=
"social.import.same.info"
;
/**
* 派减异常: 存在正常的公积金,是否同步终止合同、减项、减档不能为是
*/
String
EMP_DISPATCH_FUND_NOT_EMPTY_CHANGE
=
"emp.dispatch.fund.not.empty.change"
;
/**
* 派减异常: 单减公积金,是否同步终止合同、减项、减档不能为是
*/
String
EMP_DISPATCH_FUND_NOT_EMPTY_SIGNLE
=
"emp.dispatch.fund.not.empty.signle"
;
}
}
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
01419d12
...
@@ -223,6 +223,9 @@ social_import_handle_not_empty=\u793E\u4FDD\u529E\u7406\u5931\u8D25\uFF0C\u5FC5\
...
@@ -223,6 +223,9 @@ social_import_handle_not_empty=\u793E\u4FDD\u529E\u7406\u5931\u8D25\uFF0C\u5FC5\
social.import.handle.not.exits
=
\u
65E0
\u
529E
\u7406\u6743\u9650\u6216\u
65E0
\u
53EF
\u9700\u8981\u
529E
\u7406\u7684\u
793E
\u
4FDD
\u6570\u
636E
social.import.handle.not.exits
=
\u
65E0
\u
529E
\u7406\u6743\u9650\u6216\u
65E0
\u
53EF
\u9700\u8981\u
529E
\u7406\u7684\u
793E
\u
4FDD
\u6570\u
636E
social.import.same.info
=
\u
8BE5
\u6570\u
636E
\u
5DF2
\u5904\u7406\u
FF0C
\u
8BF7
\u
52FF
\u
91CD
\u
590D
\u
64CD
\u
4F5C
social.import.same.info
=
\u
8BE5
\u6570\u
636E
\u
5DF2
\u5904\u7406\u
FF0C
\u
8BF7
\u
52FF
\u
91CD
\u
590D
\u
64CD
\u
4F5C
emp.dispatch.fund.not.empty.change
=
\u
5B58
\u5728\u
6B63
\u
5E38
\u7684\u
516C
\u
79EF
\u
91D1
\u
FF0C
\u
662F
\u5426\u
540C
\u
6B65
\u
7EC8
\u
6B62
\u5408\u
540C
\u3001\u
51CF
\u9879\u3001\u
51CF
\u6863\u
4E0D
\u
80FD
\u
4E3A
\u
662F
emp.dispatch.fund.not.empty.signle
=
\u5355\u
51CF
\u
516C
\u
79EF
\u
91D1
\u
FF0C
\u
662F
\u5426\u
540C
\u
6B65
\u
7EC8
\u
6B62
\u5408\u
540C
\u3001\u
51CF
\u9879\u3001\u
51CF
\u6863\u
4E0D
\u
80FD
\u
4E3A
\u
662F
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
View file @
01419d12
...
@@ -455,6 +455,14 @@ public class TDispatchInfo extends BaseEntity {
...
@@ -455,6 +455,14 @@ public class TDispatchInfo extends BaseEntity {
@ExcelProperty
(
"审核意见"
)
@ExcelProperty
(
"审核意见"
)
private
String
auditRemark
;
private
String
auditRemark
;
/**
* 0 是 1 否
*/
@Length
(
max
=
1
,
message
=
"是否同步终止合同、减项、减档不能超过1个字符"
)
@ExcelAttribute
(
name
=
"是否同步终止合同、减项、减档"
,
maxLength
=
1
)
@Schema
(
description
=
"是否同步终止合同、减项、减档"
,
name
=
"changeContractAndEmployee"
)
private
String
changeContractAndEmployee
;
/**
/**
* 公积金办理备注
* 公积金办理备注
*/
*/
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchReduceVo.java
View file @
01419d12
...
@@ -127,4 +127,12 @@ public class TDispatchReduceVo extends RowIndex implements Serializable {
...
@@ -127,4 +127,12 @@ public class TDispatchReduceVo extends RowIndex implements Serializable {
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"重新派单的ID"
)
@ExcelProperty
(
"重新派单的ID"
)
private
String
isAgainId
;
private
String
isAgainId
;
/**
* 0 是 1 否
*/
@Length
(
max
=
1
,
message
=
"是否同步终止合同、减项、减档不能超过1个字符"
)
@ExcelAttribute
(
name
=
"是否同步终止合同、减项、减档"
,
maxLength
=
1
,
readConverterExp
=
"0=是,1=否"
)
@Schema
(
description
=
"是否同步终止合同、减项、减档"
,
name
=
"changeContractAndEmployee"
)
private
String
changeContractAndEmployee
;
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
01419d12
...
@@ -2773,6 +2773,20 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2773,6 +2773,20 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_FUND_NOT_EMPTY
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_FUND_NOT_EMPTY
)));
continue
;
continue
;
}
}
//单减社保,判断是否有正常的公积金
if
(
Common
.
isNotNull
(
excel
.
getSocialReduceDate
())
&&
Common
.
isEmpty
(
excel
.
getFundReduceDate
())
&&
(
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getFundStatus
())
||
CommonConstants
.
EIGHT_STRING
.
equals
(
socialFund
.
getFundStatus
()))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
excel
.
getChangeContractAndEmployee
()))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_FUND_NOT_EMPTY_CHANGE
)));
continue
;
}
//单减公积金
if
(
Common
.
isNotNull
(
excel
.
getFundReduceDate
())
&&
Common
.
isEmpty
(
excel
.
getSocialReduceDate
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
excel
.
getChangeContractAndEmployee
()))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_FUND_NOT_EMPTY_SIGNLE
)));
continue
;
}
// 自定义校验
// 自定义校验
if
(
validReduce
(
errorMessageList
,
excelVOTemp
,
socialFundMap
,
socialFund
,
excel
)){
if
(
validReduce
(
errorMessageList
,
excelVOTemp
,
socialFundMap
,
socialFund
,
excel
)){
continue
;
continue
;
...
@@ -2821,6 +2835,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2821,6 +2835,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch
.
setCreateName
(
user
.
getNickname
());
dispatch
.
setCreateName
(
user
.
getNickname
());
dispatch
.
setOrganName
(
user
.
getDeptName
());
dispatch
.
setOrganName
(
user
.
getDeptName
());
}
}
dispatch
.
setChangeContractAndEmployee
(
excel
.
getChangeContractAndEmployee
());
dispatch
.
setCreateTime
(
LocalDateTime
.
now
());
dispatch
.
setCreateTime
(
LocalDateTime
.
now
());
dispatch
.
setEmpId
(
socialFund
.
getEmpId
());
dispatch
.
setEmpId
(
socialFund
.
getEmpId
());
dispatch
.
setEmpName
(
socialFund
.
getEmpName
());
dispatch
.
setEmpName
(
socialFund
.
getEmpName
());
...
@@ -3910,6 +3925,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -3910,6 +3925,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
vo
.
getSocialStatus
())
||
Common
.
isNotNull
(
vo
.
getFundStatus
())){
if
(
Common
.
isNotNull
(
vo
.
getSocialStatus
())
||
Common
.
isNotNull
(
vo
.
getFundStatus
())){
vo
.
setEmpIdCard
(
dis
.
getEmpIdcard
());
vo
.
setEmpIdCard
(
dis
.
getEmpIdcard
());
vo
.
setDepartNo
(
dis
.
getSettleDomainCode
());
vo
.
setDepartNo
(
dis
.
getSettleDomainCode
());
//派减审核通过才会处理合同档案状态
if
(
CommonConstants
.
ONE_INT
==
flag
)
{
vo
.
setChangeContractAndEmployee
(
dis
.
getChangeContractAndEmployee
());
}
R
<
Boolean
>
resUp
=
archivesDaprUtil
.
updateProjectSocialFund
(
vo
);
R
<
Boolean
>
resUp
=
archivesDaprUtil
.
updateProjectSocialFund
(
vo
);
if
(
Common
.
isEmpty
(
resUp
)
||
!(
CommonConstants
.
SUCCESS
.
intValue
()
==
resUp
.
getCode
())
||
!
resUp
.
getData
().
booleanValue
()){
if
(
Common
.
isEmpty
(
resUp
)
||
!(
CommonConstants
.
SUCCESS
.
intValue
()
==
resUp
.
getCode
())
||
!
resUp
.
getData
().
booleanValue
()){
errorList
.
add
(
new
ErrorMessage
(-
1
,
vo
.
getEmpIdCard
()+
DispatchConstants
.
DISPATCH_SYN_DOC_EXE
,
CommonConstants
.
RED
,
dis
.
getEmpName
()));
errorList
.
add
(
new
ErrorMessage
(-
1
,
vo
.
getEmpIdCard
()+
DispatchConstants
.
DISPATCH_SYN_DOC_EXE
,
CommonConstants
.
RED
,
dis
.
getEmpName
()));
...
...
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