|
@@ -5,6 +5,7 @@ import com.steerinfo.dil.model.AmstruckInwardRequirement;
|
|
|
import com.steerinfo.dil.service.IAmstruckInwardRequirementService;
|
|
|
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,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.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -43,6 +45,7 @@ public class AmstruckInwardRequirementController extends BaseRESTfulController {
|
|
|
@Autowired
|
|
|
ESFeign esFeign;
|
|
|
|
|
|
+ private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
/**
|
|
|
*用车单位提出需求
|
|
|
*新增用车需求
|
|
@@ -140,7 +143,9 @@ public class AmstruckInwardRequirementController extends BaseRESTfulController {
|
|
|
Integer apiId,
|
|
|
Integer requirementStatus,
|
|
|
String orgCode,
|
|
|
- String index) {
|
|
|
+ String index,
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
if (mapValue == null) {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
@@ -151,6 +156,7 @@ public class AmstruckInwardRequirementController extends BaseRESTfulController {
|
|
|
if (index != null && !"null".equals(index)) {
|
|
|
mapValue.put("index","%"+index+"%");
|
|
|
}
|
|
|
+ DataChange.queryDataByDateTime(startTime, endTime, mapValue,sdfDateTime);//根据时间段查询数据
|
|
|
mapValue.put("requirementStatus",requirementStatus);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
@@ -169,7 +175,9 @@ public class AmstruckInwardRequirementController extends BaseRESTfulController {
|
|
|
String userId,
|
|
|
String carrierSsoId,
|
|
|
String enableStatus,
|
|
|
- String planStatus) {
|
|
|
+ String planStatus,
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
|
|
|
if (mapValue == null) {
|
|
|
mapValue = new HashMap<>();
|
|
@@ -186,7 +194,11 @@ public class AmstruckInwardRequirementController extends BaseRESTfulController {
|
|
|
if(planStatus != null){
|
|
|
mapValue.put("planStatus",planStatus);
|
|
|
}
|
|
|
+ if(con != null && !"null".equals(con)){
|
|
|
+ mapValue.put("con","%" + con + "%");
|
|
|
+ }
|
|
|
mapValue.put("requirementStatus",requirementStatus);
|
|
|
+ DataChange.queryDataByDateTime(startTime, endTime, mapValue,sdfDateTime);//根据时间段查询数据
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = amstruckInwardRequirementService.getPurRequirementList(mapValue);
|