任务BUG修改
This commit is contained in:
+6
@@ -20,7 +20,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 货主租赁明细Api
|
||||
@@ -148,6 +150,10 @@ public class ShipperLeaseDetailsApi extends BaseController{
|
||||
{
|
||||
ShipperLeaseDetailsDO shipperLeaseDetailsDO = shipperLeaseDetailsAssembler.toDO(shipperLeaseDetailsDTO);
|
||||
List<WarehouseOccupancyRate> warehouseOccupancyRates = leaseApplicationService.warehouseOccupancyRate(shipperLeaseDetailsDO);
|
||||
// 按照businessDate倒序排序
|
||||
warehouseOccupancyRates = warehouseOccupancyRates.stream()
|
||||
.sorted(Comparator.comparing(WarehouseOccupancyRate::getBusinessDate, Comparator.nullsLast(Comparator.reverseOrder())))
|
||||
.collect(Collectors.toList());
|
||||
return getDataTable(warehouseOccupancyRates);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user