package com.yssh.service; import com.yssh.entity.Weather; import com.yssh.mapper.WeatherMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; @Service public class WeatherService { @Resource private WeatherMapper weatherMapper; public List query(String begin, String end) { List data = weatherMapper.query(begin, end); return data; } public List getAll() { return weatherMapper.getAll(); } public int insert(Weather weather) { return weatherMapper.insert(weather); } public int delete(String id) { return weatherMapper.delete(id); } }