| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.RtDataMapper; |
| | | import com.whyc.pojo.db_real_batt.RtData; |
| | |
| | | * @version JDK 8 |
| | | * @className RtDataService (此处以class为例) |
| | | * @date 2024/6/15 |
| | | * @description TODO |
| | | * @description |
| | | */ |
| | | @Service |
| | | public class RtDataService { |
| | |
| | | List<RtData> list=mapper.selectList(wrapper); |
| | | return new Response().setII(1,list!=null,list,"在用电池组实时推送单体信息"); |
| | | } |
| | | |
| | | public List<RtData> getList(int battGroupId,Integer[] monNumList) { |
| | | QueryWrapper<RtData> wrapper= Wrappers.query(); |
| | | wrapper.eq("binf_id",battGroupId); |
| | | wrapper.in("mon_num",monNumList); |
| | | return mapper.selectList(wrapper); |
| | | } |
| | | |
| | | } |