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; /** * @author wMeng * @ClassName YsshWeatherServiceImpl * @Description TODO * @date 2022/10/30 14:11 * @Version 1.0 */ @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); } }