Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
Overview
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
reyun
saasio
Commits
f8cc3cf8
Commit
f8cc3cf8
authored
Apr 03, 2018
by
carrieyzzhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
download report
parent
53d03c4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ExportReportInfoController.java
...m/reyun/controller/manage/ExportReportInfoController.java
+4
-4
No files found.
src/main/java/com/reyun/controller/manage/ExportReportInfoController.java
View file @
f8cc3cf8
...
@@ -12,6 +12,7 @@ import com.reyun.security.annotation.CurrentAccount;
...
@@ -12,6 +12,7 @@ import com.reyun.security.annotation.CurrentAccount;
import
com.reyun.service.AppService
;
import
com.reyun.service.AppService
;
import
com.reyun.service.ExportReportInfoService
;
import
com.reyun.service.ExportReportInfoService
;
import
com.reyun.service.UserLogService
;
import
com.reyun.service.UserLogService
;
import
com.reyun.util.AwsS3Util
;
import
com.reyun.util.Constant
;
import
com.reyun.util.Constant
;
import
com.reyun.util.ResultModel
;
import
com.reyun.util.ResultModel
;
import
com.reyun.util.ResultStatus
;
import
com.reyun.util.ResultStatus
;
...
@@ -175,7 +176,7 @@ public class ExportReportInfoController {
...
@@ -175,7 +176,7 @@ public class ExportReportInfoController {
public
void
getDownloadResponseEntity
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
(
"app"
)
Long
app
,
@PathVariable
Long
id
,
public
void
getDownloadResponseEntity
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
(
"app"
)
Long
app
,
@PathVariable
Long
id
,
@CurrentAccount
Account
loginAccount
)
throws
IOException
{
@CurrentAccount
Account
loginAccount
)
throws
IOException
{
/*
ExportReportInfo info = exportService.findOne(id);
ExportReportInfo
info
=
exportService
.
findOne
(
id
);
userLogService
.
insertLog
(
loginAccount
,
LogEnumType
.
DOWNLOAD
.
getCode
(),
userLogService
.
insertLog
(
loginAccount
,
LogEnumType
.
DOWNLOAD
.
getCode
(),
LogEnumType
.
DOWNLOAD
.
getName
()
+
"报表下载 "
,
info
,
app
,
OperateObjectEnumType
.
REPORTDOWN
.
getCode
(),
request
);
LogEnumType
.
DOWNLOAD
.
getName
()
+
"报表下载 "
,
info
,
app
,
OperateObjectEnumType
.
REPORTDOWN
.
getCode
(),
request
);
...
@@ -206,8 +207,7 @@ public class ExportReportInfoController {
...
@@ -206,8 +207,7 @@ public class ExportReportInfoController {
try
{
try
{
URL url = new URL(Constant.S3_ROOTDIR + "/reportdownload/" + URLEncoder.encode(info.getFileName(), StandardCharsets.UTF_8.toString()));
in
=
AwsS3Util
.
getInstance
().
downloadStreamFromS3
(
Constant
.
bucket
,
"trackingio/reportdownload/"
+
info
.
getFileName
());
in = url.openStream();
content
=
IOUtils
.
toString
(
in
);
content
=
IOUtils
.
toString
(
in
);
if
(
content
.
contains
(
"\t"
))
{
if
(
content
.
contains
(
"\t"
))
{
...
@@ -227,7 +227,7 @@ public class ExportReportInfoController {
...
@@ -227,7 +227,7 @@ public class ExportReportInfoController {
}
}
//更新下载人和IP
//更新下载人和IP
exportService.updateDownloadInfo(info.getId(), loginAccount, downloadIP);
*/
exportService
.
updateDownloadInfo
(
info
.
getId
(),
loginAccount
,
downloadIP
);
}
}
@RequestMapping
(
value
=
"checkexist/{id}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"checkexist/{id}"
,
method
=
RequestMethod
.
GET
)
...
...
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