package com.whyc.service;
|
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.StationInfMapper;
|
import com.whyc.pojo.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,"查询左侧机房信息列表");
|
}
|
}
|