|
@@ -3,6 +3,7 @@ import com.steerinfo.dil.feign.ESFeign;
|
|
|
import com.steerinfo.dil.service.ITmstruckTimeTaskResultService;
|
|
|
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;
|
|
@@ -12,6 +13,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -42,6 +44,7 @@ public class TmstruckTimeTaskResultController extends BaseRESTfulController {
|
|
|
@Autowired
|
|
|
ColumnDataUtil columnDataUtil;
|
|
|
|
|
|
+ private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
@ApiOperation(value="司机申请开始")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "mapValue", value = "运输订单号", required = false, dataType = "Map"),
|
|
@@ -204,8 +207,11 @@ public class TmstruckTimeTaskResultController extends BaseRESTfulController {
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
String con,
|
|
|
- String userId
|
|
|
+ String userId,
|
|
|
+ String startTime,
|
|
|
+ String endTime
|
|
|
){
|
|
|
+ DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
|
|
|
if (con!=null&&!con.equals("undifined")&&!con.equals("")){
|
|
|
mapValue.put("con","%" + con + "%");
|
|
|
}
|