whycxzp
2023-01-10 8460d870e53436fe1305723d1bc29b96ff80a883
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.dto.Station.StationName1;
import com.whyc.mapper.StationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class StationService {
    @Autowired(required = false)
    private StationMapper mapper;
 
    //查询台站列表
    public Response getStation() {
        List<StationName1> list=mapper.getStation();
        return new Response().setII(1,list.size()>0,list,"台站列表");
    }
}