package com.njcn.influx;

import com.njcn.influx.imapper.CldStatisticsFlowMapper;
import com.njcn.influx.pojo.dto.StatisticalDataDTO;
import com.njcn.influx.pojo.po.DataV;
import com.njcn.influx.service.CommonService;
import com.njcn.influx.service.DataFlickerService;
import com.njcn.influx.service.IDataVService;
import lombok.SneakyThrows;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2021年12月14日 12:55
 */
public class DemoTest extends BaseJunitTest {

    @Autowired
    private CldStatisticsFlowMapper cldStatisticsFlowMapper;

    @Autowired
    private DataFlickerService dataFlickerService;

    @Autowired
    private IDataVService dataVService;

    @Autowired
    private CommonService commonService;

    @SneakyThrows
    @Test
    public void test() {
//        dataFlickerService.getDataFlicker("ff2d9674c1f1ecce7f33a5bf17fc4f2d","2023-05-02 00:00:00","2023-05-02 23:59:59");
//        List<DataV> ss = dataVService.getDataV("ff2d9674c1f1ecce7f33a5bf17fc4f2d", "2023-05-02 00:00:00", "2023-05-02 23:59:59");
//        System.out.println(ss);

        StatisticalDataDTO statisticalDataDTO = commonService.getLineRtData("4","data_harmpower_p","W","A","max");
        System.out.println("statisticalDataDTO==:" + statisticalDataDTO);


    }

}
