|
|
@ -27,10 +27,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
@ -137,7 +134,7 @@ public class UdiTraceController {
|
|
|
|
if (filterCodeTraceRequest.getCode() == null) {
|
|
|
|
if (filterCodeTraceRequest.getCode() == null) {
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
System.out.println(filterCodeTraceRequest+"---------------------------------------------");
|
|
|
|
System.out.println(filterCodeTraceRequest + "---------------------------------------------");
|
|
|
|
UdiEntity udiEntity = FilterUdiUtils.getUdi(filterCodeTraceRequest.getCode());
|
|
|
|
UdiEntity udiEntity = FilterUdiUtils.getUdi(filterCodeTraceRequest.getCode());
|
|
|
|
if (udiEntity == null) {
|
|
|
|
if (udiEntity == null) {
|
|
|
|
return ResultVOUtils.error(500, "无效条码");
|
|
|
|
return ResultVOUtils.error(500, "无效条码");
|
|
|
@ -205,8 +202,6 @@ public class UdiTraceController {
|
|
|
|
mInvProductDetailEntities.addAll(invProductDetailEntities);
|
|
|
|
mInvProductDetailEntities.addAll(invProductDetailEntities);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mInvProductDetailEntities.size() > 0) {
|
|
|
|
if (mInvProductDetailEntities.size() > 0) {
|
|
|
|
Map<String, String> filterMap = new HashMap<>();
|
|
|
|
Map<String, String> filterMap = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
|
@ -222,6 +217,7 @@ public class UdiTraceController {
|
|
|
|
filterOrderRequest.setPage(filterCodeTraceRequest.getPage());
|
|
|
|
filterOrderRequest.setPage(filterCodeTraceRequest.getPage());
|
|
|
|
filterOrderRequest.setLimit(filterCodeTraceRequest.getLimit());
|
|
|
|
filterOrderRequest.setLimit(filterCodeTraceRequest.getLimit());
|
|
|
|
List<IoOrderResponse> orderEntities = orderService.filterList(filterOrderRequest);
|
|
|
|
List<IoOrderResponse> orderEntities = orderService.filterList(filterOrderRequest);
|
|
|
|
|
|
|
|
Collections.sort(orderEntities, Comparator.comparing(IoOrderResponse::getCreateTime));
|
|
|
|
PageInfo<IoOrderResponse> pageInfo;
|
|
|
|
PageInfo<IoOrderResponse> pageInfo;
|
|
|
|
pageInfo = new PageInfo<>(orderEntities);
|
|
|
|
pageInfo = new PageInfo<>(orderEntities);
|
|
|
|
PageSimpleResponse<IoOrderResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
PageSimpleResponse<IoOrderResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|