双重预防项目-国泰新华二开定制版
heheng
2025-06-19 46c37398a52d1dcf81788960ec90faa91249e77f
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.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportConfig;
import com.ruoyi.doublePrevention.repository.PreventCJReportConfigRepository;
import com.ruoyi.doublePrevention.repository.param.PreventReportConfigUpdateParams;
import com.ruoyi.doublePrevention.service.baseService.PreventCJReportConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("PreventCJReportConfigService")
public class PreventCJReportConfigServiceImpl extends ServiceImpl<PreventCJReportConfigRepository, PreventCJReportConfig> implements PreventCJReportConfigService {
 
    @Autowired
    private PreventCJReportConfigRepository preventCJReportConfigRepository;
 
//    /**
//     * 数据上报配置-查询
//     */
//    @Override
//    public List<PreventCJReportConfig> ListReportConfigs() {
//        return preventCJReportConfigRepository.ListReportConfigs();
//    }
 
    /**
     * 数据上报配置-修改
     */
    @Override
    public int updateReportConfig(PreventReportConfigUpdateParams updateParams) {
        return preventCJReportConfigRepository.updateReportConfig(updateParams);
    }
 
    /**
     * 数据上报配置-按照id查询
     */
    @Override
    public PreventCJReportConfig getReportConfigById(int Id) {
        return preventCJReportConfigRepository.selectById(Id);
    }
 
}