| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | |
| | | |
| | | public Response<AFEInverterControl> state(int devId) { |
| | | QueryWrapper<AFEInverterControl> queryWrapper = new QueryWrapper<AFEInverterControl>(); |
| | | queryWrapper.eq("devId",devId); |
| | | queryWrapper.eq("dev_Id",devId); |
| | | AFEInverterControl afeInverterControl = mapper.selectOne(queryWrapper); |
| | | |
| | | return new Response<AFEInverterControl>().set(1,afeInverterControl); |