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
481ab372
Commit
481ab372
authored
Aug 09, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实缴查询优化-fxj
parent
dedfcfaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+8
-1
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
481ab372
...
...
@@ -203,6 +203,13 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
return
pageNew
;
}
/**
* @Author fxj
* @Description 数据量大的统计查询 走特殊处理 分步查询
* @Date 11:58 2024/8/9
* @Param
* @return
**/
private
List
<
TPaymentInfoNewVo
>
getPageData
(
TPaymentInfoSearchVo
searchVo
,
Page
<
TPaymentInfoNewVo
>
pageNew
,
long
totalCount
){
List
<
TPaymentInfoNewVo
>
pageData
;
// 非大批量数据统计查询时走原逻辑
...
...
@@ -219,6 +226,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
||
Common
.
isNotNull
(
searchVo
.
getProvidentHousehold
()))
&&
Common
.
isEmpty
(
searchVo
.
getEmpIdcard
())
&&
Common
.
isEmpty
(
searchVo
.
getSettleDomainName
())){
//批量查询太慢 只能缓存单个查询 走字段索引
pageData
=
baseMapper
.
getTPaymentInfoNewPageSocial
(
searchVo
,
(
pageNew
.
getCurrent
()
-
1
)
*
pageNew
.
getSize
(),
pageNew
.
getSize
());
//封装对应的社保及公积金的合计数据处理
if
(
Common
.
isNotNull
(
pageData
)){
...
...
@@ -240,7 +248,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
return
pageData
;
}
List
<
TPaymentInfoNewVo
>
pageDataHandle
=
new
ArrayList
<>();
}
// 身份证查询 项目查询直接走原查询逻辑,因为此处数据量不会很大
}
else
{
...
...
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