whyclxw
2024-12-10 88ed0e2971154580635fd33f3073e3a26f52fc3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.mapper.StationInfMapper;
import com.whyc.pojo.db_batt.StationInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class StationInfService {
    @Autowired(required = false)
    private StationInfMapper mapper;
 
 
    //查询左侧机房信息列表
    public Response getAllSinf() {
        List<StationInf> list=mapper.getAllSinf();
        return new Response().setII(1,list!=null,list,"查询左侧机房信息列表");
    }
}