Commit 9d7d9c42 by 高晓磊

价格趋势图排序

parent 42423d5e
...@@ -94,7 +94,9 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService { ...@@ -94,7 +94,9 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService {
e.printStackTrace(); e.printStackTrace();
} }
}); });
stationDetail.setTimeValues(timeValues2); List<TimeValue> timeValues21 = timeValues2;
timeValues21=timeValues21.stream().sorted(Comparator.comparing(TimeValue::getTime)).collect(Collectors.toList());
stationDetail.setTimeValues(timeValues21);
} }
} }
return detailsByFilter; return detailsByFilter;
...@@ -167,7 +169,7 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService { ...@@ -167,7 +169,7 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService {
return; return;
} }
for (KObject kObject : kObjects) { for (KObject kObject : kObjects) {
if(kObject.getString(BaseConstants.ID).equals(kObject.getString(BaseConstants.ID))){ if(kObject.getString(BaseConstants.ID).equals(kobject.getString(BaseConstants.ID))){
continue; continue;
} }
kObject.set("adjustmentStatus", PriceAdjustmentAdjustmentStatusEnum.ABOLITION.getValue()); kObject.set("adjustmentStatus", PriceAdjustmentAdjustmentStatusEnum.ABOLITION.getValue());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment