rain
2024-08-21 2db1aa88e8ab53096a936163d686b90d8e056a99
src/main/java/com/dji/sample/log/service/impl/DroneFlightLogServiceImpl.java
@@ -10,9 +10,6 @@
import com.dji.sample.log.model.entity.DroneFlightLogEntity;
import com.dji.sample.log.model.entity.DroneFlightLogInfoEntity;
import com.dji.sample.log.service.IDroneFlightLogService;
import com.dji.sample.manage.model.dto.WorkspaceDTO;
import com.dji.sample.manage.model.entity.DeviceEntity;
import com.dji.sample.manage.model.entity.WorkspaceEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -36,8 +33,7 @@
    @Override
    public PaginationData<DroneFlightLogEntity> selectDroneFlightLog(long page, long pageSize, String workspaceId) {
//        LambdaQueryWrapper wrapper = new LambdaQueryWrapper<DroneFlightLogEntity>().eq(DroneFlightLogEntity::getWorkspaceId, workspaceId);
//        wrapper.orderByDesc("start_time");
        QueryWrapper<DroneFlightLogEntity> wrapper = new QueryWrapper<>();
        wrapper.lambda().eq(DroneFlightLogEntity::getWorkspaceId, workspaceId);
        wrapper.orderByDesc("start_time");
@@ -46,6 +42,7 @@
                wrapper);
        return new PaginationData<>(entityPage.getRecords(), new Pagination(entityPage));
    }
    @Override