双重预防项目-国泰新华二开定制版
16639036659
2022-09-06 91733b612dff4dac4c47aae58a4917b065616c56
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
42
43
package com.ruoyi.doublePrevention.service.baseService.impl;
 
import com.ruoyi.doublePrevention.entity.PreventReportConfig;
import com.ruoyi.doublePrevention.repository.PreventReportConfigRepository;
import com.ruoyi.doublePrevention.repository.param.PreventReportConfigUpdateParams;
import com.ruoyi.doublePrevention.service.baseService.PreventReportConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("PreventReportConfigService")
public class PreventReportConfigServiceImpl implements PreventReportConfigService {
 
    @Autowired
    private PreventReportConfigRepository preventReportConfigRepository;
 
    /**
     * 数据上报配置-查询
     */
    @Override
    public List<PreventReportConfig> ListReportConfigs() {
        return preventReportConfigRepository.ListReportConfigs();
    }
 
    /**
     * 数据上报配置-修改
     */
    @Override
    public int updateReportConfig(PreventReportConfigUpdateParams updateParams) {
        return preventReportConfigRepository.updateReportConfig(updateParams);
    }
 
    /**
     * 数据上报配置-按照id查询
     */
    @Override
    public PreventReportConfig getReportConfigById(int Id) {
        return preventReportConfigRepository.selectById(Id);
    }
 
 
}