|
@@ -17,10 +17,7 @@ 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;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* @ author :TXF
|
|
@@ -37,8 +34,9 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
@Autowired
|
|
|
ColumnDataUtil columnDataUtil;
|
|
|
|
|
|
- private final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ private final SimpleDateFormat sdfDate = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
|
+ private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
@ApiOperation(value="查询辅料燃料统计报表")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
@@ -57,7 +55,7 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
Integer orderType
|
|
|
){
|
|
|
mapValue.put("orderTypee", orderType);
|
|
|
- DataChange.queryDataByDate(startTime, endTime, mapValue, sdf);//根据时间段查询数据
|
|
|
+ DataChange.queryDataByDate(startTime, endTime, mapValue, sdfDate);//根据时间段查询数据
|
|
|
List<Map<String, Object>> allReport = statisticalReportService.getAllPurchaseFLRLReport(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页数据
|
|
@@ -88,7 +86,7 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
mapValue.put("carrierSsoId", carrierSsoId);
|
|
|
}
|
|
|
}
|
|
|
- DataChange.queryDataByDate(startTime, endTime, mapValue, sdf);//根据时间段查询数据
|
|
|
+ DataChange.queryDataByTwoDate(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
|
|
|
List<Map<String, Object>> allReport = statisticalReportService.getAllSaleReportNum(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页数据
|
|
@@ -123,7 +121,7 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
mapValue.put("carrierSsoId", carrierSsoId);
|
|
|
}
|
|
|
}
|
|
|
- DataChange.queryDataByDate(startTime, endTime, mapValue, sdf);//根据时间段查询数据
|
|
|
+ DataChange.queryDataByDate(startTime, endTime, mapValue, sdfDate);//根据时间段查询数据
|
|
|
if (userId!=null){
|
|
|
mapValue.put("userId",userId);
|
|
|
}
|
|
@@ -170,7 +168,7 @@ public class StatisticalReportController extends BaseRESTfulController {
|
|
|
mapValue.put("carrierSsoId", carrierSsoId);
|
|
|
}
|
|
|
}
|
|
|
- DataChange.queryDataByDate(startTime, endTime, mapValue, sdf);//根据时间段查询数据
|
|
|
+ DataChange.queryDataByDate(startTime, endTime, mapValue, sdfDate);//根据时间段查询数据
|
|
|
if (con!=null&&!con.equals("undefined")){
|
|
|
mapValue.put("con","%"+con+"%");
|
|
|
}
|