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
43a3fd79
Commit
43a3fd79
authored
Aug 05, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化-预估库获取基数配置
parent
79d76b64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
TForecastLibraryServiceImpl.java
...yifu/social/service/impl/TForecastLibraryServiceImpl.java
+22
-17
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TForecastLibraryServiceImpl.java
View file @
43a3fd79
...
...
@@ -307,7 +307,10 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
* @Date: 2022/7/25 19:41
* @return: void
**/
private
void
getBaseMap
(
List
<
TForecastLibrary
>
librarySocialList
,
List
<
TForecastLibrary
>
librarySocialListTemp
,
List
<
TForecastLibrary
>
libraryFundList
,
List
<
TForecastLibrary
>
libraryFundListTemp
,
HashMap
<
String
,
TForecastLibrary
>
socialHistoryMap
,
HashMap
<
String
,
TForecastLibrary
>
fundHistoryMap
,
HashMap
<
String
,
TForecastLibrary
>
socialPushMap
,
HashMap
<
String
,
TForecastLibrary
>
fundPushMap
)
{
private
void
getBaseMap
(
List
<
TForecastLibrary
>
librarySocialList
,
List
<
TForecastLibrary
>
librarySocialListTemp
,
List
<
TForecastLibrary
>
libraryFundList
,
List
<
TForecastLibrary
>
libraryFundListTemp
,
HashMap
<
String
,
TForecastLibrary
>
socialHistoryMap
,
HashMap
<
String
,
TForecastLibrary
>
fundHistoryMap
,
HashMap
<
String
,
TForecastLibrary
>
socialPushMap
,
HashMap
<
String
,
TForecastLibrary
>
fundPushMap
)
{
// Map的key
String
sfMapKey
;
if
(
Common
.
isNotNull
(
librarySocialList
))
{
...
...
@@ -409,25 +412,25 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
**/
private
void
getChangeReduceData
(
TSocialFundInfo
socialFund
,
TForecastLibrary
libraryOld
)
{
//单位社保
libraryOld
.
setUnitPensionFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitPensionFee
(),
socialFund
.
getUnitPersionMoney
()));
libraryOld
.
setUnitMedicalFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitMedicalFee
(),
socialFund
.
getUnitMedicalMoney
()));
libraryOld
.
setUnitBirthFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitBirthFee
(),
socialFund
.
getUnitBirthMoney
()));
libraryOld
.
setUnitWorkInjuryFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitWorkInjuryFee
(),
socialFund
.
getUnitInjuryMoney
()));
libraryOld
.
setUnitUnemploymentFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitUnemploymentFee
(),
socialFund
.
getUnitUnemploymentMoney
()));
libraryOld
.
setUnitBitailmentFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitBitailmentFee
(),
socialFund
.
getUnitBigailmentMoney
()));
libraryOld
.
setUnitInterestFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitInterestFee
(),
socialFun
d
.
getUnitInterestFee
()));
libraryOld
.
setUnitSocialSum
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitSocialSum
(),
socialFun
d
.
getUnitSocialSum
()));
libraryOld
.
setUnitPensionFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitPersionMoney
(),
libraryOld
.
getUnitPensionFee
()));
libraryOld
.
setUnitMedicalFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitMedicalMoney
(),
libraryOld
.
getUnitMedicalFee
()));
libraryOld
.
setUnitBirthFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitBirthMoney
(),
libraryOld
.
getUnitBirthFee
()));
libraryOld
.
setUnitWorkInjuryFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitInjuryMoney
(),
libraryOld
.
getUnitWorkInjuryFee
()));
libraryOld
.
setUnitUnemploymentFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitUnemploymentMoney
(),
libraryOld
.
getUnitUnemploymentFee
()));
libraryOld
.
setUnitBitailmentFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitBigailmentMoney
(),
libraryOld
.
getUnitBitailmentFee
()));
libraryOld
.
setUnitInterestFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitInterestFee
(),
libraryOl
d
.
getUnitInterestFee
()));
libraryOld
.
setUnitSocialSum
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitSocialSum
(),
libraryOl
d
.
getUnitSocialSum
()));
// 个人社保
libraryOld
.
setPersonalPensionFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getPersonalPensionFee
(),
socialFund
.
getPersonalPersionMoney
()));
libraryOld
.
setPersonalMedicalFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getPersonalMedicalFee
(),
socialFund
.
getPersonalMedicalMoney
()));
libraryOld
.
setPersonalUnemploymentFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getPersonalUnemploymentFee
(),
socialFund
.
getPersonalUnemploymentMoney
()));
libraryOld
.
setPersonalInterestFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getPersonalUnemploymentFee
(),
socialFund
.
getPersonalUnemploymentMoney
()));
libraryOld
.
setPersonalBigailmentFee
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getPersonalBigailmentFee
(),
socialFund
.
getPersonalBigailmentMoney
()));
libraryOld
.
setPersonalSocialSum
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getPersonalSocialSum
(),
socialFun
d
.
getPersonalSocialSum
()));
libraryOld
.
setPersonalPensionFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getPersonalPersionMoney
(),
libraryOld
.
getPersonalPensionFee
()));
libraryOld
.
setPersonalMedicalFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getPersonalMedicalMoney
(),
libraryOld
.
getPersonalMedicalFee
()));
libraryOld
.
setPersonalUnemploymentFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getPersonalUnemploymentMoney
(),
libraryOld
.
getPersonalUnemploymentFee
()));
libraryOld
.
setPersonalInterestFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getPersonalUnemploymentMoney
(),
libraryOld
.
getPersonalUnemploymentFee
()));
libraryOld
.
setPersonalBigailmentFee
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getPersonalBigailmentMoney
(),
libraryOld
.
getPersonalBigailmentFee
()));
libraryOld
.
setPersonalSocialSum
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getPersonalSocialSum
(),
libraryOl
d
.
getPersonalSocialSum
()));
// 单位公积金
libraryOld
.
setUnitFundSum
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getUnitFundSum
(),
socialFun
d
.
getUnitFundSum
()));
libraryOld
.
setUnitFundSum
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getUnitFundSum
(),
libraryOl
d
.
getUnitFundSum
()));
// 个人公积金
libraryOld
.
setPersonalFundSum
(
BigDecimalUtils
.
safeSubtract
(
libraryOld
.
getPersonalFundSum
(),
socialFun
d
.
getPersonalFundSum
()));
libraryOld
.
setPersonalFundSum
(
BigDecimalUtils
.
safeSubtract
(
socialFund
.
getPersonalFundSum
(),
libraryOl
d
.
getPersonalFundSum
()));
}
...
...
@@ -454,6 +457,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
}
else
if
(
Common
.
isNotNull
(
lib
.
getId
()))
{
lib
.
setId
(
null
);
}
lib
.
setDataPush
(
CommonConstants
.
ZERO_INT
);
lib
.
setSocialHousehold
(
tSocialInfo
.
getSocialHousehold
());
lib
.
setSocialHouseholdName
(
tSocialInfo
.
getSocialHouseholdName
());
lib
.
setDiffType
(
diffType
);
...
...
@@ -1253,6 +1257,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
}
else
if
(
Common
.
isNotNull
(
lib
.
getId
()))
{
lib
.
setId
(
null
);
}
lib
.
setDataPush
(
CommonConstants
.
ZERO_INT
);
lib
.
setProvidentHousehold
(
providentFund
.
getProvidentHousehold
());
lib
.
setProvidentHouseholdName
(
providentFund
.
getProvidentHouseholdName
());
lib
.
setDiffType
(
diffType
);
...
...
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