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
2fe2d71d
Commit
2fe2d71d
authored
Oct 27, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
98d11200
cee6160e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
75 additions
and
20 deletions
+75
-20
EmployeeXProjectVO.java
...fu/cloud/plus/v1/yifu/archives/vo/EmployeeXProjectVO.java
+1
-1
TEmployeeContractInfoController.java
.../archives/controller/TEmployeeContractInfoController.java
+1
-0
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+1
-1
ErrorCodes.java
.../cloud/plus/v1/yifu/common/core/exception/ErrorCodes.java
+5
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+2
-0
TDispatchAuditExportVo.java
.../cloud/plus/v1/yifu/social/vo/TDispatchAuditExportVo.java
+24
-7
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+35
-7
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+4
-2
TSocialFundInfoMapper.xml
...l-biz/src/main/resources/mapper/TSocialFundInfoMapper.xml
+2
-2
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeXProjectVO.java
View file @
2fe2d71d
...
...
@@ -71,7 +71,7 @@ public class EmployeeXProjectVO extends RowIndex implements Serializable {
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"减项原因"
)
@NotNull
(
message
=
"减项原因不能为空"
)
@ExcelAttribute
(
name
=
"减项原因"
,
isNotEmpty
=
true
,
errorInfo
=
"减项原因不能为空"
,
maxLength
=
100
,
isDataId
=
true
,
dataType
=
"
reduce_project
_reason"
)
@ExcelAttribute
(
name
=
"减项原因"
,
isNotEmpty
=
true
,
errorInfo
=
"减项原因不能为空"
,
maxLength
=
100
,
isDataId
=
true
,
dataType
=
"
social_reduce
_reason"
)
private
String
leaveReason
;
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeContractInfoController.java
View file @
2fe2d71d
...
...
@@ -223,6 +223,7 @@ public class TEmployeeContractInfoController {
if
(
Common
.
isNotNull
(
tEmployeeContractInfo
.
getAuditRemark
())
&&
tEmployeeContractInfo
.
getAuditRemark
().
length
()
>
200
)
{
return
R
.
failed
(
"审核说明不可超过200字!"
);
}
tEmployeeContractInfo
.
setAuditRemark
(
Common
.
isBlankToNullString
(
tEmployeeContractInfo
.
getReason
())
+
tEmployeeContractInfo
.
getAuditRemark
());
return
tEmployeeContractInfoService
.
auditContract
(
tEmployeeContractInfo
);
}
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
2fe2d71d
...
...
@@ -600,7 +600,7 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
if
(
dictMap
==
null
)
{
return
R
.
failed
(
"获取字典失败!!"
);
}
empReduceMap
=
dictMap
.
get
(
"
reduce_project
_reason"
);
empReduceMap
=
dictMap
.
get
(
"
social_reduce
_reason"
);
}
String
leaveReason
=
""
;
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/exception/ErrorCodes.java
View file @
2fe2d71d
...
...
@@ -424,6 +424,11 @@ public interface ErrorCodes {
* 派增异常: 自定义缴纳养老基数不可为空
*/
String
EMP_DISPATCH_SOCIAL_DIY_NOT_EMPTY
=
"emp.dispatch.social.diy.not.empty"
;
/**
* 派增异常: 自定义缴纳养老基数或养老起缴日期不可为空
*/
String
EMP_DISPATCH_SOCIAL_DIY_MEDICAL_NOT_EMPTY
=
"emp.dispatch.social.diy.medical_not.empty"
;
/**
* 派增异常: 对应项目编码的项目档案已减项,请去项目档案处复项
*/
...
...
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
2fe2d71d
...
...
@@ -155,6 +155,8 @@ socialinfo.list.num.large=\u5F53\u524D\u793E\u4FDD\u5BFC\u5165\u961F\u5217\u4E0D
emp.dispatch.social.diy.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
81EA
\u
5B9A
\u
4E49
\u
7F34
\u
7EB3
\u
517B
\u8001\u
57FA
\u6570\u
4E0D
\u
53EF
\u
4E3A
\u
7A7A
emp.dispatch.social.diy.medical_not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
81EA
\u
5B9A
\u
4E49
\u
7F34
\u
7EB3
\u
517B
\u8001\u
57FA
\u6570\u6216\u
517B
\u8001\u
8D77
\u
7F34
\u
65E5
\u
671F
\u
4E0D
\u
53EF
\u
4E3A
\u
7A7A
emp.dispatch.emp.project.not.used
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
5BF9
\u
5E94
\u9879\u
76EE
\u
7F16
\u7801\u7684\u9879\u
76EE
\u6863\u6848\u
5DF2
\u
51CF
\u9879\u
FF0C
\u
8BF7
\u
53BB
\u9879\u
76EE
\u6863\u6848\u5904\u
590D
\u9879
emp.dispatch.emp.not.used
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
5BF9
\u
5E94
\u
8EAB
\u
4EFD
\u
8BC1
\u7684\u
4EBA
\u5458\u6863\u6848\u
5DF2
\u
51CF
\u6863
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchAuditExportVo.java
View file @
2fe2d71d
...
...
@@ -17,6 +17,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.format.DateTimeFormat
;
import
com.alibaba.excel.annotation.write.style.HeadFontStyle
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
...
...
@@ -51,12 +52,6 @@ public class TDispatchAuditExportVo {
@ExcelProperty
(
"身份证号"
)
private
String
empIdcard
;
@ExcelAttribute
(
name
=
"员工类型"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMP_NATRUE
)
@Schema
(
description
=
"员工类型"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"员工类型"
)
private
String
empType
;
@ExcelAttribute
(
name
=
"客户名称"
,
maxLength
=
50
)
@Schema
(
description
=
"客户名称"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
@@ -90,6 +85,7 @@ public class TDispatchAuditExportVo {
/**
* 合同起始时间
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"合同起始时间"
,
isDate
=
true
)
@Schema
(
description
=
"合同起始时间"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
@@ -107,6 +103,7 @@ public class TDispatchAuditExportVo {
/**
* 合同到期时间
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"合同到期时间"
,
isDate
=
true
)
@Schema
(
description
=
"合同到期时间"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
@@ -163,6 +160,7 @@ public class TDispatchAuditExportVo {
/**
* 离职日期
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"离职日期"
,
isDate
=
true
)
@Schema
(
description
=
"离职日期"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
@@ -176,10 +174,28 @@ public class TDispatchAuditExportVo {
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"减少原因"
)
private
String
reduceReason
;
/**
* 社保起缴日期
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"社保起缴日期"
,
isDate
=
true
)
@Schema
(
description
=
"社保起缴日期"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"社保起缴日期"
)
private
Date
socialStartDate
;
/**
* 公积金起缴日期
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"公积金起缴日期"
,
isDate
=
true
)
@Schema
(
description
=
"公积金起缴日期"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"公积金起缴日期"
)
private
Date
providentStart
;
/**
* 社保停缴日期
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"社保停缴日期"
,
isDate
=
true
)
@Schema
(
description
=
"社保停缴日期"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
@@ -189,6 +205,7 @@ public class TDispatchAuditExportVo {
/**
* 公积金停缴日期
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"公积金停缴日期"
,
isDate
=
true
)
@Schema
(
description
=
"公积金停缴日期"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
2fe2d71d
...
...
@@ -1104,6 +1104,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch
.
setEmpName
(
excel
.
getEmpName
());
dispatch
.
setEmpNational
(
excel
.
getEmpNational
());
dispatch
.
setEmpType
(
excel
.
getEmpType
());
dispatch
.
setTryPeriod
(
excel
.
getTryPeriod
());
dispatch
.
setEmpMobile
(
excel
.
getEmpMobile
());
dispatch
.
setType
(
CommonConstants
.
ZERO_STRING
);
dispatch
.
setCurrentOperator
(
user
.
getNickname
());
...
...
@@ -2130,13 +2131,35 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
return
true
;
}
// 非自定义的 基数 起缴日期不可空
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())
&&
!
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
&&
(
Common
.
isEmpty
(
excel
.
getRecordBase
())
||
Common
.
isEmpty
(
excel
.
getPensionStart
())
))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_NOT_EMPTY
)));
return
true
;
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())){
if
(!
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
&&
(
Common
.
isEmpty
(
excel
.
getRecordBase
())
||
Common
.
isEmpty
(
excel
.
getPensionStart
()))
)
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_NOT_EMPTY
)));
return
true
;
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
&&
(
Common
.
isNullOrZero
(
excel
.
getPensionCardinal
())
||
Common
.
isEmpty
(
excel
.
getPensionStart
()))
&&
!(
Common
.
isEmpty
(
excel
.
getPensionStart
())
&&
Common
.
isNotNull
(
excel
.
getWorkInjuryStart
())
&&
Common
.
isEmpty
(
excel
.
getMedicalStart
())
&&
Common
.
isEmpty
(
excel
.
getBirthStart
())
&&
Common
.
isEmpty
(
excel
.
getUnemployStart
())
&&
Common
.
isEmpty
(
excel
.
getBigailmentStart
())
&&
Common
.
isNullOrZero
(
excel
.
getPensionCardinal
())
&&
Common
.
isNullOrZero
(
excel
.
getMedicalCardinal
())
&&
Common
.
isNullOrZero
(
excel
.
getBirthCardinal
())
&&
Common
.
isNullOrZero
(
excel
.
getUnemploymentCardinal
())
&&
!
Common
.
isNullOrZero
(
excel
.
getWorkInjuryCardinal
())
&&
Common
.
isNullOrZero
(
excel
.
getBigailmentCardinal
())
)
){
//养老基数为空 兼职工伤除外
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_DIY_MEDICAL_NOT_EMPTY
)));
return
true
;
}
}
// 兼职工伤 的起缴日期不可为空
if
(
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
...
...
@@ -2615,6 +2638,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialFund
.
setFundStatus
(
CommonConstants
.
FIVE_STRING
);
socialFund
.
setFundReduceStatus
(
CommonConstants
.
ZERO_STRING
);
}
if
(
Common
.
isNotNull
(
temp
.
toString
())){
temp
.
deleteCharAt
(
temp
.
length
()-
1
);
}
dispatch
.
setDispatchItem
(
temp
.
toString
());
dispatch
.
setBelongUnitName
(
socialFund
.
getUnitName
());
dispatch
.
setBelongUnit
(
socialFund
.
getUnitId
());
...
...
@@ -2631,6 +2657,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch
.
setFileProvince
(
empVo
.
getFileProvince
());
dispatch
.
setFileCity
(
empVo
.
getFileCity
());
dispatch
.
setFileTown
(
empVo
.
getFileTown
());
dispatch
.
setContractName
(
empVo
.
getContractName
());
dispatch
.
setContractSubName
(
empVo
.
getContractSubName
());
}
return
dispatch
;
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
2fe2d71d
...
...
@@ -148,7 +148,6 @@
<resultMap
id=
"exportAuditMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchAuditExportVo"
>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"empIdcard"
column=
"EMP_IDCARD"
/>
<result
property=
"empType"
column=
"EMP_TYPE"
/>
<result
property=
"belongUnitName"
column=
"BELONG_UNIT_NAME"
/>
<result
property=
"settleDomainName"
column=
"SETTLE_DOMAIN_NAME"
/>
<result
property=
"type"
column=
"TYPE"
/>
...
...
@@ -178,7 +177,9 @@
<result
property=
"personalUnemploymentCardinal"
column=
"PERSONAL_UNEMPLOYMENT_CARDINAL"
/>
<result
property=
"personalBigailmentMoney"
column=
"PERSONAL_BIGAILMENT_MONEY"
/>
<result
property=
"unitBigailmentMoney"
column=
"UNIT_BIGAILMENT_MONEY"
/>
<result
property=
"socialStartDate"
column=
"SOCIAL_START_DATE"
/>
<result
property=
"providentStart"
column=
"PROVIDENT_START"
/>
<result
property=
"unitProvidengCardinal"
column=
"UNIT_PROVIDENG_CARDINAL"
/>
<result
property=
"personalProvidentCardinal"
column=
"PERSONAL_PROVIDENT_CARDINAL"
/>
<result
property=
"unitProvidentPer"
column=
"UNIT_PROVIDENT_PER"
/>
...
...
@@ -613,7 +614,6 @@
select
a.EMP_NAME,
a.EMP_IDCARD,
a.EMP_TYPE,
a.BELONG_UNIT_NAME,
a.SETTLE_DOMAIN_NAME,
a.TYPE,
...
...
@@ -630,6 +630,7 @@
a.FUND_REDUCE_DATE,
a.LEAVE_DATE,
a.REDUCE_REASON,
b.SOCIAL_START_DATE,
b.PAYMENT_TYPE,
b.RECORD_BASE,
b.UNIT_PENSION_CARDINAL,
...
...
@@ -643,6 +644,7 @@
b.PERSONAL_BIGAILMENT_MONEY,
b.UNIT_BIGAILMENT_MONEY,
c.UNIT_PROVIDENG_CARDINAL,
c.PROVIDENT_START,
c.PERSONAL_PROVIDENT_CARDINAL,
c.UNIT_PROVIDENT_PER,
c.PERSONAL_PROVIDENT_PER
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocialFundInfoMapper.xml
View file @
2fe2d71d
...
...
@@ -174,8 +174,8 @@
<result
property=
"idCardTown"
column=
"ID_CARD_TOWN"
/>
<result
property=
"idCardAddress"
column=
"ID_CARD_ADDRESS"
/>
<result
property=
"fileProvince"
column=
"FILE_PROVINCE"
/>
<result
property=
"fileCity"
column=
"FILE_
_
CITY"
/>
<result
property=
"fileTown"
column=
"FILE_
_
TOWN"
/>
<result
property=
"fileCity"
column=
"FILE_CITY"
/>
<result
property=
"fileTown"
column=
"FILE_TOWN"
/>
<result
property=
"post"
column=
"POST"
/>
<result
property=
"tryPeriod"
column=
"TRY_PERIOD"
/>
<result
property=
"workingHours"
column=
"WORKING_HOURS"
/>
...
...
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