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
6e3843cc
Commit
6e3843cc
authored
Jul 23, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化-fxj
parent
503e0207
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
TDispatchInfoController.java
...us/v1/yifu/social/controller/TDispatchInfoController.java
+1
-2
TDispatchInfoService.java
...oud/plus/v1/yifu/social/service/TDispatchInfoService.java
+1
-1
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+9
-5
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoController.java
View file @
6e3843cc
...
...
@@ -967,8 +967,7 @@ public class TDispatchInfoController {
@PostMapping
(
"/doExportSocialSoldierBackFileById"
)
@Operation
(
description
=
"自动化办理查询导出反馈文件单个"
)
@SysLog
(
"自动化办理查询导出反馈文件单个"
)
public
String
doExportSocialSoldierBackFileById
(
HttpServletResponse
response
,
HttpServletRequest
request
,
@RequestBody
SocialHandleSearchVo
searchVo
)
{
public
R
<
String
>
doExportSocialSoldierBackFileById
(
@RequestBody
SocialHandleSearchVo
searchVo
)
{
return
tDispatchInfoService
.
doExportSocialSoldierBackFileById
(
searchVo
.
getIdStr
());
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TDispatchInfoService.java
View file @
6e3843cc
...
...
@@ -190,5 +190,5 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
void
doExportSocialSoldierAllBackFile
(
HttpServletResponse
response
,
SocialHandleSearchVo
searchVo
,
String
idStr
);
String
doExportSocialSoldierBackFileById
(
String
idStr
);
R
<
String
>
doExportSocialSoldierBackFileById
(
String
idStr
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
6e3843cc
...
...
@@ -8487,7 +8487,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
return
;
}
// 设置响应头
response
.
setContentType
(
"application/
octet-stream
"
);
response
.
setContentType
(
"application/
zip
"
);
response
.
setHeader
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment; filename="
+
URLEncoder
.
encode
(
"下载自动化办理反馈文件"
,
"UTF-8"
)
+
".zip"
);
...
...
@@ -8590,9 +8590,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
@Override
public
String
doExportSocialSoldierBackFileById
(
String
idStr
)
{
public
R
<
String
>
doExportSocialSoldierBackFileById
(
String
idStr
)
{
List
<
SocialSoldierBackVo
>
list
=
null
;
if
(
Common
.
isEmpty
(
idStr
))
{
if
(
!
Common
.
isEmpty
(
idStr
))
{
list
=
baseMapper
.
getSocialSoldierAllListBackFile
(
null
,
Common
.
getList
(
idStr
));
}
// 收集所有需要下载的 URL
...
...
@@ -8617,10 +8617,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
CollectionUtils
.
isNotEmpty
(
requestIdMap
))
{
urls
=
socialFriendConfig
.
getDownloadFeedbackUrls
(
restTemplate
,
requestIdMap
.
get
(
list
.
get
(
0
).
getSocialId
()));
}
// 更新反馈文件状态
List
<
String
>
dispatchIds
=
new
ArrayList
<>();
dispatchIds
.
add
(
list
.
get
(
0
).
getDispatchId
());
baseMapper
.
updateBackFileFlag
(
dispatchIds
);
if
(
Common
.
isNotNull
(
urls
)){
return
urls
.
get
(
0
);
return
R
.
ok
(
urls
.
get
(
0
)
);
}
}
return
null
;
return
R
.
failed
(
"未找到反馈文件"
)
;
}
}
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