|
@@ -165,11 +165,6 @@ public class ImportOrExportSj implements ImportOrExportPolicy {
|
|
|
List<PolicyOutResult> manZu = ListUtils.newArrayList();
|
|
|
List<PolicyOutResult> noManZu = ListUtils.newArrayList();
|
|
|
|
|
|
- // 排序优先出内道
|
|
|
- outPar.getWInventoryManagementGroupList().sort(((a,b)->{
|
|
|
- return a.getDistanceRoadwayNumber()-b.getDistanceRoadwayNumber();
|
|
|
- }));
|
|
|
-
|
|
|
for (WInventoryManagementGroup wInventoryManagementGroup : outPar.getWInventoryManagementGroupList()) {
|
|
|
PolicyOutResult policyOutResult = BeanCopyUtil.copyPropertiesSet(wInventoryManagementGroup, PolicyOutResult::new);
|
|
|
wInventoryManagementGroup.setAmount(wInventoryManagementGroup.getAmount() == null ? 0 : wInventoryManagementGroup.getAmount());
|
|
@@ -180,11 +175,13 @@ public class ImportOrExportSj implements ImportOrExportPolicy {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 排序优先出内道
|
|
|
manZu.sort(((o1,o2) -> {
|
|
|
//从小到大
|
|
|
return (o1.getDistanceRoadwayNumber()==null?0:o1.getDistanceRoadwayNumber()) - (o2.getDistanceRoadwayNumber()==null? 0:o2.getDistanceRoadwayNumber());
|
|
|
}));
|
|
|
|
|
|
+ // 排序优先出内道
|
|
|
noManZu.sort(((o1,o2) -> {
|
|
|
//从小到大
|
|
|
return (o1.getDistanceRoadwayNumber()==null?0:o1.getDistanceRoadwayNumber()) - (o2.getDistanceRoadwayNumber()==null? 0:o2.getDistanceRoadwayNumber());
|