Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
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
王衍超
cloud-fb
Commits
1cf7fea2
Commit
1cf7fea2
authored
May 20, 2021
by
wukaiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出时遇到错误抛出Controller层错误信息
parent
2b4a39e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
DownLoadStatisticsController.java
...st/dinas/statistics/web/DownLoadStatisticsController.java
+6
-1
No files found.
backend/xyst.dinas.statistics/src/main/java/com/xyst/dinas/statistics/web/DownLoadStatisticsController.java
View file @
1cf7fea2
...
@@ -3,6 +3,9 @@ package com.xyst.dinas.statistics.web;
...
@@ -3,6 +3,9 @@ package com.xyst.dinas.statistics.web;
import
java.io.IOException
;
import
java.io.IOException
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -22,7 +25,7 @@ import com.xyst.dinas.statistics.web.Info.ConditionsDetailsInfo;
...
@@ -22,7 +25,7 @@ import com.xyst.dinas.statistics.web.Info.ConditionsDetailsInfo;
public
class
DownLoadStatisticsController
{
public
class
DownLoadStatisticsController
{
@Autowired
@Autowired
DownLoadStatisticsService
downLoadStatisticsService
;
DownLoadStatisticsService
downLoadStatisticsService
;
private
Logger
logger
=
LoggerFactory
.
getLogger
(
this
.
getClass
());
@PostMapping
(
value
=
"/DownLoadStatistics/downLoadStatisticsService"
)
@PostMapping
(
value
=
"/DownLoadStatistics/downLoadStatisticsService"
)
public
void
downLoadStatisticsService
(
HttpServletResponse
response
,
HttpServletRequest
request
)
throws
JSONException
{
public
void
downLoadStatisticsService
(
HttpServletResponse
response
,
HttpServletRequest
request
)
throws
JSONException
{
String
exportParamStr
=
request
.
getParameter
(
"exportParamStr"
);
String
exportParamStr
=
request
.
getParameter
(
"exportParamStr"
);
...
@@ -44,8 +47,10 @@ public class DownLoadStatisticsController {
...
@@ -44,8 +47,10 @@ public class DownLoadStatisticsController {
downLoadStatisticsService
.
downLoadStatisticsServiceTable
(
response
,
request
,
conditionsDetailsInfo
);
downLoadStatisticsService
.
downLoadStatisticsServiceTable
(
response
,
request
,
conditionsDetailsInfo
);
}
catch
(
RuntimeException
e
)
{
}
catch
(
RuntimeException
e
)
{
// TODO: handle exception
// TODO: handle exception
logger
.
info
(
"导出数据时出现错误信息!请确认!"
+
e
.
getMessage
());
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
// TODO Auto-generated catch block
logger
.
info
(
"导出数据时出现错误信息!请确认!"
+
e
.
getMessage
());
}
}
}
}
}
}
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