| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.RtEnvirmentMapper; |
| | | import com.whyc.pojo.RtEnvirment; |
| | | import com.whyc.pojo.db_real_batt.RtEnvirment; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | **/ |
| | | public Response getResRtEnvir() { |
| | | QueryWrapper wrapper= Wrappers.query(); |
| | | wrapper.select("limti 1"); |
| | | wrapper.last("limit 1"); |
| | | RtEnvirment rtEnvir=mapper.selectOne(wrapper); |
| | | return new Response().setII(1,rtEnvir!=null,rtEnvir," 实时环境数据"); |
| | | } |