package com.yssh.service.impl; import com.yssh.dao.YsshWeatherMapper; import com.yssh.entity.YsshWeather; import com.yssh.service.YsshWeatherService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * @author wMeng * @ClassName YsshWeatherServiceImpl * @Description TODO * @date 2022/10/30 14:11 * @Version 1.0 */ @Service public class YsshWeatherServiceImpl implements YsshWeatherService { @Autowired private YsshWeatherMapper ysshWeatherMapper; @Override public List query(String begin, String end) { List data = ysshWeatherMapper.query(begin,end); return data; } @Override public List getAll() { return ysshWeatherMapper.getAll(); } @Override public int insert(YsshWeather ysshWeather) { return ysshWeatherMapper.insert(ysshWeather); } @Override public int delete(String id) { return ysshWeatherMapper.delete(id); } }