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
0d7d0348
Commit
0d7d0348
authored
Dec 25, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
户及户基数调整-fxj
parent
bb48c454
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
SysBaseSetInfoServiceImpl.java
...1/yifu/social/service/impl/SysBaseSetInfoServiceImpl.java
+44
-0
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/SysBaseSetInfoServiceImpl.java
View file @
0d7d0348
...
...
@@ -16,6 +16,7 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
...
...
@@ -25,6 +26,8 @@ import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -37,6 +40,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.UpmsDaprUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TInsuranceUnpurchasePerson
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.SysHouseHoldInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion
;
...
...
@@ -1413,4 +1417,44 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
}
return
s
;
}
/**
* @Author fxj
* @Description 根据户名称及户性质去更新对应户的基数配置信息
* @Date 15:26 2025/12/24
* @Param name:户名称 province:省 city:市 town:县 type:户性质(0社保、1公积金)
* @return
**/
@Override
public
void
updateAreaCode
(
String
name
,
String
province
,
String
city
,
String
town
,
String
type
)
{
List
<
SysBaseSetInfo
>
sysBaseSetInfos
=
baseMapper
.
selectList
(
Wrappers
.<
SysBaseSetInfo
>
query
().
lambda
()
.
eq
(
SysBaseSetInfo:
:
getBaseType
,
type
)
.
eq
(
SysBaseSetInfo:
:
getDepartName
,
name
));
if
(
Common
.
isEmpty
(
sysBaseSetInfos
)){
return
;
}
LambdaUpdateWrapper
<
SysBaseSetInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
SysBaseSetInfo:
:
getDepartName
,
name
)
.
eq
(
SysBaseSetInfo:
:
getBaseType
,
type
)
.
set
(
SysBaseSetInfo:
:
getTown
,
Common
.
isEmpty
(
town
)?
null
:
Integer
.
valueOf
(
town
))
.
set
(
SysBaseSetInfo:
:
getCity
,
Common
.
isEmpty
(
city
)?
null
:
Integer
.
valueOf
(
city
))
.
set
(
SysBaseSetInfo:
:
getProvince
,
Common
.
isEmpty
(
province
)?
null
:
Integer
.
valueOf
(
province
));
this
.
update
(
updateWrapper
);
//添加日志
SysBaseSetInfo
old
=
null
;
int
logType
=
CommonConstants
.
ONE_INT
;
if
(
CommonConstants
.
ONE_STRING
.
equals
(
type
))
{
logType
=
CommonConstants
.
TWO_INT
;
}
for
(
SysBaseSetInfo
sysBaseSetInfo
:
sysBaseSetInfos
){
old
=
new
SysBaseSetInfo
();
BeanUtil
.
copyProperties
(
sysBaseSetInfo
,
old
);
old
.
setTown
(
Common
.
isEmpty
(
town
)?
null
:
Integer
.
valueOf
(
town
));
old
.
setCity
(
Common
.
isEmpty
(
city
)?
null
:
Integer
.
valueOf
(
city
));
old
.
setProvince
(
Common
.
isEmpty
(
province
)?
null
:
Integer
.
valueOf
(
province
));
sysBaseSetInfo
.
setProvince
(
Common
.
isEmpty
(
province
)
?
null
:
Integer
.
valueOf
(
province
));
sysBaseSetInfo
.
setCity
(
Common
.
isEmpty
(
city
)?
null
:
Integer
.
valueOf
(
city
));
sysBaseSetInfo
.
setTown
(
Common
.
isEmpty
(
town
)?
null
:
Integer
.
valueOf
(
town
));
tSocialLogService
.
saveModificationRecord
(
logType
,
old
.
getId
(),
old
,
sysBaseSetInfo
);
}
}
}
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