package com.tuoheng.admin.tzhl;

import com.tuoheng.admin.entity.Inspection;
import com.tuoheng.admin.mapper.InspectionMapper;
import com.tuoheng.admin.tzhl.service.fly.data.FlyDataService;
import com.tuoheng.admin.tzhl.service.fly.log.FlyLogService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class TZHLFlyDataServiceTest {

    @Autowired
    private InspectionMapper inspectionMapper;

    @Autowired
    private FlyDataService flyDataService;

    @Test
    public void testFlyData() {
        String id = "8ff6481ce78ad2a1315e85332c33b9c2";
        Inspection inspection = inspectionMapper.selectById(id);
        flyDataService.getFlyData(inspection);
    }

}
