|
|
|
@@ -3,12 +3,15 @@ package com.iformall.controller; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.service.DataTowerService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
@Api(description = "数据塔台") |
|
|
|
@@ -74,10 +77,27 @@ public class DataTowerController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查询客流") |
|
|
|
@PostMapping("/queryCustomerData") |
|
|
|
public ResultData queryCustomerData(@RequestBody Map<String, String> params) { |
|
|
|
@GetMapping("/queryCustomerData") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "report_id", value = "report_id", dataType = "String", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "chart_id", value = "chart_id", dataType = "String", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "date", value = "日期", dataType = "String", paramType = "query", required = false), |
|
|
|
@ApiImplicitParam(name = "shopIds", value = "场所", dataType = "String", paramType = "query", required = false), |
|
|
|
@ApiImplicitParam(name = "page", value = "当前页", dataType = "String", paramType = "query", required = false), |
|
|
|
@ApiImplicitParam(name = "size", value = "条数", dataType = "String", paramType = "query", required = false), |
|
|
|
@ApiImplicitParam(name = "dataType", value = "类型", dataType = "String", paramType = "query", required = false)}) |
|
|
|
public ResultData queryCustomerData(String report_id, String chart_id, String date, String shopIds, String page, String size, String dataType) { |
|
|
|
logger.debug("[" + getIpAddr() + "] DataTowerController::queryCustomer"); |
|
|
|
|
|
|
|
Map<String, String> params = new HashMap<>(7); |
|
|
|
params.put("report_id", report_id); |
|
|
|
params.put("chart_id", chart_id); |
|
|
|
params.put("date", date); |
|
|
|
params.put("shopIds", shopIds); |
|
|
|
params.put("page", page); |
|
|
|
params.put("size", size); |
|
|
|
params.put("dataType", dataType); |
|
|
|
|
|
|
|
return dataTowerService.queryCustomerData(getTenantId(), params); |
|
|
|
} |
|
|
|
|
|
|
|
|