Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
1841c1f6
Commit
1841c1f6
authored
May 06, 2019
by
qiankunpingtai
Browse files
修改导出时既返回流又返回json数据导致后台异常的问题
parent
2fe10c75
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/controller/DepotItemController.java
View file @
1841c1f6
...
...
@@ -660,7 +660,7 @@ public class DepotItemController {
* @return
*/
@GetMapping
(
value
=
"/exportExcel"
)
public
BaseResponseInfo
exportExcel
(
@RequestParam
(
"currentPage"
)
Integer
currentPage
,
public
void
exportExcel
(
@RequestParam
(
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
"pageSize"
)
Integer
pageSize
,
@RequestParam
(
"projectId"
)
Integer
projectId
,
@RequestParam
(
"monthTime"
)
String
monthTime
,
...
...
@@ -717,10 +717,6 @@ public class DepotItemController {
message
=
"导出失败"
;
res
.
code
=
500
;
}
/**
* 2019-01-15response已经返回,finally部分完全没必要
* */
return
res
;
}
/**
...
...
src/main/java/com/jsh/erp/controller/MaterialController.java
View file @
1841c1f6
...
...
@@ -199,7 +199,7 @@ public class MaterialController {
* @return
*/
@GetMapping
(
value
=
"/exportExcel"
)
public
BaseResponseInfo
exportExcel
(
@RequestParam
(
"name"
)
String
name
,
public
void
exportExcel
(
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
"model"
)
String
model
,
@RequestParam
(
"categoryId"
)
Long
categoryId
,
@RequestParam
(
"categoryIds"
)
String
categoryIds
,
...
...
@@ -240,7 +240,6 @@ public class MaterialController {
map
.
put
(
"message"
,
message
);
res
.
data
=
map
;
}
return
res
;
}
/**
...
...
Write
Preview
Supports
Markdown
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