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
f6ae143b
Commit
f6ae143b
authored
Jul 06, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.5' into MVP1.5.5
parents
23b15ffd
b624902a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
152 additions
and
114 deletions
+152
-114
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+13
-1
Common.java
.../com/yifu/cloud/plus/v1/yifu/common/core/util/Common.java
+1
-1
TDispatchInfo.java
.../yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
+4
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+9
-9
TForecastLibraryServiceImpl.java
...yifu/social/service/impl/TForecastLibraryServiceImpl.java
+123
-97
TSocialFundInfoServiceImpl.java
.../yifu/social/service/impl/TSocialFundInfoServiceImpl.java
+1
-6
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+1
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
f6ae143b
...
@@ -1351,6 +1351,10 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -1351,6 +1351,10 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
if
(
ll
.
getRemark
()
!=
null
)
{
if
(
ll
.
getRemark
()
!=
null
)
{
if
(!
ll
.
getRemark
().
contains
(
"派增审核"
))
{
if
(!
ll
.
getRemark
().
contains
(
"派增审核"
))
{
if
(
ll
.
getAuditStatus
().
contains
(
"审核不通过"
)
&&
null
!=
ll
.
getRemark
())
{
if
(
ll
.
getAuditStatus
().
contains
(
"审核不通过"
)
&&
null
!=
ll
.
getRemark
())
{
if
(!
ll
.
getRemark
().
contains
(
"-"
)&&!
ll
.
getRemark
().
contains
(
":"
)){
ll
.
setNoPassReason
(
ll
.
getRemark
());
ll
.
setRemark
(
""
);
}
if
(
ll
.
getRemark
().
contains
(
":"
))
{
if
(
ll
.
getRemark
().
contains
(
":"
))
{
String
a
=
ll
.
getRemark
().
substring
(
0
,
ll
.
getRemark
().
indexOf
(
":"
,
1
));
String
a
=
ll
.
getRemark
().
substring
(
0
,
ll
.
getRemark
().
indexOf
(
":"
,
1
));
String
b
=
ll
.
getRemark
().
substring
(
ll
.
getRemark
().
indexOf
(
":"
,
1
)
+
1
);
String
b
=
ll
.
getRemark
().
substring
(
ll
.
getRemark
().
indexOf
(
":"
,
1
)
+
1
);
...
@@ -1360,6 +1364,15 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -1360,6 +1364,15 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
}
}
}
}
if
(
ll
.
getRemark
().
contains
(
"派增审核"
))
{
if
(
ll
.
getRemark
().
contains
(
"派增审核"
))
{
if
(
ll
.
getRemark
().
contains
(
":"
)&&!
ll
.
getRemark
().
contains
(
":"
)){
if
(
ll
.
getRemark
().
split
(
":"
).
length
==
2
){
int
indexOne
=
ll
.
getRemark
().
indexOf
(
":"
);
String
after1
=
ll
.
getRemark
().
substring
(
indexOne
+
1
);
ll
.
setNoPassReason
(
after1
);
ll
.
setRemark
(
""
);
}
}
if
(
ll
.
getRemark
().
contains
(
"-"
))
{
if
(
ll
.
getRemark
().
contains
(
"-"
))
{
String
c
=
ll
.
getRemark
().
substring
(
0
,
ll
.
getRemark
().
indexOf
(
"-"
,
1
));
String
c
=
ll
.
getRemark
().
substring
(
0
,
ll
.
getRemark
().
indexOf
(
"-"
,
1
));
String
d
=
ll
.
getRemark
().
substring
(
ll
.
getRemark
().
indexOf
(
"-"
,
1
)
+
1
);
String
d
=
ll
.
getRemark
().
substring
(
ll
.
getRemark
().
indexOf
(
"-"
,
1
)
+
1
);
...
@@ -1368,7 +1381,6 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -1368,7 +1381,6 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
}
}
}
}
}
}
}
}
writeSheet
=
EasyExcel
.
writerSheet
(
"员工合同"
+
index
).
build
();
writeSheet
=
EasyExcel
.
writerSheet
(
"员工合同"
+
index
).
build
();
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/Common.java
View file @
f6ae143b
...
@@ -523,7 +523,7 @@ public class Common {
...
@@ -523,7 +523,7 @@ public class Common {
* @param null
* @param null
* @return
* @return
**/
**/
private
static
final
String
insuranceSuffixList
=
"pdf|png|jpg|doc|docx|xls|xlsx|rar|zip|txt"
;
private
static
final
String
insuranceSuffixList
=
"pdf|png|jpg|doc|docx|xls|xlsx|rar|zip|txt
|jpeg
"
;
/**
/**
* 判断是否为允许的上传文件类型,true表示允许
* 判断是否为允许的上传文件类型,true表示允许
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
View file @
f6ae143b
...
@@ -769,5 +769,9 @@ public class TDispatchInfo extends BaseEntity {
...
@@ -769,5 +769,9 @@ public class TDispatchInfo extends BaseEntity {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
socialFailureType
;
private
String
socialFailureType
;
@ExcelAttribute
(
name
=
"contactAddress"
)
@Schema
(
description
=
"通信地址"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"通信地址"
)
private
String
contactAddress
;
private
String
contactAddress
;
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
f6ae143b
...
@@ -695,7 +695,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -695,7 +695,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch
=
dispatchMap
.
get
(
excel
.
getEmpIdcard
());
dispatch
=
dispatchMap
.
get
(
excel
.
getEmpIdcard
());
if
(
Common
.
isNotNull
(
dispatch
)){
if
(
Common
.
isNotNull
(
dispatch
)){
if
(
Common
.
isNotNull
(
empVo
))
{
if
(
Common
.
isNotNull
(
empVo
))
{
if
(
Common
.
isNotNull
(
empVo
.
getContactAddress
())
&&
!
excel
.
getContactAddress
().
equals
(
empVo
.
getContactAddress
()))
{
if
(
Common
.
isNotNull
(
empVo
.
getContactAddress
())
&&
Common
.
isNotNull
(
excel
.
getContactAddress
())
&&
!
excel
.
getContactAddress
().
equals
(
empVo
.
getContactAddress
()))
{
dispatch
.
setContactAddress
(
empVo
.
getContactAddress
());
dispatch
.
setContactAddress
(
empVo
.
getContactAddress
());
}
}
}
else
{
}
else
{
...
@@ -1767,8 +1767,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1767,8 +1767,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
}
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
social
.
getIsIllness
())){
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
social
.
getIsIllness
())){
social
.
setInsuranceBigailment
(
socialSet
.
getInsuranceBigailment
());
social
.
setInsuranceBigailment
(
socialSet
.
getInsuranceBigailment
());
social
.
setPersonalBigailmentCardinal
(
ServiceUtil
.
ifNull
(
social
.
getPersonalBigailmentCardinal
(),
excel
.
get
Pension
Cardinal
()));
social
.
setPersonalBigailmentCardinal
(
ServiceUtil
.
ifNull
(
social
.
getPersonalBigailmentCardinal
(),
excel
.
get
Bigailment
Cardinal
()));
social
.
setUnitBigailmentCardinal
(
ServiceUtil
.
ifNull
(
social
.
getUnitBigailmentCardinal
(),
excel
.
get
Pension
Cardinal
()));
social
.
setUnitBigailmentCardinal
(
ServiceUtil
.
ifNull
(
social
.
getUnitBigailmentCardinal
(),
excel
.
get
Bigailment
Cardinal
()));
social
.
setUnitBigailmentPer
(
socialSet
.
getPayCompanyPro
());
social
.
setUnitBigailmentPer
(
socialSet
.
getPayCompanyPro
());
social
.
setPersonalBigailmentPer
(
socialSet
.
getPayPersonalPro
());
social
.
setPersonalBigailmentPer
(
socialSet
.
getPayPersonalPro
());
social
.
setBigailmentHandle
(
CommonConstants
.
ZERO_STRING
);
social
.
setBigailmentHandle
(
CommonConstants
.
ZERO_STRING
);
...
@@ -1821,7 +1821,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1821,7 +1821,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//收取大病按比例
//收取大病按比例
social
.
setUnitBigailmentMoney
(
BigDecimalUtils
.
safeMultiply
(
social
.
getUnitBigailmentCardinal
(),
socialSet
.
getPayCompanyPro
(),
BigDecimal
.
valueOf
(
CommonConstants
.
ONE_OF_PERCENT
.
doubleValue
())));
social
.
setUnitBigailmentMoney
(
BigDecimalUtils
.
safeMultiply
(
social
.
getUnitBigailmentCardinal
(),
socialSet
.
getPayCompanyPro
(),
BigDecimal
.
valueOf
(
CommonConstants
.
ONE_OF_PERCENT
.
doubleValue
())));
social
.
setPersonalBigailmentMoney
(
BigDecimalUtils
.
safeMultiply
(
social
.
getPersonalBigailmentCardinal
(),
socialSet
.
getPayPersonalPro
(),
BigDecimal
.
valueOf
(
CommonConstants
.
ONE_OF_PERCENT
.
doubleValue
())));
social
.
setPersonalBigailmentMoney
(
BigDecimalUtils
.
safeMultiply
(
social
.
getPersonalBigailmentCardinal
(),
socialSet
.
getPayPersonalPro
(),
BigDecimal
.
valueOf
(
CommonConstants
.
ONE_OF_PERCENT
.
doubleValue
())));
}
}
}
}
}
}
...
@@ -2173,7 +2172,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2173,7 +2172,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
emp
.
setIdProvince
(
Common
.
isNotNullToInt
(
excel
.
getIdCardProvince
()));
emp
.
setIdProvince
(
Common
.
isNotNullToInt
(
excel
.
getIdCardProvince
()));
emp
.
setIdCity
(
Common
.
isNotNullToInt
(
excel
.
getIdCardCity
()));
emp
.
setIdCity
(
Common
.
isNotNullToInt
(
excel
.
getIdCardCity
()));
emp
.
setIdTown
(
Common
.
isNotNullToInt
(
excel
.
getIdCardTown
()));
emp
.
setIdTown
(
Common
.
isNotNullToInt
(
excel
.
getIdCardTown
()));
emp
.
setProjectNum
(
CommonConstants
.
ONE_INT
);
//
emp.setProjectNum(CommonConstants.ONE_INT);
emp
.
setDeptNo
(
excel
.
getSettleDomainCode
());
emp
.
setDeptNo
(
excel
.
getSettleDomainCode
());
emp
.
setPost
(
excel
.
getPost
());
emp
.
setPost
(
excel
.
getPost
());
emp
.
setDeptId
(
excel
.
getSettleDomainId
());
emp
.
setDeptId
(
excel
.
getSettleDomainId
());
...
@@ -2651,7 +2650,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2651,7 +2650,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
BIR_DISPATCH_SOCIAL_LIMIT_ERROR
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
BIR_DISPATCH_SOCIAL_LIMIT_ERROR
)));
return
true
;
return
true
;
}
}
if
(
Common
.
isNotNull
(
excel
.
getBigailmentCardinal
())
if
(
Common
.
isNotNull
(
excel
.
getBigailmentCardinal
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
socialSet
.
getCollectType
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
socialSet
.
getValueType
())
&&
(
excel
.
getBigailmentCardinal
().
compareTo
(
socialSet
.
getUpBig
())
>
CommonConstants
.
ZERO_INT
&&
(
excel
.
getBigailmentCardinal
().
compareTo
(
socialSet
.
getUpBig
())
>
CommonConstants
.
ZERO_INT
||
excel
.
getBigailmentCardinal
().
compareTo
(
socialSet
.
getLowerBig
())<
CommonConstants
.
ZERO_INT
))
{
||
excel
.
getBigailmentCardinal
().
compareTo
(
socialSet
.
getLowerBig
())<
CommonConstants
.
ZERO_INT
))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
DB_DISPATCH_SOCIAL_LIMIT_ERROR
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
DB_DISPATCH_SOCIAL_LIMIT_ERROR
)));
...
@@ -2716,7 +2716,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2716,7 +2716,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialSet
.
getLowerInjury
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
socialSet
.
getLowerInjury
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
socialSet
.
getLowerBirth
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
socialSet
.
getLowerBirth
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
socialSet
.
getLowerBig
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
))
||
socialSet
.
getLowerBig
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
))
||
(
CommonConstants
.
ONE
_STRING
.
equals
(
excel
.
getPaymentType
())
(
CommonConstants
.
TWO
_STRING
.
equals
(
excel
.
getPaymentType
())
&&
(
socialSet
.
getUpPersion
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
&&
(
socialSet
.
getUpPersion
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
socialSet
.
getUpMedical
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
socialSet
.
getUpMedical
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
socialSet
.
getUpUnemployment
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
socialSet
.
getUpUnemployment
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
...
@@ -4082,11 +4082,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -4082,11 +4082,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
UpProjectSocialFundVo
vo
=
new
UpProjectSocialFundVo
();
UpProjectSocialFundVo
vo
=
new
UpProjectSocialFundVo
();
// 社保状态 社保状态(字典): 0 无社保 1 处理中 2.部分购买 3.正常 4.已派减
// 社保状态 社保状态(字典): 0 无社保 1 处理中 2.部分购买 3.正常 4.已派减
initSocialFundStatus
(
socialInfo
,
providentFund
,
vo
,
sf
);
initSocialFundStatus
(
socialInfo
,
providentFund
,
vo
,
sf
);
vo
.
setEmpIdCard
(
dis
.
getEmpIdcard
());
vo
.
setDepartNo
(
dis
.
getSettleDomainCode
());
if
(
Common
.
isNotNull
(
dis
.
getChangeContractAndEmployee
())
if
(
Common
.
isNotNull
(
dis
.
getChangeContractAndEmployee
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
dis
.
getChangeContractAndEmployee
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
dis
.
getChangeContractAndEmployee
())
&&
(
Common
.
isNotNull
(
vo
.
getSocialStatus
())
||
Common
.
isNotNull
(
vo
.
getFundStatus
())))
{
&&
(
Common
.
isNotNull
(
vo
.
getSocialStatus
())
||
Common
.
isNotNull
(
vo
.
getFundStatus
())))
{
vo
.
setEmpIdCard
(
dis
.
getEmpIdcard
());
vo
.
setDepartNo
(
dis
.
getSettleDomainCode
());
vo
.
setChangeContractAndEmployee
(
dis
.
getChangeContractAndEmployee
());
vo
.
setChangeContractAndEmployee
(
dis
.
getChangeContractAndEmployee
());
vo
.
setUserId
(
user
.
getId
());
vo
.
setUserId
(
user
.
getId
());
vo
.
setUserName
(
user
.
getNickname
());
vo
.
setUserName
(
user
.
getNickname
());
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TForecastLibraryServiceImpl.java
View file @
f6ae143b
...
@@ -1147,89 +1147,6 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
...
@@ -1147,89 +1147,6 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
}
}
}
}
private
void
changeSocialInfoByBase
(
TSocialFundInfo
social
,
SysBaseSetInfo
socialSet
)
{
if
(
Common
.
isNotNull
(
socialSet
))
{
social
.
setCanOverpay
(
socialSet
.
getCanOverpay
());
social
.
setSocialHousehold
(
socialSet
.
getDepartId
());
social
.
setCollectMoth
(
socialSet
.
getCollectMoth
());
social
.
setCollectType
(
socialSet
.
getCollectType
());
social
.
setHaveThisMonth
(
socialSet
.
getHaveThisMonth
());
social
.
setInsuranceBigailment
(
socialSet
.
getInsuranceBigailment
());
social
.
setInsuranceBirth
(
socialSet
.
getInsuranceBirth
());
social
.
setInsuranceInjury
(
socialSet
.
getInsuranceInjury
());
social
.
setInsuranceMedical
(
socialSet
.
getInsuranceMedical
());
social
.
setInsurancePension
(
socialSet
.
getInsurancePension
());
social
.
setInsuranceUnemployment
(
socialSet
.
getInsuranceUnemployment
());
social
.
setLatestCardinality
(
socialSet
.
getInsuranceIsLatestCardinality
());
social
.
setIsChargePersonal
(
socialSet
.
getIsChargePersonal
());
social
.
setIsIllness
(
socialSet
.
getIsIllness
());
social
.
setOverpayNumber
(
socialSet
.
getOverpayNumber
());
social
.
setValueType
(
socialSet
.
getValueType
());
social
.
setLowerLimit
(
socialSet
.
getLowerLimit
());
social
.
setUpperLimit
(
socialSet
.
getUpperLimit
());
// 比例初始化
// 按最低
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
social
.
getPaymentType
()))
{
this
.
setBaseInfo
(
social
,
socialSet
.
getLowerLimit
());
}
else
if
(
CommonConstants
.
TWO_STRING
.
equals
(
social
.
getPaymentType
()))
{
//按最高
this
.
setBaseInfo
(
social
,
socialSet
.
getUpperLimit
());
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
social
.
getPaymentType
()))
{
//自定义
// 五险
if
(
social
.
getUnitPensionCardinal
()
!=
null
)
{
if
(
social
.
getUnitPensionCardinal
().
compareTo
(
socialSet
.
getLowerLimit
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalPensionCardinal
(
socialSet
.
getLowerLimit
());
social
.
setUnitPensionCardinal
(
socialSet
.
getLowerLimit
());
}
else
if
(
social
.
getUnitPensionCardinal
().
compareTo
(
socialSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalPensionCardinal
(
socialSet
.
getUpperLimit
());
social
.
setUnitPensionCardinal
(
socialSet
.
getUpperLimit
());
}
if
(
social
.
getUnitMedicalCardinal
().
compareTo
(
socialSet
.
getLowerLimit
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalMedicalCardinal
(
socialSet
.
getLowerLimit
());
social
.
setUnitMedicalCardinal
(
socialSet
.
getLowerLimit
());
}
else
if
(
social
.
getUnitMedicalCardinal
().
compareTo
(
socialSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalMedicalCardinal
(
socialSet
.
getUpperLimit
());
social
.
setUnitMedicalCardinal
(
socialSet
.
getUpperLimit
());
}
if
(
social
.
getUnitUnemploymentCardinal
().
compareTo
(
socialSet
.
getLowerLimit
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalUnemploymentCardinal
(
socialSet
.
getLowerLimit
());
social
.
setUnitUnemploymentCardinal
(
socialSet
.
getLowerLimit
());
}
else
if
(
social
.
getUnitUnemploymentCardinal
().
compareTo
(
socialSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalUnemploymentCardinal
(
socialSet
.
getUpperLimit
());
social
.
setUnitUnemploymentCardinal
(
socialSet
.
getUpperLimit
());
}
if
(
social
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSet
.
getLowerLimit
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getLowerLimit
());
}
else
if
(
social
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getUpperLimit
());
}
if
(
social
.
getUnitBirthCardinal
().
compareTo
(
socialSet
.
getLowerLimit
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitBirthCardinal
(
socialSet
.
getLowerLimit
());
}
else
if
(
social
.
getUnitBirthCardinal
().
compareTo
(
socialSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitBirthCardinal
(
socialSet
.
getUpperLimit
());
}
if
(
social
.
getUnitBigailmentCardinal
().
compareTo
(
socialSet
.
getLowerLimit
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalBigailmentCardinal
(
socialSet
.
getLowerLimit
());
social
.
setUnitBigailmentCardinal
(
socialSet
.
getLowerLimit
());
}
else
if
(
social
.
getUnitBigailmentCardinal
().
compareTo
(
socialSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalBigailmentCardinal
(
socialSet
.
getUpperLimit
());
social
.
setUnitBigailmentCardinal
(
socialSet
.
getUpperLimit
());
}
}
else
if
(
social
.
getUnitWorkInjuryCardinal
()
!=
null
)
{
// 兼职工伤
if
(
social
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSet
.
getLowerLimit
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getLowerLimit
());
}
else
if
(
social
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getUpperLimit
());
}
}
}
// 比例与金额
this
.
setProAndMoney
(
social
,
socialSet
);
}
}
/**
/**
* 初始化公积金预估信息
* 初始化公积金预估信息
*
*
...
@@ -1293,30 +1210,138 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
...
@@ -1293,30 +1210,138 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
saveLibraryMap
.
put
(
mapKeyStr
,
lib
);
saveLibraryMap
.
put
(
mapKeyStr
,
lib
);
}
}
private
void
changeSocialInfoByBase
(
TSocialFundInfo
social
,
SysBaseSetInfo
socialSet
)
{
if
(
Common
.
isNotNull
(
socialSet
))
{
social
.
setCanOverpay
(
socialSet
.
getCanOverpay
());
social
.
setSocialHousehold
(
socialSet
.
getDepartId
());
social
.
setCollectMoth
(
socialSet
.
getCollectMoth
());
social
.
setCollectType
(
socialSet
.
getCollectType
());
social
.
setHaveThisMonth
(
socialSet
.
getHaveThisMonth
());
social
.
setInsuranceBigailment
(
socialSet
.
getInsuranceBigailment
());
social
.
setInsuranceBirth
(
socialSet
.
getInsuranceBirth
());
social
.
setInsuranceInjury
(
socialSet
.
getInsuranceInjury
());
social
.
setInsuranceMedical
(
socialSet
.
getInsuranceMedical
());
social
.
setInsurancePension
(
socialSet
.
getInsurancePension
());
social
.
setInsuranceUnemployment
(
socialSet
.
getInsuranceUnemployment
());
social
.
setLatestCardinality
(
socialSet
.
getInsuranceIsLatestCardinality
());
social
.
setIsChargePersonal
(
socialSet
.
getIsChargePersonal
());
social
.
setIsIllness
(
socialSet
.
getIsIllness
());
social
.
setOverpayNumber
(
socialSet
.
getOverpayNumber
());
social
.
setValueType
(
socialSet
.
getValueType
());
social
.
setLowerLimit
(
socialSet
.
getLowerLimit
());
social
.
setUpperLimit
(
socialSet
.
getUpperLimit
());
// 比例初始化
// 按最低
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
social
.
getPaymentType
()))
{
this
.
setBaseInfo
(
social
,
socialSet
);
}
else
if
(
CommonConstants
.
TWO_STRING
.
equals
(
social
.
getPaymentType
()))
{
//按最高
this
.
setBaseInfo1
(
social
,
socialSet
);
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
social
.
getPaymentType
()))
{
//自定义
// 五险
if
(
social
.
getUnitPensionCardinal
()
!=
null
)
{
if
(
social
.
getUnitPensionCardinal
().
compareTo
(
socialSet
.
getLowerPersion
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalPensionCardinal
(
socialSet
.
getLowerPersion
());
social
.
setUnitPensionCardinal
(
socialSet
.
getLowerPersion
());
}
else
if
(
social
.
getUnitPensionCardinal
().
compareTo
(
socialSet
.
getUpPersion
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalPensionCardinal
(
socialSet
.
getUpPersion
());
social
.
setUnitPensionCardinal
(
socialSet
.
getUpPersion
());
}
if
(
social
.
getUnitMedicalCardinal
().
compareTo
(
socialSet
.
getLowerMedical
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalMedicalCardinal
(
socialSet
.
getLowerMedical
());
social
.
setUnitMedicalCardinal
(
socialSet
.
getLowerMedical
());
}
else
if
(
social
.
getUnitMedicalCardinal
().
compareTo
(
socialSet
.
getUpMedical
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalMedicalCardinal
(
socialSet
.
getUpMedical
());
social
.
setUnitMedicalCardinal
(
socialSet
.
getUpMedical
());
}
if
(
social
.
getUnitUnemploymentCardinal
().
compareTo
(
socialSet
.
getLowerUnemployment
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalUnemploymentCardinal
(
socialSet
.
getLowerUnemployment
());
social
.
setUnitUnemploymentCardinal
(
socialSet
.
getLowerUnemployment
());
}
else
if
(
social
.
getUnitUnemploymentCardinal
().
compareTo
(
socialSet
.
getUpUnemployment
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalUnemploymentCardinal
(
socialSet
.
getUpUnemployment
());
social
.
setUnitUnemploymentCardinal
(
socialSet
.
getUpUnemployment
());
}
if
(
social
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSet
.
getLowerInjury
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getLowerInjury
());
}
else
if
(
social
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSet
.
getUpInjury
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getUpInjury
());
}
if
(
social
.
getUnitBirthCardinal
().
compareTo
(
socialSet
.
getLowerBirth
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitBirthCardinal
(
socialSet
.
getLowerBirth
());
}
else
if
(
social
.
getUnitBirthCardinal
().
compareTo
(
socialSet
.
getUpBirth
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitBirthCardinal
(
socialSet
.
getUpBirth
());
}
if
(
social
.
getUnitBigailmentCardinal
().
compareTo
(
socialSet
.
getLowerBig
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalBigailmentCardinal
(
socialSet
.
getLowerBig
());
social
.
setUnitBigailmentCardinal
(
socialSet
.
getLowerBig
());
}
else
if
(
social
.
getUnitBigailmentCardinal
().
compareTo
(
socialSet
.
getUpBig
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setPersonalBigailmentCardinal
(
socialSet
.
getUpBig
());
social
.
setUnitBigailmentCardinal
(
socialSet
.
getUpBig
());
}
}
else
if
(
social
.
getUnitWorkInjuryCardinal
()
!=
null
)
{
// 兼职工伤
if
(
social
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSet
.
getLowerInjury
())
<
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getLowerInjury
());
}
else
if
(
social
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSet
.
getUpInjury
())
>
CommonConstants
.
ZERO_INT
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getUpInjury
());
}
}
}
// 比例与金额
this
.
setProAndMoney
(
social
,
socialSet
);
}
}
/**
/**
* @param social
* @param social
* @param
limitBase
* @param
socialSet
* @Description: 塞基数
* @Description: 塞基数
* @Author: hgw
* @Author: hgw
* @Date: 2022/7/27 14:55
* @Date: 2022/7/27 14:55
* @return: void
* @return: void
**/
**/
private
void
setBaseInfo
(
TSocialFundInfo
social
,
BigDecimal
limitBase
)
{
private
void
setBaseInfo
(
TSocialFundInfo
social
,
SysBaseSetInfo
socialSet
)
{
if
(
social
.
getUnitPensionCardinal
()
!=
null
)
{
if
(
social
.
getUnitPensionCardinal
()
!=
null
)
{
// 基数
// 基数
social
.
setPersonalPensionCardinal
(
limitBase
);
social
.
setPersonalPensionCardinal
(
socialSet
.
getLowerPersion
());
social
.
setPersonalMedicalCardinal
(
limitBase
);
social
.
setPersonalMedicalCardinal
(
socialSet
.
getLowerMedical
());
social
.
setPersonalUnemploymentCardinal
(
limitBase
);
social
.
setPersonalUnemploymentCardinal
(
socialSet
.
getLowerUnemployment
());
social
.
setPersonalBigailmentCardinal
(
limitBase
);
social
.
setPersonalBigailmentCardinal
(
socialSet
.
getLowerBig
());
social
.
setUnitPensionCardinal
(
limitBase
);
social
.
setUnitPensionCardinal
(
socialSet
.
getLowerPersion
());
social
.
setUnitMedicalCardinal
(
limitBase
);
social
.
setUnitMedicalCardinal
(
socialSet
.
getLowerMedical
());
social
.
setUnitUnemploymentCardinal
(
limitBase
);
social
.
setUnitUnemploymentCardinal
(
socialSet
.
getLowerUnemployment
());
social
.
setUnitWorkInjuryCardinal
(
limitBase
);
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getLowerInjury
());
social
.
setUnitBigailmentCardinal
(
limitBase
);
social
.
setUnitBigailmentCardinal
(
socialSet
.
getLowerBig
());
social
.
setUnitBirthCardinal
(
limitBase
);
social
.
setUnitBirthCardinal
(
socialSet
.
getLowerBirth
());
}
else
if
(
social
.
getUnitWorkInjuryCardinal
()
!=
null
)
{
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getLowerInjury
());
}
}
/**
* @param social
* @param socialSet
* @Description: 塞基数
* @Author: hgw
* @Date: 2022/7/27 14:55
* @return: void
**/
private
void
setBaseInfo1
(
TSocialFundInfo
social
,
SysBaseSetInfo
socialSet
)
{
if
(
social
.
getUnitPensionCardinal
()
!=
null
)
{
// 基数
social
.
setPersonalPensionCardinal
(
socialSet
.
getUpPersion
());
social
.
setPersonalMedicalCardinal
(
socialSet
.
getUpMedical
());
social
.
setPersonalUnemploymentCardinal
(
socialSet
.
getUpUnemployment
());
social
.
setPersonalBigailmentCardinal
(
socialSet
.
getUpBig
());
social
.
setUnitPensionCardinal
(
socialSet
.
getUpPersion
());
social
.
setUnitMedicalCardinal
(
socialSet
.
getUpMedical
());
social
.
setUnitUnemploymentCardinal
(
socialSet
.
getUpUnemployment
());
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getUpInjury
());
social
.
setUnitBigailmentCardinal
(
socialSet
.
getUpBig
());
social
.
setUnitBirthCardinal
(
socialSet
.
getUpBirth
());
}
else
if
(
social
.
getUnitWorkInjuryCardinal
()
!=
null
)
{
}
else
if
(
social
.
getUnitWorkInjuryCardinal
()
!=
null
)
{
social
.
setUnitWorkInjuryCardinal
(
limitBase
);
social
.
setUnitWorkInjuryCardinal
(
socialSet
.
getUpInjury
()
);
}
}
}
}
...
@@ -1429,7 +1454,8 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
...
@@ -1429,7 +1454,8 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
);
);
for
(
TSocialFundInfo
socialFundInfo
:
socialFundInfoList
)
{
for
(
TSocialFundInfo
socialFundInfo
:
socialFundInfoList
)
{
// 2022-8-9 15:26:20 新增逻辑:从不收取变为收取
// 2022-8-9 15:26:20 新增逻辑:从不收取变为收取
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
sysBaseSetInfo
.
getIsIllness
())
&&
socialFundInfo
.
getBigailmentStart
()
==
null
)
{
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
sysBaseSetInfo
.
getIsIllness
())
&&
socialFundInfo
.
getBigailmentStart
()
==
null
&&
Common
.
isNotNull
(
socialFundInfo
.
getUnitPensionCardinal
()))
{
startDate
=
DateUtil
.
stringToDate
(
sysBaseSetInfo
.
getDoMonth
(),
"yyyyMM"
);
startDate
=
DateUtil
.
stringToDate
(
sysBaseSetInfo
.
getDoMonth
(),
"yyyyMM"
);
socialFundInfo
.
setBigailmentHandle
(
CommonConstants
.
ONE_STRING
);
socialFundInfo
.
setBigailmentHandle
(
CommonConstants
.
ONE_STRING
);
socialFundInfo
.
setBigailmentStart
(
startDate
);
socialFundInfo
.
setBigailmentStart
(
startDate
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFundInfoServiceImpl.java
View file @
f6ae143b
...
@@ -374,6 +374,7 @@ public class TSocialFundInfoServiceImpl extends ServiceImpl<TSocialFundInfoMappe
...
@@ -374,6 +374,7 @@ public class TSocialFundInfoServiceImpl extends ServiceImpl<TSocialFundInfoMappe
&&
(
excel
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSetInfo
.
getUpInjury
())
>
CommonConstants
.
ZERO_INT
&&
(
excel
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSetInfo
.
getUpInjury
())
>
CommonConstants
.
ZERO_INT
||
excel
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSetInfo
.
getLowerInjury
())
<
CommonConstants
.
ZERO_INT
))
{
||
excel
.
getUnitWorkInjuryCardinal
().
compareTo
(
socialSetInfo
.
getLowerInjury
())
<
CommonConstants
.
ZERO_INT
))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
GS_DISPATCH_SOCIAL_LIMIT_ERROR
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
GS_DISPATCH_SOCIAL_LIMIT_ERROR
)));
continue
;
}
}
if
(
Common
.
isNotNull
(
excel
.
getUnitBirthCardinal
())
if
(
Common
.
isNotNull
(
excel
.
getUnitBirthCardinal
())
&&
(
excel
.
getUnitBirthCardinal
().
compareTo
(
socialSetInfo
.
getUpBirth
())
>
CommonConstants
.
ZERO_INT
&&
(
excel
.
getUnitBirthCardinal
().
compareTo
(
socialSetInfo
.
getUpBirth
())
>
CommonConstants
.
ZERO_INT
...
@@ -381,12 +382,6 @@ public class TSocialFundInfoServiceImpl extends ServiceImpl<TSocialFundInfoMappe
...
@@ -381,12 +382,6 @@ public class TSocialFundInfoServiceImpl extends ServiceImpl<TSocialFundInfoMappe
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
BIR_DISPATCH_SOCIAL_LIMIT_ERROR
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
BIR_DISPATCH_SOCIAL_LIMIT_ERROR
)));
continue
;
continue
;
}
}
if
(
Common
.
isNotNull
(
excel
.
getUnitBigailmentMoney
())
&&
(
excel
.
getUnitBigailmentMoney
().
compareTo
(
socialSetInfo
.
getUpBig
())
>
CommonConstants
.
ZERO_INT
||
excel
.
getUnitBigailmentMoney
().
compareTo
(
socialSetInfo
.
getLowerBig
())
<
CommonConstants
.
ZERO_INT
))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
DB_DISPATCH_SOCIAL_LIMIT_ERROR
)));
continue
;
}
}
}
// 初始化社保调基信息
// 初始化社保调基信息
initSocialHistory
(
history
,
socialFundInfo
);
initSocialHistory
(
history
,
socialFundInfo
);
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
f6ae143b
...
@@ -1030,6 +1030,7 @@
...
@@ -1030,6 +1030,7 @@
a.CONTRACT_START,
a.CONTRACT_START,
a.CONTRACT_END,
a.CONTRACT_END,
a.CREATE_NAME,
a.CREATE_NAME,
a.CONTACT_ADDRESS,
s.RECORD_BASE,
s.RECORD_BASE,
s.PAYMENT_TYPE,
s.PAYMENT_TYPE,
a.SOCIAL_HOUSEHOLD_NAME,
a.SOCIAL_HOUSEHOLD_NAME,
...
...
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