燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-07-14 db44f336e46825afc855466512065cc08e5790bd
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
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<Weather> query(String begin, String end) {
        List<Weather> data = weatherMapper.query(begin, end);
        return data;
    }
 
    public List<Weather> getAll() {
        return weatherMapper.getAll();
    }
 
    public int insert(Weather weather) {
        return weatherMapper.insert(weather);
    }
 
    public int delete(String id) {
        return weatherMapper.delete(id);
    }
}