Commit d1683b69 by 杨林龙

开发试驾数据

1 parent 9ecc22a1
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.excel.EffectiveTestDriveReportExcel;
import cn.com.glsx.admin.modules.service.EffectiveTestDriveReportService;
......@@ -17,7 +16,6 @@ import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.time.DateFormatUtils;
import org.springframework.beans.factory.annotation.Autowired;
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.RestController;
......@@ -50,7 +48,7 @@ public class EffectiveTestDriveReportController {
@GetMapping("/list")
@SysLog("查询试驾数据")
@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);
// 优先查询试驾 d_electric_fence_drive 表获取分页页数
......@@ -73,7 +71,7 @@ public class EffectiveTestDriveReportController {
@GetMapping(value = "/exportReport")
@SysLog("导出试驾车辆数据")
@ApiOperation(value = "试驾报表导出")
public void exportGqWindReport(@RequestBody EffectiveTestDriveDTO reportRequest) throws IOException {
public void exportGqWindReport(EffectiveTestDriveDTO reportRequest) throws IOException {
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding("utf-8");
String fileName = "有效试驾次数统计(按日" + DateFormatUtils.format(new Date(), "yyyy-MM-dd") + ")表";
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!