|
@@ -3,6 +3,7 @@ package com.steerinfo.dil.controller;
|
|
|
import com.steerinfo.dil.service.impl.StatisticalReportImpl;
|
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
@@ -15,6 +16,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -34,6 +37,8 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
@Autowired
|
|
|
ColumnDataUtil columnDataUtil;
|
|
|
|
|
|
+ private final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+
|
|
|
@ApiOperation(value="查询辅料燃料统计报表")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
@@ -47,9 +52,12 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
+ String startTime,
|
|
|
+ String endTime,
|
|
|
Integer orderType
|
|
|
){
|
|
|
mapValue.put("orderTypee", orderType);
|
|
|
+ DataChange.queryDataByDate(startTime, endTime, mapValue, sdf);//根据时间段查询数据
|
|
|
List<Map<String, Object>> allReport = statisticalReportService.getAllPurchaseFLRLReport(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页数据
|
|
@@ -71,6 +79,8 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
+ String startTime,
|
|
|
+ String endTime,
|
|
|
String carrierSsoId
|
|
|
){
|
|
|
if(carrierSsoId != null){
|
|
@@ -78,6 +88,7 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
mapValue.put("carrierSsoId", carrierSsoId);
|
|
|
}
|
|
|
}
|
|
|
+ DataChange.queryDataByDate(startTime, endTime, mapValue, sdf);//根据时间段查询数据
|
|
|
List<Map<String, Object>> allReport = statisticalReportService.getAllSaleReportNum(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页数据
|
|
@@ -99,13 +110,32 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- String carrierSsoId
|
|
|
+ String startTime,
|
|
|
+ String endTime,
|
|
|
+ String carrierSsoId,
|
|
|
+ String userId,
|
|
|
+ String userIds,
|
|
|
+ String con,
|
|
|
+ Integer orderType
|
|
|
){
|
|
|
- if(carrierSsoId != null){
|
|
|
- if(!"null".equals(carrierSsoId)){
|
|
|
+ if(carrierSsoId != null) {
|
|
|
+ if (!"null".equals(carrierSsoId)) {
|
|
|
mapValue.put("carrierSsoId", carrierSsoId);
|
|
|
}
|
|
|
}
|
|
|
+ DataChange.queryDataByDate(startTime, endTime, mapValue, sdf);//根据时间段查询数据
|
|
|
+ if (userId!=null){
|
|
|
+ mapValue.put("userId",userId);
|
|
|
+ }
|
|
|
+ if (orderType!=null){
|
|
|
+ mapValue.put("orderType",orderType);
|
|
|
+ }
|
|
|
+ if (userIds!=null){
|
|
|
+ mapValue.put("userIds",userIds);
|
|
|
+ }
|
|
|
+ if (con!=null&&!con.equals("undefined")){
|
|
|
+ mapValue.put("con","%"+con+"%");
|
|
|
+ }
|
|
|
List<Map<String, Object>> allReport = statisticalReportService.getSporadicSuppliesReportNum1(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页数据
|
|
@@ -127,13 +157,32 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- String carrierSsoId
|
|
|
+ String startTime,
|
|
|
+ String endTime,
|
|
|
+ String carrierSsoId,
|
|
|
+ String userId,
|
|
|
+ String userIds,
|
|
|
+ String con,
|
|
|
+ Integer orderType
|
|
|
){
|
|
|
if(carrierSsoId != null){
|
|
|
if(!"null".equals(carrierSsoId)){
|
|
|
mapValue.put("carrierSsoId", carrierSsoId);
|
|
|
}
|
|
|
}
|
|
|
+ DataChange.queryDataByDate(startTime, endTime, mapValue, sdf);//根据时间段查询数据
|
|
|
+ if (con!=null&&!con.equals("undefined")){
|
|
|
+ mapValue.put("con","%"+con+"%");
|
|
|
+ }
|
|
|
+ if (userId!=null){
|
|
|
+ mapValue.put("userId",userId);
|
|
|
+ }
|
|
|
+ if (orderType!=null){
|
|
|
+ mapValue.put("orderType",orderType);
|
|
|
+ }
|
|
|
+ if (userIds!=null){
|
|
|
+ mapValue.put("userIds",userIds);
|
|
|
+ }
|
|
|
List<Map<String, Object>> allReport = statisticalReportService.getSporadicSuppliesReportNum2(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页数据
|