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
d5fac85f
Commit
d5fac85f
authored
Nov 21, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化接口修改
parent
eb21df7e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
102 additions
and
61 deletions
+102
-61
TPaymentInfoController.java
...lus/v1/yifu/social/controller/TPaymentInfoController.java
+2
-4
TPaymentInfoMapper.java
.../cloud/plus/v1/yifu/social/mapper/TPaymentInfoMapper.java
+28
-0
TPaymentInfoService.java
...loud/plus/v1/yifu/social/service/TPaymentInfoService.java
+1
-1
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+23
-56
TPaymentInfoMapper.xml
...cial-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
+48
-0
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TPaymentInfoController.java
View file @
d5fac85f
...
...
@@ -402,10 +402,8 @@ public class TPaymentInfoController {
@Operation
(
summary
=
"手动推送社保缴费库明细的数据"
,
description
=
"手动推送社保缴费库明细的数据"
)
@SysLog
(
"手动推送社保缴费库明细的数据"
)
@PostMapping
(
"/pushPaymentSocialFundInfo"
)
public
R
<
Boolean
>
pushPaymentSocialFundInfo
(
@RequestParam
(
name
=
"socialHouse"
,
required
=
false
)
String
socialHouse
,
@RequestParam
(
name
=
"fundHouse"
,
required
=
false
)
String
fundHouse
,
@RequestParam
(
name
=
"settleDomainId"
,
required
=
false
)
String
settleDomainId
)
{
tPaymentInfoService
.
pushPaymentSocialFundInfo
(
socialHouse
,
fundHouse
,
settleDomainId
);
public
R
<
Boolean
>
pushPaymentSocialFundInfo
(
@RequestBody
TPaymentInfoSearchVo
searchVo
)
{
tPaymentInfoService
.
pushPaymentSocialFundInfo
(
searchVo
);
return
R
.
ok
();
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TPaymentInfoMapper.java
View file @
d5fac85f
...
...
@@ -163,4 +163,32 @@ public interface TPaymentInfoMapper extends BaseMapper<TPaymentInfo> {
*/
List
<
String
>
getTPaymentInfoList
(
@Param
(
"tPaymentInfo"
)
TPaymentInfoSearchVo
searchVo
);
/**
* 缴费库社保推送查询
* @param searchVo 缴费库
* @return
*/
List
<
TPaymentInfo
>
getTPaymentSocialPushInfo
(
@Param
(
"tPaymentInfo"
)
TPaymentInfoSearchVo
searchVo
);
/**
* 缴费库公积金推送查询
* @param searchVo 缴费库
* @return
*/
List
<
TPaymentInfo
>
getTPaymentFundPushInfo
(
@Param
(
"tPaymentInfo"
)
TPaymentInfoSearchVo
searchVo
);
/**
* 缴费库社保收入推送查询
* @param searchVo 缴费库
* @return
*/
List
<
TPaymentInfo
>
getTPaymentSocialIncomeInfo
(
@Param
(
"tPaymentInfo"
)
TPaymentInfoSearchVo
searchVo
);
/**
* 缴费库公积金收入推送查询
* @param searchVo 缴费库
* @return
*/
List
<
TPaymentInfo
>
getTPaymentFundIncomeInfo
(
@Param
(
"tPaymentInfo"
)
TPaymentInfoSearchVo
searchVo
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TPaymentInfoService.java
View file @
d5fac85f
...
...
@@ -148,7 +148,7 @@ public interface TPaymentInfoService extends IService<TPaymentInfo> {
TPaymentVo
getPaymentSocialAndFound
(
TPaymentInfo
info
);
void
pushPaymentSocialFundInfo
(
String
socialHouse
,
String
fundHouse
,
String
settleDomainId
);
void
pushPaymentSocialFundInfo
(
TPaymentInfoSearchVo
searchVo
);
/**
* 批量标识可以推送的数据
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
d5fac85f
...
...
@@ -2542,17 +2542,17 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
@Override
public
void
pushPaymentSocialFundInfo
(
String
socialHouse
,
String
fundHouse
,
String
settleDomainId
)
{
public
void
pushPaymentSocialFundInfo
(
TPaymentInfoSearchVo
searchVo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
String
key
=
user
.
getId
()
+
CommonConstants
.
DOWN_LINE_STRING
+
CommonConstants
.
PAYMENT_SOCIAL_PUSH
;
redisUtil
.
set
(
key
,
user
.
getId
(),
36000L
);
try
{
//手动推送未推送的社保公积金明细数据
createPaymentSocialInfoReal
(
user
,
s
ocialHouse
,
settleDomainId
);
createPaymentFundInfoReal
(
user
,
fundHouse
,
settleDomainId
);
createPaymentSocialInfoReal
(
user
,
s
earchVo
);
createPaymentFundInfoReal
(
user
,
searchVo
);
//推送社保公积金收入数据
createPaymentInfoIncomeReal
(
user
,
s
ocialHouse
,
settleDomainId
);
createPaymentFundIncomeReal
(
user
,
fundHouse
,
settleDomainId
);
createPaymentInfoIncomeReal
(
user
,
s
earchVo
);
createPaymentFundIncomeReal
(
user
,
searchVo
);
redisUtil
.
remove
(
key
);
}
catch
(
Exception
e
)
{
log
.
error
(
"社保缴费库:"
+
e
);
...
...
@@ -2602,79 +2602,46 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
public
void
createPaymentSocialInfoReal
(
YifuUser
user
,
String
socialHouse
,
String
settleDomainId
)
{
//获取所有未推送的社保实缴明细数据
LambdaQueryWrapper
<
TPaymentInfo
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
TPaymentInfo:
:
getCreateBy
,
user
.
getId
());
wrapper
.
eq
(
TPaymentInfo:
:
getPushStatus
,
CommonConstants
.
ONE_STRING
);
wrapper
.
eq
(
TPaymentInfo:
:
getLockStatus
,
CommonConstants
.
ONE_STRING
);
wrapper
.
isNotNull
(
TPaymentInfo:
:
getSocialId
);
if
(
Common
.
isNotNull
(
socialHouse
))
{
wrapper
.
eq
(
TPaymentInfo:
:
getSocialHousehold
,
socialHouse
);
}
if
(
Common
.
isNotNull
(
settleDomainId
))
{
wrapper
.
eq
(
TPaymentInfo:
:
getSettleDomainId
,
settleDomainId
);
public
void
createPaymentSocialInfoReal
(
YifuUser
user
,
TPaymentInfoSearchVo
searchVo
)
{
if
(
Common
.
isNotNull
(
user
))
{
searchVo
.
setCreateBy
(
user
.
getId
());
}
List
<
TPaymentInfo
>
unPushInfo
=
baseMapper
.
selectList
(
wrapper
);
//获取所有未推送的社保实缴明细数据
List
<
TPaymentInfo
>
unPushInfo
=
baseMapper
.
getTPaymentSocialPushInfo
(
searchVo
);
if
(
Common
.
isNotNull
(
unPushInfo
))
{
//推送数据封装并推送
initEkpPushSocialParam
(
unPushInfo
);
}
}
public
void
createPaymentFundInfoReal
(
YifuUser
user
,
String
fundHouse
,
String
settleDomainId
)
{
//获取所有未推送的公积金实缴明细数据
LambdaQueryWrapper
<
TPaymentInfo
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
TPaymentInfo:
:
getCreateBy
,
user
.
getId
());
wrapper
.
eq
(
TPaymentInfo:
:
getPushStatus
,
CommonConstants
.
ONE_STRING
);
wrapper
.
eq
(
TPaymentInfo:
:
getLockStatus
,
CommonConstants
.
ONE_STRING
);
wrapper
.
isNotNull
(
TPaymentInfo:
:
getFundId
);
if
(
Common
.
isNotNull
(
fundHouse
))
{
wrapper
.
eq
(
TPaymentInfo:
:
getProvidentHousehold
,
fundHouse
);
}
if
(
Common
.
isNotNull
(
settleDomainId
))
{
wrapper
.
eq
(
TPaymentInfo:
:
getSettleDomainId
,
settleDomainId
);
public
void
createPaymentFundInfoReal
(
YifuUser
user
,
TPaymentInfoSearchVo
searchVo
)
{
if
(
Common
.
isNotNull
(
user
))
{
searchVo
.
setCreateBy
(
user
.
getId
());
}
List
<
TPaymentInfo
>
unPushInfo
=
baseMapper
.
selectList
(
wrapper
);
//获取所有未推送的公积金实缴明细数据
List
<
TPaymentInfo
>
unPushInfo
=
baseMapper
.
getTPaymentFundPushInfo
(
searchVo
);
if
(
Common
.
isNotNull
(
unPushInfo
))
{
//推送数据封装并推送
initEkpPushFundParam
(
unPushInfo
);
}
}
public
void
createPaymentInfoIncomeReal
(
YifuUser
user
,
String
socialHouse
,
String
settleDomainId
)
{
//判断缴费库中社保合计和本次导入合计相加是否为0,为0则不生成收入
LambdaQueryWrapper
<
TPaymentInfo
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
TPaymentInfo:
:
getCreateBy
,
user
.
getId
());
wrapper
.
eq
(
TPaymentInfo:
:
getIncomeStatus
,
CommonConstants
.
ONE_STRING
);
wrapper
.
eq
(
TPaymentInfo:
:
getLockStatus
,
CommonConstants
.
ONE_STRING
);
wrapper
.
isNotNull
(
TPaymentInfo:
:
getSocialId
);
if
(
Common
.
isNotNull
(
socialHouse
))
{
wrapper
.
eq
(
TPaymentInfo:
:
getSocialHousehold
,
socialHouse
);
}
if
(
Common
.
isNotNull
(
settleDomainId
))
{
wrapper
.
eq
(
TPaymentInfo:
:
getSettleDomainId
,
settleDomainId
);
public
void
createPaymentInfoIncomeReal
(
YifuUser
user
,
TPaymentInfoSearchVo
searchVo
)
{
if
(
Common
.
isNotNull
(
user
))
{
searchVo
.
setCreateBy
(
user
.
getId
());
}
List
<
TPaymentInfo
>
sumList
=
baseMapper
.
selectList
(
wrapper
);
List
<
TPaymentInfo
>
sumList
=
baseMapper
.
getTPaymentSocialIncomeInfo
(
searchVo
);
if
(
Common
.
isNotNull
(
sumList
))
{
//生成收入
createIncomeInfo
(
sumList
,
CommonConstants
.
ONE_STRING
);
}
}
public
void
createPaymentFundIncomeReal
(
YifuUser
user
,
String
fundHouse
,
String
settleDomainId
)
{
LambdaQueryWrapper
<
TPaymentInfo
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
TPaymentInfo:
:
getCreateBy
,
user
.
getId
());
wrapper
.
eq
(
TPaymentInfo:
:
getIncomeStatus
,
CommonConstants
.
ONE_STRING
);
wrapper
.
eq
(
TPaymentInfo:
:
getLockStatus
,
CommonConstants
.
ONE_STRING
);
wrapper
.
isNotNull
(
TPaymentInfo:
:
getFundId
);
if
(
Common
.
isNotNull
(
fundHouse
))
{
wrapper
.
eq
(
TPaymentInfo:
:
getSocialHousehold
,
fundHouse
);
}
if
(
Common
.
isNotNull
(
settleDomainId
))
{
wrapper
.
eq
(
TPaymentInfo:
:
getSettleDomainId
,
settleDomainId
);
public
void
createPaymentFundIncomeReal
(
YifuUser
user
,
TPaymentInfoSearchVo
searchVo
)
{
if
(
Common
.
isNotNull
(
user
))
{
searchVo
.
setCreateBy
(
user
.
getId
());
}
List
<
TPaymentInfo
>
sumList
=
baseMapper
.
selectList
(
wrapper
);
List
<
TPaymentInfo
>
sumList
=
baseMapper
.
getTPaymentFundIncomeInfo
(
searchVo
);
if
(
Common
.
isNotNull
(
sumList
))
{
//生成公积金收入
createIncomeInfo
(
sumList
,
CommonConstants
.
TWO_STRING
);
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
View file @
d5fac85f
...
...
@@ -1169,4 +1169,52 @@
</foreach>
</update>
<!--tPaymentInfo社保推送查询-->
<select
id=
"getTPaymentSocialPushInfo"
resultMap=
"tPaymentInfoMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM t_payment_info a
<where>
a.LOCK_STATUS = '1' AND a.CREATE_BY = #{tPaymentInfo.createBy}
AND a.PUSH_STATUS = '1' AND a.SOCIAL_ID IS NOT NULL
<include
refid=
"tPaymentInfo_export_where"
/>
</where>
</select>
<!--tPaymentInfo公积金推送查询-->
<select
id=
"getTPaymentFundPushInfo"
resultMap=
"tPaymentInfoMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM t_payment_info a
<where>
a.LOCK_STATUS = '1' AND a.CREATE_BY = #{tPaymentInfo.createBy}
AND a.PUSH_STATUS = '1' AND a.FUND_ID IS NOT NULL
<include
refid=
"tPaymentInfo_export_where"
/>
</where>
</select>
<!--tPaymentInfo社保收入推送查询-->
<select
id=
"getTPaymentSocialIncomeInfo"
resultMap=
"tPaymentInfoMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM t_payment_info a
<where>
a.LOCK_STATUS = '1' AND a.CREATE_BY = #{tPaymentInfo.createBy}
AND a.INCOME_STATUS = '1' AND a.SOCIAL_ID IS NOT NULL
<include
refid=
"tPaymentInfo_export_where"
/>
</where>
</select>
<!--tPaymentInfo公积金收入推送查询-->
<select
id=
"getTPaymentFundIncomeInfo"
resultMap=
"tPaymentInfoMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM t_payment_info a
<where>
a.LOCK_STATUS = '1' AND a.CREATE_BY = #{tPaymentInfo.createBy}
AND a.INCOME_STATUS = '1' AND a.FUND_ID IS NOT NULL
<include
refid=
"tPaymentInfo_export_where"
/>
</where>
</select>
</mapper>
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