|
@@ -1,6 +1,5 @@
|
|
|
package com.steerinfo.dil.controller;
|
|
|
|
|
|
-import com.steerinfo.dil.feign.ESFeign;
|
|
|
import com.steerinfo.dil.feign.TmsTruckFeign;
|
|
|
import com.steerinfo.dil.mapper.OmstruckOrderSeparateMapper;
|
|
|
import com.steerinfo.dil.model.OmstruckOrder;
|
|
@@ -18,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
@@ -41,8 +41,8 @@ public class OmstruckOrderSeparateController extends BaseRESTfulController {
|
|
|
@Autowired
|
|
|
ColumnDataUtil columnDataUtil;
|
|
|
|
|
|
- @Autowired
|
|
|
- ESFeign esFeign;
|
|
|
+
|
|
|
+ private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
@PostMapping("/getOrderMes")
|
|
|
public RESTfulResult getMes(@RequestBody(required = false) Map<String, Object> map){
|
|
@@ -142,8 +142,11 @@ public class OmstruckOrderSeparateController extends BaseRESTfulController {
|
|
|
String con,
|
|
|
String userId,
|
|
|
String usersId,
|
|
|
- Integer type1
|
|
|
+ Integer type1,
|
|
|
+ String startTime,
|
|
|
+ String endTime
|
|
|
) {
|
|
|
+ DataChange.queryDataByDateTime(startTime, endTime, mapValue,sdfDateTime);//根据时间段查询数据
|
|
|
if (orderStatus != null) {
|
|
|
mapValue.put("status", orderStatus);
|
|
|
}
|
|
@@ -162,6 +165,9 @@ public class OmstruckOrderSeparateController extends BaseRESTfulController {
|
|
|
if (usersId!=null){
|
|
|
mapValue.put("usersId",usersId);
|
|
|
}
|
|
|
+ if(con != null && !"null".equals(con)){
|
|
|
+ mapValue.put("con","%" + con + "%");
|
|
|
+ }
|
|
|
//框计算
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页数据
|