| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Real.AlmDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.BattAlmparamMapper; |
| | | import com.whyc.pojo.db_param.BattAlmparam; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class BattAlmparamService { |
| | |
| | | private BattAlmparamMapper mapper; |
| | | //获取电池告警参数 |
| | | public Response getBattAlmParam(AlmDto almDto) { |
| | | return null; |
| | | PageHelper.startPage(almDto.getPageNum(),almDto.getPageSize()); |
| | | List<BattAlmparam> list = mapper.getBattAlmParam(almDto); |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list!=null,pageInfo,"获取电池告警参数"); |
| | | } |
| | | } |