whyclxw
2024-12-04 6f01a484270b3a1fbe3e34bd17d5e3b676f9c626
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.whyc.service;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.whyc.dto.Response;
import com.whyc.mapper.RtDataMapper;
import com.whyc.pojo.RtData;
import com.whyc.pojo.RtState;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * packageName com.whyc.service
 *
 * @author lxw
 * @version JDK 8
 * @className RtDataService (此处以class为例)
 * @date 2024/6/15
 * @description TODO
 */
@Service
public class RtDataService {
    @Autowired(required = false)
    private RtDataMapper mapper;
 
    /*
     在用电池组实时推送单体信息
     **/
    public Response getResRtData(int binfId) {
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("binf_id",binfId);
        List<RtData> list=mapper.selectList(wrapper);
        return new Response().setII(1,list!=null,list,"在用电池组实时推送单体信息");
    }
}