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
01827f52
Commit
01827f52
authored
Feb 13, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.5-薪资导入优化(社保基数)
parent
764555aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
SysBaseSetInfoServiceImpl.java
...1/yifu/social/service/impl/SysBaseSetInfoServiceImpl.java
+6
-3
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/SysBaseSetInfoServiceImpl.java
View file @
01827f52
...
@@ -144,7 +144,7 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
...
@@ -144,7 +144,7 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
lastBase
.
setApplyEndDate
(
DateUtil
.
addDayByDate
(
sysBaseSetInfo
.
getApplyStartDate
(),
-
1
));
lastBase
.
setApplyEndDate
(
DateUtil
.
addDayByDate
(
sysBaseSetInfo
.
getApplyStartDate
(),
-
1
));
this
.
updateById
(
lastBase
);
this
.
updateById
(
lastBase
);
}
}
this
.
saveOrUpdateBaseAndFundPro
(
sysBaseSetInfo
);
this
.
saveOrUpdateBaseAndFundPro
(
sysBaseSetInfo
,
null
);
return
R
.
ok
();
return
R
.
ok
();
}
}
...
@@ -208,7 +208,7 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
...
@@ -208,7 +208,7 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
return
R
.
failed
(
"对应户、地市、有效期的基数配置已存在!"
);
return
R
.
failed
(
"对应户、地市、有效期的基数配置已存在!"
);
}
}
this
.
saveOrUpdateBaseAndFundPro
(
sysBaseSetInfo
);
this
.
saveOrUpdateBaseAndFundPro
(
sysBaseSetInfo
,
old
);
// 记录变更日志
// 记录变更日志
tSocialLogService
.
saveModificationRecord
(
CommonConstants
.
ONE_INT
,
old
.
getId
(),
old
,
sysBaseSetInfo
);
tSocialLogService
.
saveModificationRecord
(
CommonConstants
.
ONE_INT
,
old
.
getId
(),
old
,
sysBaseSetInfo
);
return
R
.
ok
();
return
R
.
ok
();
...
@@ -221,7 +221,7 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
...
@@ -221,7 +221,7 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
* @Date: 2022/7/12 14:33
* @Date: 2022/7/12 14:33
* @return: void
* @return: void
**/
**/
private
void
saveOrUpdateBaseAndFundPro
(
SysBaseSetInfo
sysBaseSetInfo
)
{
private
void
saveOrUpdateBaseAndFundPro
(
SysBaseSetInfo
sysBaseSetInfo
,
SysBaseSetInfo
old
)
{
if
(
Common
.
isNotNull
(
sysBaseSetInfo
.
getId
()))
{
if
(
Common
.
isNotNull
(
sysBaseSetInfo
.
getId
()))
{
baseMapper
.
updateById
(
sysBaseSetInfo
);
baseMapper
.
updateById
(
sysBaseSetInfo
);
}
else
{
}
else
{
...
@@ -233,6 +233,9 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
...
@@ -233,6 +233,9 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
//tForecastLibraryService.updateForecastLibaryBySysBase(sysBaseSetInfo)
//tForecastLibraryService.updateForecastLibaryBySysBase(sysBaseSetInfo)
}
}
List
<
SysPayProportion
>
payProportionList
=
sysBaseSetInfo
.
getFundProList
();
List
<
SysPayProportion
>
payProportionList
=
sysBaseSetInfo
.
getFundProList
();
if
(
old
!=
null
&&
Common
.
isNotNull
(
old
.
getFundProList
()))
{
sysPayProportionService
.
removeBatchByIds
(
old
.
getFundProList
());
}
if
(
Common
.
isNotNull
(
payProportionList
))
{
if
(
Common
.
isNotNull
(
payProportionList
))
{
for
(
SysPayProportion
payProportion
:
payProportionList
)
{
for
(
SysPayProportion
payProportion
:
payProportionList
)
{
if
(
Common
.
isNotNull
(
payProportion
.
getId
()))
{
if
(
Common
.
isNotNull
(
payProportion
.
getId
()))
{
...
...
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