|
@@ -6,6 +6,7 @@ import com.steerinfo.dil.service.ITmstruckWeightResultService;
|
|
import com.steerinfo.dil.service.impl.TmstruckWeightResultServiceImpl;
|
|
import com.steerinfo.dil.service.impl.TmstruckWeightResultServiceImpl;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
@@ -16,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -47,6 +49,8 @@ public class TmstruckWeightResultController extends BaseRESTfulController {
|
|
@Autowired
|
|
@Autowired
|
|
ColumnDataUtil columnDataUtil;
|
|
ColumnDataUtil columnDataUtil;
|
|
|
|
|
|
|
|
+ private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
+
|
|
@ApiOperation(value="新增计量实绩 ")
|
|
@ApiOperation(value="新增计量实绩 ")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "mapValue", value = "总实绩ID、计皮点、计毛点", required = false, dataType = "Map"),
|
|
@ApiImplicitParam(name = "mapValue", value = "总实绩ID、计皮点、计毛点", required = false, dataType = "Map"),
|
|
@@ -74,17 +78,23 @@ public class TmstruckWeightResultController extends BaseRESTfulController {
|
|
Integer orderType,
|
|
Integer orderType,
|
|
String con,
|
|
String con,
|
|
String userId,
|
|
String userId,
|
|
- String usersId
|
|
|
|
|
|
+ String usersId,
|
|
|
|
+ String startTime,
|
|
|
|
+ String endTime
|
|
){
|
|
){
|
|
if (orderType!=null) {
|
|
if (orderType!=null) {
|
|
mapValue.put("orderTypee", orderType);
|
|
mapValue.put("orderTypee", orderType);
|
|
}
|
|
}
|
|
|
|
+ if (con!=null&&!"null".equals(con)){
|
|
|
|
+ mapValue.put("con",con);
|
|
|
|
+ }
|
|
if (userId!=null){
|
|
if (userId!=null){
|
|
mapValue.put("userId",userId);
|
|
mapValue.put("userId",userId);
|
|
}
|
|
}
|
|
if (usersId!=null){
|
|
if (usersId!=null){
|
|
mapValue.put("usersId",usersId);
|
|
mapValue.put("usersId",usersId);
|
|
}
|
|
}
|
|
|
|
+ DataChange.queryDataByDateTime(startTime, endTime, mapValue,sdfDateTime);//根据时间段查询数据
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
List<Map<String, Object>> jiMaoResult = tmstruckWeightResultService.getAllJiMaoResult(mapValue);
|
|
List<Map<String, Object>> jiMaoResult = tmstruckWeightResultService.getAllJiMaoResult(mapValue);
|
|
@@ -109,18 +119,24 @@ public class TmstruckWeightResultController extends BaseRESTfulController {
|
|
Integer orderType,
|
|
Integer orderType,
|
|
String con,
|
|
String con,
|
|
String userId,
|
|
String userId,
|
|
- String userIds
|
|
|
|
|
|
+ String userIds,
|
|
|
|
+ String startTime,
|
|
|
|
+ String endTime
|
|
){
|
|
){
|
|
|
|
|
|
if (orderType!=null) {
|
|
if (orderType!=null) {
|
|
mapValue.put("orderTypee", orderType);
|
|
mapValue.put("orderTypee", orderType);
|
|
}
|
|
}
|
|
|
|
+ if (con!=null&&!"null".equals(con)){
|
|
|
|
+ mapValue.put("con",con);
|
|
|
|
+ }
|
|
if (userId!=null) {
|
|
if (userId!=null) {
|
|
mapValue.put("userId",userId);
|
|
mapValue.put("userId",userId);
|
|
}
|
|
}
|
|
if (userIds!=null) {
|
|
if (userIds!=null) {
|
|
mapValue.put("usersId", userIds);
|
|
mapValue.put("usersId", userIds);
|
|
}
|
|
}
|
|
|
|
+ DataChange.queryDataByDateTime(startTime, endTime, mapValue,sdfDateTime);//根据时间段查询数据
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
List<Map<String, Object>> jiPiResult = tmstruckWeightResultService.getAllJiPiResult(mapValue);
|
|
List<Map<String, Object>> jiPiResult = tmstruckWeightResultService.getAllJiPiResult(mapValue);
|