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
b761d6ee
Commit
b761d6ee
authored
Mar 03, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化-fxj
parent
4304a362
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
TEmployeeInsurancePreController.java
...nsurances/controller/TEmployeeInsurancePreController.java
+9
-0
TDispatchInfoPreController.java
...v1/yifu/social/controller/TDispatchInfoPreController.java
+20
-0
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TEmployeeInsurancePreController.java
View file @
b761d6ee
...
...
@@ -152,6 +152,15 @@ public class TEmployeeInsurancePreController {
public
void
export
(
HttpServletResponse
response
,
@RequestBody
TEmployeeInsurancePreSearchVo
searchVo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
//无查询条件的时候直接 默认传非 已完成的数据
if
(
Common
.
isEmpty
(
searchVo
.
getProcessStatus
())){
searchVo
.
setStatusList
(
CommonConstants
.
processListPreArchivesStatus
);
}
else
{
//有查询条件的时候 按查询条件查询 后面有判断statusList 为空默认的情况
List
<
String
>
statusList
=
new
ArrayList
<>();
statusList
.
add
(
searchVo
.
getProcessStatus
());
searchVo
.
setStatusList
(
statusList
);
}
tEmployeeInsurancePreService
.
listExport
(
response
,
searchVo
);
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoPreController.java
View file @
b761d6ee
...
...
@@ -192,6 +192,16 @@ public class TDispatchInfoPreController {
public
void
export
(
HttpServletResponse
response
,
@RequestBody
TDispatchInfoPreSearchVo
searchVo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
//typeSuB 0 社保 1 公积金
searchVo
.
setTypeSub
(
CommonConstants
.
ZERO_STRING
);
// 主逻辑优化
if
(
Common
.
isEmpty
(
searchVo
.
getProcessStatus
()))
{
String
typeSub
=
null
==
searchVo
.
getTypeSub
()?
CommonConstants
.
EMPTY_STRING
:
searchVo
.
getTypeSub
();
List
<
String
>
statusList
=
STATUS_MAP
.
get
(
typeSub
);
if
(
statusList
!=
null
)
{
searchVo
.
setStatusList
(
new
ArrayList
<>(
statusList
));
// 拷贝以防止外部修改
}
}
tDispatchInfoPreService
.
listExport
(
response
,
searchVo
);
}
...
...
@@ -207,6 +217,16 @@ public class TDispatchInfoPreController {
public
void
exportFund
(
HttpServletResponse
response
,
@RequestBody
TDispatchInfoPreSearchVo
searchVo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
//typeSuB 0 社保 1 公积金
searchVo
.
setTypeSub
(
CommonConstants
.
ONE_STRING
);
// 主逻辑优化
if
(
Common
.
isEmpty
(
searchVo
.
getProcessStatus
()))
{
String
typeSub
=
null
==
searchVo
.
getTypeSub
()?
CommonConstants
.
EMPTY_STRING
:
searchVo
.
getTypeSub
();
List
<
String
>
statusList
=
STATUS_MAP
.
get
(
typeSub
);
if
(
statusList
!=
null
)
{
searchVo
.
setStatusList
(
new
ArrayList
<>(
statusList
));
// 拷贝以防止外部修改
}
}
tDispatchInfoPreService
.
listExportFund
(
response
,
searchVo
);
}
...
...
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