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
cd4c3505
Commit
cd4c3505
authored
Jul 27, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新基数,老比例
parent
4dea8708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
17 deletions
+27
-17
TForecastLibraryServiceImpl.java
...yifu/social/service/impl/TForecastLibraryServiceImpl.java
+27
-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 @
cd4c3505
...
...
@@ -544,7 +544,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
// 初始化大病:
this
.
initLibraryBigMoneyBySocial
(
library
,
socialInfo
,
sysBaseSetInfo
);
initUnitAndPersonalLibrary
(
library
,
socialInfo
,
sysBaseSetInfo
);
initUnitAndPersonalLibrary
(
library
,
socialInfo
,
sysBaseSetInfo
,
historyLibrary
);
if
(
null
!=
configAll
||
null
!=
configUnit
||
null
!=
configPersonal
)
{
if
(
null
!=
configPersonal
)
{
initPersonalLibByConfig
(
library
,
configPersonal
);
...
...
@@ -773,13 +773,13 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
* @Date 2020-08-03
**/
private
void
initUnitAndPersonalLibrary
(
TForecastLibrary
library
,
TSocialFundInfo
socialInfo
,
SysBaseSetInfo
sysBaseSetInfo
)
{
initLibrayOfPersonal
(
library
,
socialInfo
,
sysBaseSetInfo
);
initLibraryOfUnit
(
library
,
socialInfo
,
sysBaseSetInfo
);
,
SysBaseSetInfo
sysBaseSetInfo
,
TForecastLibrary
historyLibrary
)
{
initLibrayOfPersonal
(
library
,
socialInfo
,
sysBaseSetInfo
,
historyLibrary
);
initLibraryOfUnit
(
library
,
socialInfo
,
sysBaseSetInfo
,
historyLibrary
);
}
private
void
initLibrayOfPersonal
(
TForecastLibrary
library
,
TSocialFundInfo
socialInfo
,
SysBaseSetInfo
sysBaseSetInfo
)
{
,
SysBaseSetInfo
sysBaseSetInfo
,
TForecastLibrary
historyLibrary
)
{
// 个人养老基数
BigDecimal
personalPersionBase
=
BigDecimal
.
ZERO
;
// 个人医疗基数
...
...
@@ -810,14 +810,18 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
personalPersionBase
=
baseLimit
;
personalMedicalBase
=
baseLimit
;
personalUnemploymentBase
=
baseLimit
;
personalPersionPro
=
sysBaseSetInfo
.
getPersonalPersionPro
();
personalMedicalPro
=
sysBaseSetInfo
.
getPersonalMedicalPro
();
personalUnemploymentPro
=
sysBaseSetInfo
.
getPersonalUnemploymentPro
();
}
else
{
personalPersionBase
=
socialInfo
.
getPersonalPensionCardinal
();
personalMedicalBase
=
socialInfo
.
getPersonalMedicalCardinal
();
personalUnemploymentBase
=
socialInfo
.
getPersonalUnemploymentCardinal
();
}
if
(
historyLibrary
!=
null
)
{
if
(
historyLibrary
.
getUnitPersionPro
()
!=
null
)
{
personalPersionPro
=
historyLibrary
.
getPersonalPersionPro
();
personalMedicalPro
=
historyLibrary
.
getPersonalMedicalPro
();
personalUnemploymentPro
=
historyLibrary
.
getPersonalUnemploymentPro
();
}
}
else
{
personalPersionPro
=
socialInfo
.
getPersonalPensionPer
();
personalMedicalPro
=
socialInfo
.
getPersonalMedicalPer
();
personalUnemploymentPro
=
socialInfo
.
getPersonalUnemploymentPer
();
...
...
@@ -845,7 +849,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
}
private
void
initLibraryOfUnit
(
TForecastLibrary
library
,
TSocialFundInfo
socialInfo
,
SysBaseSetInfo
sysBaseSetInfo
)
{
,
SysBaseSetInfo
sysBaseSetInfo
,
TForecastLibrary
historyLibrary
)
{
// 单位养老基数
BigDecimal
unitPersionBase
=
BigDecimal
.
ZERO
;
// 单位医疗基数
...
...
@@ -894,18 +898,24 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
unitUnemploymentBase
=
baseLimit
;
unitInjuryBase
=
baseLimit
;
unitBirthBase
=
baseLimit
;
unitPersionPro
=
sysBaseSetInfo
.
getUnitPersionPro
();
unitMedicalPro
=
sysBaseSetInfo
.
getUnitMedicalPro
();
unitUnemploymentPro
=
sysBaseSetInfo
.
getUnitUnemploymentPro
();
unitInjuryPro
=
sysBaseSetInfo
.
getUnitInjuryPro
();
unitBirthPro
=
sysBaseSetInfo
.
getUnitBirthPro
();
}
else
{
unitPersionBase
=
socialInfo
.
getUnitPensionCardinal
();
unitMedicalBase
=
socialInfo
.
getUnitMedicalCardinal
();
unitUnemploymentBase
=
socialInfo
.
getUnitUnemploymentCardinal
();
unitInjuryBase
=
socialInfo
.
getUnitWorkInjuryCardinal
();
unitBirthBase
=
socialInfo
.
getUnitBirthCardinal
();
}
if
(
historyLibrary
!=
null
)
{
if
(
historyLibrary
.
getUnitPersionPro
()
!=
null
)
{
unitPersionPro
=
historyLibrary
.
getUnitPersionPro
();
unitMedicalPro
=
historyLibrary
.
getUnitMedicalPro
();
unitUnemploymentPro
=
historyLibrary
.
getUnitUnemploymentPro
();
unitInjuryPro
=
historyLibrary
.
getUnitInjuryPro
();
unitBirthPro
=
historyLibrary
.
getUnitBirthPro
();
}
else
if
(
historyLibrary
.
getUnitInjuryPro
()
!=
null
)
{
unitInjuryPro
=
historyLibrary
.
getUnitInjuryPro
();
}
}
else
{
unitPersionPro
=
socialInfo
.
getUnitPensionPer
();
unitMedicalPro
=
socialInfo
.
getUnitMedicalPer
();
unitUnemploymentPro
=
socialInfo
.
getUnitUnemploymentPer
();
...
...
@@ -1521,7 +1531,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
if
(
Common
.
isNotNull
(
libraryFundList
))
{
baseMapper
.
deleteBatchIds
(
libraryFundList
);
}
//
未推送的预估明细
Map
//
新基数,老比例,存放
Map
HashMap
<
String
,
TForecastLibrary
>
socialHistoryMap
=
new
HashMap
<>();
HashMap
<
String
,
TForecastLibrary
>
fundHistoryMap
=
new
HashMap
<>();
// 已推送的预估明细Map
...
...
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