| | |
| | | package com.moral.api.controller; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.moral.api.entity.HistoryFiveMinutely; |
| | | import com.moral.api.entity.Sensor; |
| | | import com.moral.api.entity.Test; |
| | | import com.moral.api.mapper.HistoryFiveMinutelyMapper; |
| | | import com.moral.api.mapper.SensorMapper; |
| | | import com.moral.api.service.TestService; |
| | | import com.moral.constant.Constants; |
| | | import com.moral.constant.ResultMessage; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.kafka.core.KafkaTemplate; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | |
| | | @Slf4j |
| | |
| | | |
| | | @Autowired |
| | | private TestService testService; |
| | | |
| | | @Autowired |
| | | private SensorMapper sensorMapper; |
| | | |
| | | @Autowired |
| | | private HistoryFiveMinutelyMapper historyFiveMinutelyMapper; |
| | |
| | | |
| | | @GetMapping("test") |
| | | public void test(){ |
| | | QueryWrapper<HistoryFiveMinutely> queryWrapper = new QueryWrapper<>(); |
| | | List<HistoryFiveMinutely> historyFiveMinutelies = historyFiveMinutelyMapper.selectList(queryWrapper); |
| | | System.out.println(1111); |
| | | |
| | | } |
| | | |
| | | |
| | | } |