package com.whyc.service;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.github.pagehelper.PageInfo;
|
import com.whyc.dto.Page;
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.BattRtalarmMapper;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
@Service
|
public class BattRtalarmService {
|
@Resource
|
private BattRtalarmMapper mapper;
|
//电池告警
|
public Response getInfo(int battGroupId) {
|
QueryWrapper wrapper=new QueryWrapper();
|
wrapper.eq("battGroupId",battGroupId);
|
List list=mapper.selectList(wrapper);
|
PageInfo pageInfo=new PageInfo(list);
|
return new Response().set(1,pageInfo);
|
}
|
}
|