package com.whyc.service;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.github.pagehelper.PageInfo;
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.Fbs9100StateMapper;
|
import com.whyc.pojo.Battinf;
|
import com.whyc.pojo.Fbs9100State;
|
import org.springframework.stereotype.Service;
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
@Service
|
public class Fbs9100StateService {
|
@Resource
|
private Fbs9100StateMapper mapper;
|
|
//开关状态
|
public Response serchContactorState(int devId) {
|
QueryWrapper wrapper=new QueryWrapper();
|
wrapper.eq("dev_id",devId);
|
List list=mapper.selectList(wrapper);
|
PageInfo pageInfo=new PageInfo(list);
|
return new Response().set(1,pageInfo);
|
}
|
|
//FBS9100设备通信状态查询
|
public Response searchByCondition(int devErrcommcount,int uId){
|
List<Fbs9100State> list = mapper.searchByCondition(devErrcommcount,uId);
|
return new Response().set(1,list,"查询成功");
|
}
|
}
|