Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d1683b69
authored
May 18, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发试驾数据
1 parent
9ecc22a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/controller/EffectiveTestDriveReportController.java
src/main/java/cn/com/glsx/admin/modules/controller/EffectiveTestDriveReportController.java
View file @
d1683b6
package
cn
.
com
.
glsx
.
admin
.
modules
.
controller
;
package
cn
.
com
.
glsx
.
admin
.
modules
.
controller
;
import
brave.http.HttpServerResponse
;
import
cn.com.glsx.admin.modules.model.EffectiveTestDriveDTO
;
import
cn.com.glsx.admin.modules.model.EffectiveTestDriveDTO
;
import
cn.com.glsx.admin.modules.model.excel.EffectiveTestDriveReportExcel
;
import
cn.com.glsx.admin.modules.model.excel.EffectiveTestDriveReportExcel
;
import
cn.com.glsx.admin.modules.service.EffectiveTestDriveReportService
;
import
cn.com.glsx.admin.modules.service.EffectiveTestDriveReportService
;
...
@@ -17,7 +16,6 @@ import org.apache.commons.collections.CollectionUtils;
...
@@ -17,7 +16,6 @@ import org.apache.commons.collections.CollectionUtils;
import
org.apache.commons.lang.time.DateFormatUtils
;
import
org.apache.commons.lang.time.DateFormatUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -50,7 +48,7 @@ public class EffectiveTestDriveReportController {
...
@@ -50,7 +48,7 @@ public class EffectiveTestDriveReportController {
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
@SysLog
(
"查询试驾数据"
)
@SysLog
(
"查询试驾数据"
)
@ApiOperation
(
value
=
"试驾报表查询"
)
@ApiOperation
(
value
=
"试驾报表查询"
)
public
R
listGqWindReportPage
(
@RequestBody
EffectiveTestDriveDTO
reportRequest
,
@RequestBody
PageInfo
page
)
{
public
R
listGqWindReportPage
(
EffectiveTestDriveDTO
reportRequest
,
PageInfo
page
)
{
PageHelper
.
startPage
(
page
.
getPageNum
(),
page
.
getPageSize
(),
true
);
PageHelper
.
startPage
(
page
.
getPageNum
(),
page
.
getPageSize
(),
true
);
// 优先查询试驾 d_electric_fence_drive 表获取分页页数
// 优先查询试驾 d_electric_fence_drive 表获取分页页数
...
@@ -73,7 +71,7 @@ public class EffectiveTestDriveReportController {
...
@@ -73,7 +71,7 @@ public class EffectiveTestDriveReportController {
@GetMapping
(
value
=
"/exportReport"
)
@GetMapping
(
value
=
"/exportReport"
)
@SysLog
(
"导出试驾车辆数据"
)
@SysLog
(
"导出试驾车辆数据"
)
@ApiOperation
(
value
=
"试驾报表导出"
)
@ApiOperation
(
value
=
"试驾报表导出"
)
public
void
exportGqWindReport
(
@RequestBody
EffectiveTestDriveDTO
reportRequest
)
throws
IOException
{
public
void
exportGqWindReport
(
EffectiveTestDriveDTO
reportRequest
)
throws
IOException
{
response
.
setContentType
(
"application/vnd.ms-excel"
);
response
.
setContentType
(
"application/vnd.ms-excel"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setCharacterEncoding
(
"utf-8"
);
String
fileName
=
"有效试驾次数统计(按日"
+
DateFormatUtils
.
format
(
new
Date
(),
"yyyy-MM-dd"
)
+
")表"
;
String
fileName
=
"有效试驾次数统计(按日"
+
DateFormatUtils
.
format
(
new
Date
(),
"yyyy-MM-dd"
)
+
")表"
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment