whyclxw
2024-06-27 2eff7304df15f463dcd4563c0c62f4531bbef138
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
37
38
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.mapper.SinfBinfMapper;
import com.whyc.pojo.StationInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class SinfBinfService {
 
    @Autowired(required = false)
    private SinfBinfMapper mapper;
 
    /*查询左侧电池机房信息列表
     * @param null 入参
     * @return null
     * @author lxw
     * @date 2024/6/15 9:41
     **/
    public Response getAllSinfBinf1() {
        List<StationInf> list=mapper.getAllSinfBinf1();
        return new Response().setII(1,list!=null,list,"左侧电池机房信息");
    }
 
    /*查询左侧电源机房信息列表
     * @param null 入参
     * @return null
     * @author lxw
     * @date 2024/6/15 9:41
     **/
    public Response getAllSinfBinf2() {
        List<StationInf> list=mapper.getAllSinfBinf2();
        return new Response().setII(1,list!=null,list,"左侧电源机房信息");
    }
}