|
@@ -65,6 +65,7 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
return success(pageList);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@ApiOperation(value="查询销售统计报表")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
@@ -220,4 +221,33 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allReport, report);
|
|
|
return success(pageList);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value="查询采购内转统计报表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
|
|
|
+ })
|
|
|
+ @PostMapping("/getPurInwardReport")
|
|
|
+ public RESTfulResult getPurInwardReport(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ String startTime,
|
|
|
+ String endTime,
|
|
|
+ String con
|
|
|
+ ){
|
|
|
+ DataChange.queryDataByDate(startTime, endTime, mapValue, sdfDate);//根据时间段查询数据
|
|
|
+ if (con!=null&&!con.equals("undefined")){
|
|
|
+ mapValue.put("con","%"+con+"%");
|
|
|
+ }
|
|
|
+ List<Map<String, Object>> allReport = statisticalReportService.getPurInwardReport(mapValue);
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
+ //分页数据
|
|
|
+ List<Map<String, Object>> report = statisticalReportService.getPurInwardReport(mapValue);
|
|
|
+ PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allReport, report);
|
|
|
+ return success(pageList);
|
|
|
+ }
|
|
|
}
|