| | |
| | | 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; |
| | | |
| | |
| | | |
| | | @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"); |
| | |
| | | wrapper); |
| | | |
| | | return new PaginationData<>(entityPage.getRecords(), new Pagination(entityPage)); |
| | | |
| | | } |
| | | |
| | | @Override |