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
57116d00
Commit
57116d00
authored
May 19, 2021
by
wukaiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据下载请求方式为表单
parent
046eed59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
DownLoadStatisticsController.java
...st/dinas/statistics/web/DownLoadStatisticsController.java
+20
-3
No files found.
backend/xyst.dinas.statistics/src/main/java/com/xyst/dinas/statistics/web/DownLoadStatisticsController.java
View file @
57116d00
...
...
@@ -9,9 +9,12 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.beecode.xlib.json.JSONException
;
import
com.beecode.xlib.json.JSONObject
;
import
com.xyst.dinas.statistics.service.DownLoadStatisticsService
;
import
com.xyst.dinas.statistics.web.Info.ConditionsDetailsInfo
;
...
...
@@ -20,10 +23,24 @@ public class DownLoadStatisticsController {
@Autowired
DownLoadStatisticsService
downLoadStatisticsService
;
@PostMapping
(
value
=
"/DownLoadStatistics/downLoadStatisticsService"
,
consumes
=
"application/json"
)
public
void
downLoadStatisticsService
(
HttpServletResponse
response
,
HttpServletRequest
request
,
@RequestBody
ConditionsDetailsInfo
conditionsDetailsInfo
)
{
@PostMapping
(
value
=
"/DownLoadStatistics/downLoadStatisticsService"
)
public
void
downLoadStatisticsService
(
HttpServletResponse
response
,
HttpServletRequest
request
)
throws
JSONException
{
String
exportParamStr
=
request
.
getParameter
(
"exportParamStr"
);
response
.
reset
();
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setContentType
(
"application/x-www-form-urlencoded"
);
JSONObject
obj
=
new
JSONObject
(
exportParamStr
);
try
{
ConditionsDetailsInfo
conditionsDetailsInfo
=
new
ConditionsDetailsInfo
();
conditionsDetailsInfo
.
setStartDate
(
obj
.
getString
(
"startDate"
));
conditionsDetailsInfo
.
setEndDate
(
obj
.
getString
(
"endDate"
));
conditionsDetailsInfo
.
setPurchaseSandUnit
(
obj
.
getString
(
"purchaseSandUnit"
));
conditionsDetailsInfo
.
setProject
(
obj
.
getString
(
"project"
));
conditionsDetailsInfo
.
setFundType
(
obj
.
getString
(
"fundType"
));
conditionsDetailsInfo
.
setDealYear
(
obj
.
getString
(
"dealYear"
));
conditionsDetailsInfo
.
setRegionalCompany
(
obj
.
getString
(
"regionalCompany"
));
conditionsDetailsInfo
.
setFileType
(
obj
.
getString
(
"fileType"
));
conditionsDetailsInfo
.
setStationList
(
obj
.
getString
(
"stationList"
));
downLoadStatisticsService
.
downLoadStatisticsServiceTable
(
response
,
request
,
conditionsDetailsInfo
);
}
catch
(
RuntimeException
e
)
{
// TODO: handle exception
...
...
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