xing
2023-02-23 c75e6f4696634d626c5569794c6349593853223a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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<YsshWeather> query(String begin, String end) {
        List<YsshWeather> data = ysshWeatherMapper.query(begin,end);
        return data;
    }
    @Override
    public List<YsshWeather> getAll() {
        return ysshWeatherMapper.getAll();
    }
    @Override
    public int insert(YsshWeather ysshWeather) {
        return ysshWeatherMapper.insert(ysshWeather);
    }
    @Override
    public int delete(String id) {
        return ysshWeatherMapper.delete(id);
    }
 
}